Tagged: , , , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #547422

    Hi!

    When PHP 7 is enabled, I can’t open the content sections anymore. It just gives an error.
    When downgrading to PHP 5.6 it works just fine.

    I made a video (see it here).

    I also disabled all the plugins, and updated to the newest version of the theme and wordpress, still the same.

    Hope this will be fixed soon.

    Kind regards,
    Michael

    #547593

    Anyone?

    #547605

    As for now Enfold is not compatible with PHP 7.0. It is no t a big deal and caused by a change to the handling of indirect variables, properties, and methods in PHP 7.0 (see here).

    I found several places in classes located in files under /enfold/framework/php where the syntax has to be changed to make enfold compatible with php 7.0.

    code like this from class-htmlhelper.php
    $output .= $this->$element['type']( $element );

    needs to be changed to
    $output .= $this->{$element['type']}( $element );

    and code like that from html-helper.class.php
    $output .= self::$element['type']($element, $parent_class);

    needs to be rewritten to
    $output .= self::{$element['type']}($element, $parent_class);

    I am sure kriesi and his team will fix that in the near future.

    Stay tuned and use php5.6. PHP 7 ist still young and should be considered “under development”. It will take some time until hosting companies will introduce php 7.0.

    • This reply was modified 4 years, 6 months ago by  mensmaximus.
    #547616

    Update to Enfold 3.4.3 and it will work again :-)

    #547623

    It won’t. I already updated to version 3.4.3.. Everything works fine, it’s only the content sections.

    #547646

    Hi!

    We are doing texts with php7 and making sure we are compatible, but also our latest supporting version, is the one WordPress is supporting also.
    So for 7, please hold while all the WordPress world is there, officially.

    Cheers!
    Basilis

    #547667

    Hi Basilis,

    Thanks for your reply! I’ll have some more patience then :)

    Thanks!!

    #547709

    Change line 881 in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php from

    $output .= self::$element['data']['save_to']($element);

    to

    $output .= self::{$element['data']['save_to']}($element);

    #547806

    Hi @mensmaximus,

    Thanks for the input, much appreciated. I know Kriesi is looking at the compatibility issues and he will hopefully have a working version out as soon as possible.

    Regards,
    Rikard

    #548430

    I see that the newest version of Enfold (3.4.5) fixes the problem!

    Thank you all!!

    Regards,
    Michael

    • This reply was modified 4 years, 6 months ago by  mmichael1991. Reason: Added version number
    #548581

    Hi Michael,

    Great, glad it fixed the problems :-)

    Thanks,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.