Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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 6630

    #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:

    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!
    Mike

    #224300

    Hi!

    Please increase the wordpress php memory limit. Refer to this link. That should fix it.

    Regards,
    Ismael

    #229374

    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
    #229415

    Hey!


    @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.

    Best regards,
    Ismael

    #229425

    I’ve deactivated all plugins except for:

    • WPML Multilingual CMS
    • WPML String Translation
    • WPML Translation Management
    #229448

    Hey!

    The line you mentioned in your last post

    
    wp_list_pages(‘title_li=&sort_column=menu_order’.$exclude);
    

    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.

    Best regards,
    Peter

    #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…

    #229615

    Hi!

    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.

    Regards,
    Peter

    #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:
    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)));

    #230631

    Hi!

    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…

    Best regards,
    Peter

    #231504
    This reply has been marked as private.
    #232140

    Hi!

    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.

    Cheers!
    Peter

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.