Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1313512

    We tried upgrading our Enfold theme from version 4.7.6.4 To 4.8.5 and got this error:

    [30-Jul-2021 17:33:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined method avia_magazine::get_defaults() in /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php:526
    Stack trace:
    #0 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1258): avia_sc_magazine->shortcode_handler(Array, ”, ‘av_magazine’, Array)
    #1 /home/XXXX/public_html/wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_magazine’)
    #2 [internal function]: do_shortcode_tag(Array)
    #3 /home/XXXX/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(av_hea…’, ‘do_shortcode_ta…’, ‘\n[av_hr class=’…’)
    #4 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(506): do_shortcode(‘\n[av_hr class=’…’)
    #5 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/colu in /home/alanseid/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php on line 526

    Is there something special we need to do to make this upgrade? For now we just rolled back. We do have a child theme in place if that makes a difference.

    • This topic was modified 3 years, 3 months ago by aseiden. Reason: Forgot to include FTP password
    #1313819

    Hi aseiden,

    Thanks for the login details, and sorry for the late reply. I see that you have the old version active for now, are we allowed to temporarily activate the new version in order to see the actual problem on your site? We are planning to release a new version of the theme later today, so you might want to hold off and try that version instead.

    Best regards,
    Rikard

    #1314231

    You can certainly try activating it yourself so long as you use the FTP connection to restore the old theme afterwards.

    I just tried updating to the new version 4.8.6 and got the same error as before:

    [03-Aug-2021 20:12:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined method avia_magazine::get_defaults() in /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php:526
    Stack trace:
    #0 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1258): avia_sc_magazine->shortcode_handler(Array, ”, ‘av_magazine’, Array)
    #1 /home/XXXX/public_html/wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_magazine’)
    #2 [internal function]: do_shortcode_tag(Array)
    #3 /home/XXXX/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(av_hea…’, ‘do_shortcode_ta…’, ‘\n[av_hr class=’…’)
    #4 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(506): do_shortcode(‘\n[av_hr class=’…’)
    #5 /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/colu in /home/XXXX/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php on line 526

    #1314657

    Hi,

    Thanks for the update. Does the same thing happen when the parent theme is active? I’m asking since I can see that you are overriding magazine.php in your child theme, and it’s that file which looks to be throwing the errors. You might have to copy the content of the new parent theme file, and apply your overrides again in that file. If you can’t try this on your live site, then please copy the site to a staging area.

    Best regards,
    Rikard

    #1330566

    Thanks for the catch on that. We’ve removed our customized version and that let us upgrade just fine.

    #1330582

    Hi,

    Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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