Noxaeterna wrote:
Hi, everyone.
First of all, well done on a great job in J! 1.5, it seems like a very well-built, solid framework. I've decided to take the risk of using nightly builds for a -hopefully- large community website, due to be online by the end of the year.
What I recently got is the following warning ONLY in my front page (/templates/community/body.php, which is include()'d from /templates/community/index.php). It is just the html skeleton of the website with slight if..endif blocks that slightly change the skeleton depending on the loaded component. I'm only accessing the JURI instance, apart from that nothing more advanced is used. Other components in the website don't get the warning to appear.
It started appearing from a nightly build, roughly in the beginning of May. Still appears in May 28th nightly build. I Googled the error message and it seems to appear in numerous other Joomla installations. Anyway, here goes:
Quote:
Warning: Invalid argument supplied for foreach() in c:\web\root\joomla\libraries\joomla\environment\request.php on line 393
Note: I'm not a J! expert, but I'm working without modifying the core, using template overrides and custom modules and components.
Don't really know what to post as debug information, so I injected a debug_backtrace() printout right in the beginning of the set() method in request.php. Here is the output:
Any suggestions ? Thanks for your time in advance!
Can you check to make sure that one of your menu items in the Main Menu has the 'Default' star beside it?
I managed to set the default item to an unpublished menu item, and the resulting errors were:
Notice: Trying to get property of non-object in /var/www/j15/libraries/joomla/application/router.php on line 184
Notice: Trying to get property of non-object in /var/www/j15/libraries/joomla/application/router.php on line 187
Warning: Invalid argument supplied for foreach() in /var/www/j15/libraries/joomla/environment/request.php on line 395
Notice: Trying to get property of non-object in /var/www/j15/libraries/joomla/application/router.php on line 190
Notice: Trying to get property of non-object in /var/www/j15/includes/application.php on line 361
Notice: Trying to get property of non-object in /var/www/j15/includes/application.php on line 361
Notice: Trying to get property of non-object in /var/www/j15/includes/application.php on line 367
Notice: Trying to get property of non-object in /var/www/j15/includes/application.php on line 367
Assuming you had your error levels set to display warnings and not notices, this would result in only the one warning being displayed regarding request, and core updates would account for the difference of 2 lines.
Ian