-
Notifications
You must be signed in to change notification settings - Fork 73
Invalid argument supplied for foreach() #13
Comments
I'm getting this as well, fresh install of J3.02 |
Yeah, not on all sites... Justed hoped somebody knows where the problem is. |
Do you think it's a J3 bug not a template bug? |
Thanx for reaction. I'd say, I did something wrong. I have two sites on the same hosting, that are using Joomla 3. And just one of them has this problem. |
Did you figure out how to fix it? My J3 site is on our test server with many other sites all 2.5 though. |
I've found this error comes up when the module has a position that is not in templateDetails.xml Add the position to templateDetails.xml and the error should go away (still a J3 bug though I think) |
Thank you VERY MUCH. This is it! |
It seems to depend on the server environment, wheter J! throws this error or not. I'm pretty sure it started after adding a custom position that was not in the templateDetails.xml. After updateing templateDetails.xml the error is gone. |
did not work for me: default templateDetails.xml has already this positions and still get this errors. I get it with all the modules..any idea how to fix that? |
@avush96 Had the same problem. Found out every template, even not used, must have at least two positions. If not, the argument at foreach() is a string with the one position, so: php error. |
Hello =)
When being in administration of Joomla 3.0 (in a Module Settings), next to "position" setup it throws me the following:
Warning: Invalid argument supplied for foreach() in /administrator/components/com_modules/views/module/tmpl/edit_positions.php on line 31
The text was updated successfully, but these errors were encountered: