Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1316119

    Hi there,

    I am receiving errors on my website and unsure how to fix them. I have updated to the latest Enfold theme and tried amending PHP settings / tried previous versions and this does not fix the issue.

    The error I get is:

    Fatal error: Uncaught Error: Call to undefined method avia_masonry::get_element_styles() in /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php:673 Stack trace: #0 /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(335): avia_sc_masonry_entries->get_element_styles(Array) #1 /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(920): aviaShortcodeTemplate->create_header_styles(Array, false) #2 /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(955): aviaPostCssManagement->css_rules_from_shortcodes(Array) #3 /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-manageme in /home/customer/www/slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 673

    #1316346

    Hey IMaclean1995,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1318022

    we got the same error updating to 4.8.6.2 did you fix it ?

    #1318086

    Hi roboscrape,

    Please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1333880

    Hello,

    We are experiencing the same issue. Still present in version 4.8.8.1.

    Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined method avia_masonry::get_element_styles() in /home/aclm/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php:682
    Stack trace:
    #0 /home/aclm/www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(345): avia_sc_masonry_entries->get_element_styles(Array)
    #1 /home/aclm/www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(940): aviaShortcodeTemplate->create_header_styles(Array, false)
    #2 /home/aclm/www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(975): aviaPostCssManagement->css_rules_from_shortcodes(Array)
    #3 /home/aclm/www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php(874): aviaPostCssManagement->css_rules_from_shortcodes(Array, ‘file’)
    #4 /home/aclm/www/wp-content/t…’

    Regards,
    François

    #1333924

    Hi François,

    The .htaccess details you posted are working, but the WordPress details are not. Please check and verify.

    Best regards,
    Rikard

    #1334073

    Hello Rikard,

    Thank you for your answer.

    The user was not created somehow…

    I have created it again.

    Regards,
    François

    #1334121

    Hi François,

    Thanks for that. I see that you are overriding av-helper-masonry.php in your child theme, could you try updating that file with the content from the parent theme please?

    Best regards,
    Rikard

    #1334250

    Hello Rikard,

    Thank you for your answer.

    The av-helper-masonry.php file was overridden in the child theme to fix the
    PHP fatal error: Call to undefined method avia_masonry::default_args()
    since version 4.8.

    I see the av-helper-masonry.php file in the Enfold theme now has the default_args() method, so it is now safe to remove the file in the child theme.

    The error is solved, thank you!

    Regards,
    François

    #1334302

    Hi,

    Great! Glad we could help. Please feel free to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined method’ is closed to new replies.