Tagged: fatal error, Portfolio
-
AuthorPosts
-
August 8, 2021 at 6:41 pm #1315127
Hi,
i receive this error with some portfolio items (not all).. I supposed was a problem of WPML but it doesn’t…Fatal error: Uncaught TypeError: Argument 1 passed to aviaShortcodeTemplate::unique_css_element_id() must be of the type array, string given, called in /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php on line 359 and defined in /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:445 Stack trace: #0 /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(359): aviaShortcodeTemplate->unique_css_element_id(”, ‘av_one_third’) #1 /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(374): aviaShortcodeTemplate->element_styles_defaults(Array) #2 /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/columns/columns.php(994): aviaShortcodeTemplate->get_element_styles(Array) #3 /nas/content in /nas/content/live/pematest/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php on line 445
August 10, 2021 at 7:36 am #1315970Hey tecnoprof,
Thank you for the inquiry.
Try to repair the shortcodes by enabling the shortcode parser in the builder. You have to enable debugging first. Please check the following documentation for more info.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#shortcode-parser
Best regards,
IsmaelAugust 10, 2021 at 7:04 pm #1316128Hi Ismael,
sorry but i have problem with your documentation..
First of all i don’t have a “child theme” and i can’t find “function.php” but i founded “function-enfold.php”
Second: i didn’t find the string <<if(isset($avia_config[‘use_child_theme_functions_only’])) return; >>
Third: i didn’t find “Advanced Layout Builder” in theme options.My Enfold version is updated (4.8.6.1)
Please could you help me to understand and fix the problem?
i can give you credentials to my “staging” website if you need..Let me know
thank you very muchbest regards
August 13, 2021 at 6:51 am #1316546Hi,
Thank you for the update.
There should be a functions.php file in the parent theme directory. Please check it in the Appearance > Editor panel. It should be at the very top of the list. You can also use any of the following plugins to add custom PHP snippets.
// https://wordpress.org/plugins/insert-php-code-snippet/
// https://wordpress.org/plugins/my-custom-functions/
// https://wordpress.org/plugins/code-snippets/Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.