Hello
After update to version X3 v0.22.2 becom in the menu an error:
Warning: Invalid argument supplied for foreach() in /home/mojeslik/www/app/helpers.inc.php on line 112
X3 Photo Gallery Support Forums
That's because you have "Simple Menu" enabled.netopir wrote:I fond another thing in the setings i have disebled folders in menu both he still shows on it see pictures :
Just for your information, having all three settings checked does not serve any purpose:Simple Menu Mode
Simple menu mode will drastically speed up the creation time of your menu. Because of the limitations, this setting is normally unsuitable, but if you have thousands of pages and/or are hosted on a very slow server, it could be a beneficial compromise.
Why so fast?
In simple mode, the menu is created by simply reading the directory structure of your content. Instead of having to load page data for each menu item, it simply creates menu items based on folder names.
Limitations
Simple menu mode has several limitations:
* Use this setting if you plan on having thousands of pages and don't require advanced menu behavior. This setting may be especially useful for the sidebar layout.
- Does not support mega menu.
- Uses folder name instead of label from page settings.
- Does not support special menu settings like links.
I am still trying find out why this happens, but I can tell you how it can be avoided: Every time you SAVE anything in the panel, make sure the first page you visit is NOT the home page. For example, make sure to visit http://www.mojeslike.eu/contact/ after making changed in the panel. This will make sure the main MENU cache element does not include "warnings". After it's created, the menu will display fine for the home page also.netopir wrote:After some changes in the panel the error masage disapiers. But after some time coms the error back in the menu.