Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1411906

    We attempted to upgrade from Enfold 4.8.7.1 to the newest version that we just purchased and downloaded from ThemeForest. It was used by a previous developer to design the site and the theme was purchased under his license and not updated in some time. After uploading & installing Enfold, when we activated the associated Child theme, we received the, “There has been a critical error on this website,” message. The front end crashed, but the admin area was still functional (weird). We are running PHP 8.1 with Flywheel as our host. Upon inspection of the error logs we found the cause PHP Fatal error: Uncaught Error: Call to undefined method avia_partner_logo::default_args() in /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:778. Are you able to shed any light on what we need to do so that we can continue running the Enfold theme in its latest version? Please and thank you.

    #1411924

    Hi infoglemser,

    Please create a temporary admin account and put the credentials in private content, so we can try to check on the issue further.

    Best regards,
    Nikko

    #1411972

    Sure, here ya go. Thanks!

    #1411992

    Hi,

    Thanks for that. Please share FTP login details with us as well, so that we can try to upload the new version for you.

    Best regards,
    Rikard

    #1412005

    It’s SFTP through Flywheel hosting.

    #1412042

    can you look inside that logoslider.php and post that line 778 to see what is the issue?
    Best would be to update to latest Enfold – with php 8 alot has changed – f.e. jQuery versions are now : 3.x and inside that new jQuery there are some deprecated functions.

    #1412052

    Hi,

    Thanks for that. I uploaded the latest version of the theme and activated it, and everything is working after that, but the site crashes when your child is activated. Please try to remove all custom code you have added to the child, then activate the new version by renaming the enfold_new folder in the themes folder. Rename the current enfold folder to enfold_old before that. Once the site is working with the new version and the empty child, then you can start adding your custom code back in one by one to the child, to see when it starts crashing.

    Best regards,
    Rikard

    #1412094

    @Guenni007: For me, line 778 is as follows: */
    Which makes no sense.

    #1412095

    @Rikard Can you help me narrow down the number of files I would need to do this to? There are quite a few. Would it definitely be a PHP file or could it be a css or js file?

    #1412102

    Hi,

    It would likely be a PHP file, since it’s generating a server error.

    Best regards,
    Rikard

    #1412124

    @Rikard Utilizing your recommended method, I was able to determine that it was the functions.php file in the child theme that was crashing the site. The code from that file in its entirety appears below. I then deleted the code line by line and discovered it was require_once(‘inc/avia-partner-logo.php’); that was causing the crash. Do you have any idea why this might be? I’ve removed the line of code for now, but I’m unsure of what it might be powering on the site as of yet.

    <?php

    require_once(‘inc/theme-functions.php’);
    require_once(‘inc/scripts-child.php’);
    require_once(‘inc/theme-filters.php’);
    require_once(‘inc/avia-partner-logo.php’);
    require_once(‘inc/custom-post-types.php’);
    require_once(‘inc/avia-boxes.php’);
    require_once(‘inc/disable-google-maps.php’);

    // require_once(‘inc/theme-shortcodes.php’);
    // require_once(‘inc/avia_new_section.php’);
    // require_once(‘inc/pardot-iframe.php’);
    // require_once(‘inc/avia-boxes.php’);
    // require_once(‘inc/show-template-shortcode.php’);
    // require_once(‘inc/hp-modal-popup.php’);
    // require_once(‘inc/footer-highlight-widget.php’);
    // require_once(‘inc/custom-post-types.php’);

    add_theme_support(‘deactivate_layerslider’);

    #1412126

    @Rikard I do notice that all our hero images are now missing since I removed that line of php. You can see an example of what it’s supposed to look like if you visit the Wayback Machine at https://web.archive.org/web/20230613162444/https://glemser.com/

    #1412145

    Hi,

    This part can be removed since it’s commented out and should not do anything:

    // require_once(‘inc/theme-shortcodes.php’);
    // require_once(‘inc/avia_new_section.php’);
    // require_once(‘inc/pardot-iframe.php’);
    // require_once(‘inc/avia-boxes.php’);
    // require_once(‘inc/show-template-shortcode.php’);
    // require_once(‘inc/hp-modal-popup.php’);
    // require_once(‘inc/footer-highlight-widget.php’);
    // require_once(‘inc/custom-post-types.php’);

    This is not required anymore, it can now be set in the theme options under Enfold->Layout Builder:

    add_theme_support(‘deactivate_layerslider’);

    The rest I can’t really tell you unfortunately, since I don’t know what has been done in those files. I would recommend that you remove all of the code, then add it back line by line to see when it starts breaking:

    require_once(‘inc/theme-functions.php’);
    require_once(‘inc/scripts-child.php’);
    require_once(‘inc/theme-filters.php’);
    require_once(‘inc/avia-partner-logo.php’);
    require_once(‘inc/custom-post-types.php’);
    require_once(‘inc/avia-boxes.php’);
    require_once(‘inc/disable-google-maps.php’);

    Best regards,
    Rikard

    #1412186

    @Rikard I narrowed it down to this line:

    require_once(‘inc/avia-partner-logo.php’);

    and removed it. I do notice that all our hero images are now missing since I removed that line of php. You can see an example of what it’s supposed to look like if you visit the Wayback Machine at https://web.archive.org/web/20230613162444/https://glemser.com/

    #1412313

    Hi,

    Sorry for the late reply. You might have to rewrite your customisation for that file then, I’m not exactly how it has been done previously. Writing customisation from scratch would unfortunately be out of scope of theme support.

    Best regards,
    Rikard

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