February 14, 2014 at 9:24 pm #224166
Please help :(
if i change the languages english to german don’t seem, if seems than;
Fatal error: Out of memory (allocated 84410368) (tried to allocate 16384 bytes) in /homepages/28/d464063082/htdocs/wordpress/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6630February 14, 2014 at 11:31 pm #224204
I’ve got a similar issue. It seems that line 625 in framework/php/class-megamenu.php is the culprit, but I don’t know why. I just got an update for WPML at the same time as for Enfold. Here’s the line:
What it’s doing is to execute a print_r output of the menu object as opposed to the HTML of the menu.
Hope that helps!
MikeFebruary 15, 2014 at 9:17 am #224300
Please increase the wordpress php memory limit. Refer to this link. That should fix it.
IsmaelFebruary 26, 2014 at 3:44 am #229374
I tried this, still does not work. Here’s the page:
This looks exactly like it’s calling print_r on an object somewhere. If I change out the theme to twenty fourteen, it’s fine…
Incidentally, I’ve deactivated almost all my plugins except WPML to ensure that it’s not something else. I have child-themed this, but experience the same thing with the parent theme active.
February 26, 2014 at 4:45 am #229415
- This reply was modified 1 year, 1 month ago by yogaboy. Reason: extra information about setup
@yogaboy: This is not the same issue, another user reported something like this and then he find out that he forgot to close something on the google analytics code. It messed up the website really bad but then fixing the google code fixed it. Please deactivate all plugins. I’ll ask Dude.
IsmaelFebruary 26, 2014 at 5:12 am #229425February 26, 2014 at 8:31 am #229448
The line you mentioned in your last post
will only be executed if no custom menu is set. Then the theme must generate a fallback menu and it uses the wp_list_pages function to query all pages for the fallback menu. If you think the wp_list_pages() function breaks your website go to Appearance > Menus, create some custom menus and then assign these menus to the right theme location. As soon as a custom menu is assigned to the theme location no fallback menu will be generated and Enfold doesn’t execute the wp_list_pages() function.
PeterFebruary 26, 2014 at 2:22 pm #229554
There is no problem with the English, it’s only when it generates for the French menu that it outputs the array. I don’t know if this is an issue with WPML, but it happens only with the Enfold theme and only, as I say, with the French.
I tried to assign a specific menu, and it’s fine when I do this, so that wp_list_pages() routine seems to be the culprit. Where do you suggest I start to troubleshoot from here? I want to use dynamic menus rather than manually managed menus…February 26, 2014 at 4:29 pm #229615
Please ask the WPML support team for help in this case because I’m not sure how WPML manipulates the wp_list_pages() function. This seems to be a WPML bug and our theme just triggers it because it uses the wp_list_pages() to generate the fallback menu. As a temporary fix you can set a custom menu.
PeterFebruary 28, 2014 at 3:45 pm #230629
I am going to follow up with WPML, but this ONLY happens under the Enfold theme and wp_list_pages is being called by other themes.
It took a while to dig through, but when using a fallback menu on the theme, this filter seems to use a phenomenal amount of memory and essentially dies by echoing the full menu class objects. You can see it here:
The line that breaks with out of memory is 6630 in sitepress.class.php:
$cache_key = implode(':', array(md5(print_r($pages,true)),print_r($args,true)));February 28, 2014 at 3:54 pm #230631
Please keep us posted if they find something. Afaik the default themes like twenty fourteen, twentythirteen and twentytwelve, etc. do not use the wp_list_pages() function (I searched the theme code) and we can’t compare them to Enfold…
PeterMarch 3, 2014 at 1:34 pm #231504March 4, 2014 at 11:42 am #232140
Unfortunately I see no bug or issue in our code which is “fixable”. The wp_list_pages() function is a standard wordpress function which should work even if WPML is activated. If the amount of pages/data makes it impossible to use this function I can only recommend to use a custom menu. The custom menu will make sure that no unnecessary queries are required and it will increase the performance of the website.
You must be logged in to reply to this topic.