Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1415448

    Hey there,

    I’m getting this fatal error after updating enfold to the latest version (previously 4.6):

    PHP Fatal error: Uncaught Error: Call to undefined method avia_slideshow::default_args() in /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullscreen/slideshow_fullscreen.php:1068#012Stack trace:#012#0 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(368): avia_sc_slider_fullscreen->get_element_styles(Array)#012#1 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(951): aviaShortcodeTemplate->create_header_styles(Array, false)#012#2 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(885): aviaPostCssManagement->css_rules_from_shortcodes(Array, ‘file’)#012#3 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(840): aviaPostCssManagement->get_css_rules_from_content(‘[av_fullscreen …’ in /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullscreen/slideshow_fullscreen.php on line 1068

    Its currently on a child theme but error seems to be triggered by the main theme

    #1415461

    Hey rebecca306,

    Thanks for the login details. Could you try updating your PHP version to 8.x to see if that helps please?

    Best regards,
    Rikard

    #1415599

    Hey!

    I updated the core theme because I need the site to work on PHP8. Same error on PHP8 but I noticed it happening in 7.4 prior to updating.

    #1415601

    This is the error in PHP8:

    {
    “installName”: “dsdcad”,
    “environment”: “PROD”,
    “type”: “error”,
    “date”: “2023-08-05T10:40:35.048Z”,
    “severity”: null,
    “client”: null,
    “message”: “PHP Fatal error: Uncaught Error: Call to undefined method avia_slideshow::default_args() in /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullscreen/slideshow_fullscreen.php:1068#012Stack trace:#012#0 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(368): avia_sc_slider_fullscreen->get_element_styles(Array)#012#1 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(951): aviaShortcodeTemplate->create_header_styles(Array, false)#012#2 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(885): aviaPostCssManagement->css_rules_from_shortcodes(Array, ‘file’)#012#3 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(840): aviaPostCssManagement->get_css_rules_from_content(‘[av_fullscreen …’, 8237, ‘file’)#012#4 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(249): aviaPostCssManagement->get_css_rules_from_post(8237)#012#5 /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(205): aviaPostCssManagement->check_create_file(8237)#012#6 /nas/content/live/dsdcad/wp-includes/class-wp-hook.php(308): aviaPostCssManagement->handler_enqueue_post_styles(”)#012#7 /nas/content/live/dsdcad/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#012#8 /nas/content/live/dsdcad/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#9 /nas/content/live/dsdcad/wp-includes/script-loader.php(2194): do_action(‘wp_enqueue_scri…’)#012#10 /nas/content/live/dsdcad/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts(”)#012#11 /nas/content/live/dsdcad/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)#012#12 /nas/content/live/dsdcad/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#13 /nas/content/live/dsdcad/wp-includes/general-template.php(3049): do_action(‘wp_head’)#012#14 /nas/content/live/dsdcad/wp-content/themes/enfold-child/header.php(77): wp_head()#012#15 /nas/content/live/dsdcad/wp-includes/template.php(783): require_once(‘/nas/content/li…’)#012#16 /nas/content/live/dsdcad/wp-includes/template.php(718): load_template(‘/nas/content/li…’, true, Array)#012#17 /nas/content/live/dsdcad/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)#012#18 /nas/content/live/dsdcad/wp-content/themes/enfold/template-builder.php(15): get_header()#012#19 /nas/content/live/dsdcad/wp-includes/template-loader.php(106): include(‘/nas/content/li…’)#012#20 /nas/content/live/dsdcad/wp-blog-header.php(19): require_once(‘/nas/content/li…’)#012#21 /nas/content/live/dsdcad/index.php(17): require(‘/nas/content/li…’)#012#22 {main}#012 thrown in /nas/content/live/dsdcad/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullscreen/slideshow_fullscreen.php on line 1068″,
    “uuid”: “efb54c81-cd9c-4d44-962b-296e0bd4001b”
    }

    • This reply was modified 1 year, 3 months ago by rebecca306.
    #1415620

    Hi,
    I see that you are using a child theme, but we are unable to view the files, but when we activate the parent theme the site loads correctly so the issue seems to be in the child theme.
    If you have a custom footer.php or header.php then perhaps these do not match the current footer.php & header.php, this will cause errors in your theme. We do not recommend adding these files to your child theme, it is the most common reason for errors when updating. Please remove these files and any customizations you wish to make should be done in your child theme functions.php
    If you have other customized files in your child theme then perhaps this is the issue, or perhaps the customization in your child theme functions.php is the issue.
    Try removing all of your customization from the child theme so the site loads correctly as when the parent theme is enabled. Then add your customizations back to the child theme a little at a time and check your site until you find what is causing the error.

    Best regards,
    Mike

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