Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1333799

    Hi at all,

    I’m using your theme in one of my clients website. Currently the website use a 7.2 php version and I want switch them to php 8.
    So I made a copy of the website migrate it to a staging system on XAMPP.
    The migration via duplicator run normally but at the end when I want to go to the login I reveived the following message:

    “Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in C:\xampp\htdocs\zr1\wp-content\themes\enfold\functions-enfold.php on line 324″

    I found your threat at “https://kriesi.at/support/topic/deprecated-unparenthesized-a-b-c-d-e-is-deprecated/” and I also made this changes. After this changes I reveived the following message:

    Fatal error: Uncaught Error: Attempt to modify property “config” on null in C:\xampp\htdocs\zr1\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\slideshow_layerslider\slideshow_layerslider.php:28 Stack trace: #0 C:\xampp\htdocs\zr1\wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php(65): avia_sc_layerslider->shortcode_insert_button() #1 C:\xampp\htdocs\zr1\wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\template-builder.class.php(1305): aviaShortcodeTemplate->__construct(Object(AviaBuilder)) #2 C:\xampp\htdocs\zr1\wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\template-builder.class.php(427): AviaBuilder->createShortcode() #3 C:\xampp\htdocs\zr1\wp-includes\class-wp-hook.php(303): AviaBuilder->init(”) #4 C:\xampp\htdocs\zr1\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #5 C:\xampp\htdocs\zr1\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #6 C:\xampp\htdocs\zr1\wp-settings.php(578): do_action(‘init’) #7 C:\xampp\htdocs\zr1\wp-config.php(134): require_once(‘C:\\xampp\\htdocs…’) #8 C:\xampp\htdocs\zr1\wp-load.php(50): require_once(‘C:\\xampp\\htdocs…’) #9 C:\xampp\htdocs\zr1\wp-blog-header.php(13): require_once(‘C:\\xampp\\htdocs…’) #10 C:\xampp\htdocs\zr1\index.php(17): require(‘C:\\xampp\\htdocs…’) #11 {main} thrown in C:\xampp\htdocs\zr1\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\slideshow_layerslider\slideshow_layerslider.php on line 28
    Es gab einen kritischen Fehler auf deiner Website.

    Erfahre mehr über die Problembehandlung in WordPress.

    So I don’t know what to do. And I’m not sure if I can migrate the site to php 8? Thanks for your help

    #1333821

    Hey Flipper5183,

    Which version are you running when you are getting these error messages?

    Best regards,
    Rikard

    #1334844

    Hi Rikard,

    I’m running the latest version of your theme 4.5.5 which I’m updated on 2021-12-21.

    I also using a childtheme.

    Thanks and best regards,
    Philipp

    • This reply was modified 2 years, 10 months ago by Flipper5183.
    #1334864

    Hi,
    If you are using v4.5.5 then you will need to update to v4.8.8 to be compatible with PHP v8 & the latest WordPress.
    The reason that the theme update says you have the latest version is because about that version Theme Forest moved from the update API to the Token so you will need to manually update via FTP by downloading v4.8.8 from your Theme Forest account.

    Best regards,
    Mike

    #1336091

    Hi Mike,
    thanks for your message.
    Manual Update to v. 4.8.8. works and the Website is running on my xampp Installation with PHP v8.
    Only the footer doesn’t work.
    I receive the following messages:
    Warning: Undefined array key “footer_option” in C:\xampp\htdocs\zr\wp-content\themes\enfold\footer.php on line 30

    Warning: Undefined array key “footer_behavior” in C:\xampp\htdocs\zr\wp-content\themes\enfold\footer.php on line 32

    Warning: Undefined array key “footer_behavior” in C:\xampp\htdocs\zr\wp-content\themes\enfold\footer.php on line 283

    Please se the lines in my footer.php:
    line 30: $footer_option = $avia_config[‘footer_option’];
    line: 32: if( ‘nofooterarea’ != $footer_option && ‘curtain_footer’ == $avia_config[‘footer_behavior’] )
    line: 33 {
    line: 34 $data = is_numeric( $avia_config[‘footer_media’] ) ? ” data-footer_max_height='{$avia_config[‘footer_media’]}'” : ”;
    line: 35
    line: 36 echo ‘<div class=”av-curtain-footer-container”‘ . $data . ‘>’;
    line: 37 }

    line 283 if( ‘nofooterarea’ != $footer_option && ‘curtain_footer’ == $avia_config[‘footer_behavior’] )
    line 284 {
    line 285 echo ‘</div>’; // class=”av-curtain-footer-container”
    line 286 }
    line 287
    line 288 ?>

    thanks for your help.
    Best regards,
    Philipp

    #1336100

    Hi,
    Are you using the standard footer or a custom page as a footer?
    Perhaps you have an unclosed html tag in your footer, try removing everything from the footer and see if the error continues.

    Best regards,
    Mike

    #1336439

    Hi Mike,
    thanks. I’m using the standard footer. I removed everythin from footer but this didn’t solve the problem.
    Could it be possible that my child theme is the problem?
    The update of the parent theme worked and when I switch back to the parent theme the footer is available.
    But all customization which are made in the child theme are lost.
    Is there a way to update the child theme (current version: 4.5.6.1569010864 )? The parent theme is on Version 4.8.8.1
    Thanks and best regards,
    Philipp

    #1336480

    Hi Philipp,

    Child themes are only used to override the parent, so there are no updates for them. Are you overriding header.php in your child? If so, then please try to replace that with the content from the same file from the parent to see if that makes any difference. If not, then please remove all your customisations from the child, then add them back one by one to see what is causing this problem to happen.

    Best regards,
    Rikard

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