Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1049339

    We are using Enfold Version: 3.0.2 on our website.

    When we update to PHP 7.2 we get these errors:

    1. The spacing is wonky on most pages. I think some of the extra spacing is due to the advanced layout builder – like there’s extra padding after the column-oriented boxes? I poked around all the settings in the Enfold menu and can’t find a solution.
    2. Many of the page editors just aren’t working right. Our pages are made of multiple advanced layout editor boxes, but clicking any one of the layout boxes shows all of the HTML in the visual editor, but in white-on-white. It’s also all in the text editor tab – but again, that’s for the whole page, not the individual box I should be able to edit. Many pages have this problem, but not all.

    WP Engine has explained to me that this is from Enfold causing these errors.

    PHP Fatal error: Uncaught Error: Function name must be a string in /nas/content/live/amachicago/wp-content/themes/enfold/framework/php/class-style-generator.php:123\nStack trace:\n#0 [internal function]: avia_style_generator->create_styles(”)\n#1 /nas/content/live/amachicago/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#2 /nas/content/live/amachicago/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#3 /nas/content/live/amachicago/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#4 /nas/content/live/amachicago/wp-includes/general-template.php(2614): do_action(‘wp_head’)\n#5 /nas/content/live/amachicago/wp-content/themes/enfold/header.php(56): wp_head()\n#6 /nas/content/live/amachicago/wp-includes/template.php(688): require_once(‘/nas/content/li…’)\n#7 /nas/content/live/amachicago/wp-includes/template.php(647): load_template(‘/nas/content/li…’, true)\n#8 /nas/content/live/amachicago/wp-includes/general-template.php(41): locate_template(Array, true)\n#9 /nas/content/live/amachi in /nas/content/live/amachicago/wp-content/themes/enfold/framework/php/class-style-generator.php on line 123

    The staging WP install has WP 5.0.1, has every plugin and every theme up to date and when you update Enfold to Version 4.5.1 it fails. I upgrade to Version 4.5.1 by deleting version 3.0.2 via SFTP and uploading the new one.

    What can we do?

    #1049487

    Hey julieobrien,

    Are you still getting that error after updating on the staging site? If so then please post admin login details in private so that we can have a closer look.

    Best regards,
    Rikard

    #1049670

    Yes, still having the error. Sending you credentials in the private section.

    #1049856

    Hi,

    Thanks for the login details, though I can’t see any fatal error messages on the staging site. Where exactly are you seeing them?

    Best regards,
    Rikard

    #1053852

    This happens on nearly every page of our site within the staging site. The pages are made of multiple advanced layout editor boxes, but clicking any one of the layout boxes shows all of the HTML in the visual editor, but in white-on-white. It’s also all in the text editor tab – but again, that’s for the whole page, not the individual box I should be able to edit. I’m including a private link to a screenshot of what I see on the page.

    #1057774

    Was there a solution to this issue? I’m seeing the same problem.

    #1057988

    Hi,

    Not yet – we are working on it from our side :)

    Best regards,
    Basilis

    #1065484

    Is there any resolution here?

    #1065808

    Hi julieobrien,

    I think the problem you are having is caused by the Gutenberg editor which was introduced in WordPress 5. There is an option to use the Classic Editor in the latest version of the theme (4.5.3) if you would like to update to that. Otherwise you could try this in your functions.php file to disable the Gutenberg editor:

    // disable for posts
    add_filter('use_block_editor_for_post', '__return_false', 10);
    
    // disable for post types
    add_filter('use_block_editor_for_post_type', '__return_false', 10);

    Best regards,
    Rikard

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