flyalaska Posted January 24, 2016 Report Share Posted January 24, 2016 I have a couple errors in my error log. PHP Warning: Creating default object from empty value in /home/flyaka/public_html/core/common/PIREPData.class.php on line 327 line 327 is $row->rawdata = unserialize($row->rawdata); PHP Warning: Invalid argument supplied for foreach() in /home/flyaka/public_html/lib/skins/flyalaska_1.0/tour/tour_details.php on line 96 PHP Warning: Invalid argument supplied for foreach() in /home/flyaka/public_html/lib/skins/flyalaska_1.0/tour/tour_details.php on line 128 Line 96 and 128 are foreach($flights as $flight) Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 25, 2016 Administrators Report Share Posted January 25, 2016 What version of phpVMS is this? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 25, 2016 Administrators Report Share Posted January 25, 2016 Looks like it is one of mine. Try this, it should quiet the first error. https://github.com/D...feaed9e9b7c9acb The invalid argument error is due to the variable not being there. Tours that are non existent or possibly deleted are most likely being called upon. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted January 25, 2016 Author Report Share Posted January 25, 2016 That fixed the PIrepData Class error, any ideas on the second error, The Tour Details? I am on version 5.5.2 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 25, 2016 Administrators Report Share Posted January 25, 2016 What is the url in the error log that is creating the error? Quote Link to comment Share on other sites More sharing options...
flyalaska Posted January 26, 2016 Author Report Share Posted January 26, 2016 What is the url in the error log that is creating the error? This is the full line in the error log [25-Jan-2016 19:39:35 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/flyaka/public_html/lib/skins/flyalaska_1.0/tour/tour_details.php on line 96 [25-Jan-2016 19:39:35 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/flyaka/public_html/lib/skins/flyalaska_1.0/tour/tour_details.php on line 128 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 26, 2016 Administrators Report Share Posted January 26, 2016 I have looked at your pages on your site and they seem to be working ok for tour details. My guess is that a person/site/crawler/forum is hitting a tour that is not visible to the public or doesn't exist, that is why I was wondering if it showed the url that was causing it. You may find that information in your apache logs. If you take a look at this page -> flyaka.com/index.php/tour/details/9999 <- you will see that the errors are there as the tour doesn't exist. If you go to a tour that exists and is properly setup -> flyaka.com/index.php/tour/details/115 <- everything seems to function properly. I can in the future try to put something in the code to catch this scenario. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted January 27, 2016 Author Report Share Posted January 27, 2016 Thank you Dave! Quote Link to comment Share on other sites More sharing options...
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.