Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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

    #1315970

    Hey 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,
    Ismael

    #1316128

    Hi 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 much

    best regards

    #1316546

    Hi,

    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

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