Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
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:
http://gcwp.bistromatics.com/fr/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)));
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…
I tried this, still does not work. Here’s the page:
http://gcwp.bistromatics.com/fr/
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.
- This reply was modified 10 years, 9 months ago by yogaboy. Reason: extra information about setup
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:
wp_list_pages(‘title_li=&sort_column=menu_order’.$exclude);
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!
MikeSuper – thanks!
-
AuthorPosts