gio1961 Posted February 19, 2015 Report Posted February 19, 2015 Good morning everyone, from the administration panel, PIREPs get the following error Warning: Creating default object from empty value in /customers/f/9/1/easyfsxitaliavirtual.net/httpd.www/it/core/common/PIREPData.class.php on line 337 Thanks for a possible answer ... best regards Quote
gio1961 Posted February 19, 2015 Author Report Posted February 19, 2015 line 337 of my files PIREPData.class.php is: 337 = $row->rawdata = unserialize($row->rawdata); The error appears every time you approve or save a PIREP Quote
freshJet Posted February 19, 2015 Report Posted February 19, 2015 It looks like another strict standards error, add static to the beginning of the function containing that line. Although, that kind of issue would produce more than just one error. Do you have more errors elsehwere on your admin panel or main site? Quote
gio1961 Posted February 19, 2015 Author Report Posted February 19, 2015 The error only occurs from the administrator panel, having approved or saved a pirep... Quote
freshJet Posted February 19, 2015 Report Posted February 19, 2015 Having done a bit of searching it is indeed related to the PHP version. I'm also having issues on my test site, I'll mess around a bit. Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 Can not figure out what is causing the error ... Quote
freshJet Posted February 20, 2015 Report Posted February 20, 2015 Are you on a free host? Additionally, try replacing the contents of your PIREPData.class.php with the original: https://github.com/nshahzad/phpVMS/blob/master/core/common/PIREPData.class.php Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 L 'host is not free but a fee ok, I try to replace the file ... Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 No way, the same problem ... Quote
freshJet Posted February 20, 2015 Report Posted February 20, 2015 OK, long shot, just before line 337 add: $row = new stdClass(); Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 335 =$row = new stdClass(); 336 =$row = DB::get_row($sql); 337 = $row->rawdata = unserialize($row->rawdata); tried but it does not work, I give up ... thanks for the help ... Quote
freshJet Posted February 20, 2015 Report Posted February 20, 2015 I said before 337. Probably won't work anyway. You could just ignore the errors through the config but it's best to find a fix. Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 I tried all combinations, I entered the code before and after, but it did not work ... Quote
freshJet Posted February 20, 2015 Report Posted February 20, 2015 Yeah, scratch that. Wait on simpilot. Quote
Administrators simpilot Posted February 20, 2015 Administrators Report Posted February 20, 2015 What are you running for a version of phpVMS? I do not get this error running the one of of github or my version, both running on php 5.5.12. Does this only show up when there are no pireps pending or when there are pireps as well? Quote
gio1961 Posted February 20, 2015 Author Report Posted February 20, 2015 On my host php version 5.4 ... phpvms Version 2.1.936 http://downloads.php...phpvms.full.zip ... the error does not occur if there are pending PIREPs but immediately after approving a PIREP. Quote
Administrators simpilot Posted February 20, 2015 Administrators Report Posted February 20, 2015 I can not seem to reproduce it on any of my test installs so I am kind of going in blind but try this; $row = DB::get_row($sql); if($row == NULL){$row->rawdata = new stdClass();} $row->rawdata = unserialize($row->rawdata); Quote
gio1961 Posted February 21, 2015 Author Report Posted February 21, 2015 I can not seem to reproduce it on any of my test installs so I am kind of going in blind but try this; $row = DB::get_row($sql); if($row == NULL){$row->rawdata = new stdClass();} $row->rawdata = unserialize($row->rawdata); Quote
gio1961 Posted February 22, 2015 Author Report Posted February 22, 2015 Now that I think about it, the error occurs when I'm using kacars custom, I know we got to do something ... Quote
gio1961 Posted February 22, 2015 Author Report Posted February 22, 2015 After saving PIREPs the data you want to ... Quote
Moderators ProSkyDesign Posted November 1, 2016 Moderators Report Posted November 1, 2016 I have the same problem, please help! Quote
Moderators ProSkyDesign Posted November 6, 2016 Moderators Report Posted November 6, 2016 anyone can help me? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.