Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1395997

    Hi,
    I’m getting lots of the below warnings after switching to php 8. The warning didn’t occur in 7.4. Is this an issue with the enfold theme?
    I have the latest version installed 5.4.

    Thanks,
    Ger

    Warning: Trying to access array offset on value of type null in /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php on line 2664

    Timestamp: 2023-01-31 09:01:43 UTC

    Stack Trace
    ———–
    1. ShortcodeParser->check_wp_result_array(Array(1), Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php:478
    2. ShortcodeParser->parse_shortcode(‘[gravityform id=”42″ t…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php:511
    3. ShortcodeHelper::clean_up_shortcode(‘[gravityform id=”42″ t…’, ‘balance_only’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1098
    4. aviaShortcodeTemplate->shortcode_handler_prepare(Array(9), ”, ‘av_font_icon’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:355
    5. do_shortcode_tag(Array(7))
    6. preg_replace_callback(‘/\[(\[?)(av_font_icon)…’, ‘do_shortcode_tag’, ‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:227
    7. do_shortcode(‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-hook.php:310
    8. WP_Hook->apply_filters(‘Halligan Insurances, W…’, Array(3))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/plugin.php:205
    9. apply_filters(‘widget_text’, ‘Halligan Insurances, W…’, Array(4), WP_Widget_Custom_HTML)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets/class-wp-widget-custom-html.php:148
    10. WP_Widget_Custom_HTML->widget(Array(13), Array(2))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-widget.php:394
    11. WP_Widget->display_callback(Array(13), Array(1))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets.php:835
    12. dynamic_sidebar(‘av_footer_1’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/footer.php:180
    13. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:783
    14. load_template(‘/var/www/vhosts/hallig…’, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:718
    15. locate_template(Array(1), true, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/general-template.php:92
    16. get_footer()
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/page.php:57
    17. include(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template-loader.php:106
    18. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-blog-header.php:19
    19. require(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/index.php:17

    Context
    ——-
    URL : /cwu-sic-cover-plan/
    Referer : https://www.google.com/
    HTTP Method : GET
    HTTP Host : halligan.ie
    HTTP Status : 200
    isSSL : Yes
    Current Filter : widget_text
    Execution Time : 1.748 s
    Memory Usage : 75.78 MiB
    PHP SAPI : fpm-fcgi

    • This topic was modified 1 year, 10 months ago by gerhalligan.
    #1395998

    Also, getting this warning too?

    Warning: Undefined variable $sc in /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php on line 2664

    First seen: 2023-01-31 00:10:06 Europe/Dublin
    Last seen: 2023-01-31 09:01:43 Europe/Dublin
    Total events: 78

    Stack Trace
    ———–
    1. ShortcodeParser->check_wp_result_array(Array(1), Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php:478
    2. ShortcodeParser->parse_shortcode(‘[gravityform id=”42″ t…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php:511
    3. ShortcodeHelper::clean_up_shortcode(‘[gravityform id=”42″ t…’, ‘balance_only’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1098
    4. aviaShortcodeTemplate->shortcode_handler_prepare(Array(9), ”, ‘av_font_icon’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:355
    5. do_shortcode_tag(Array(7))
    6. preg_replace_callback(‘/\[(\[?)(av_font_icon)…’, ‘do_shortcode_tag’, ‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:227
    7. do_shortcode(‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-hook.php:310
    8. WP_Hook->apply_filters(‘Halligan Insurances, W…’, Array(3))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/plugin.php:205
    9. apply_filters(‘widget_text’, ‘Halligan Insurances, W…’, Array(4), WP_Widget_Custom_HTML)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets/class-wp-widget-custom-html.php:148
    10. WP_Widget_Custom_HTML->widget(Array(13), Array(2))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-widget.php:394
    11. WP_Widget->display_callback(Array(13), Array(1))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets.php:835
    12. dynamic_sidebar(‘av_footer_1’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/footer.php:180
    13. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:783
    14. load_template(‘/var/www/vhosts/hallig…’, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:718
    15. locate_template(Array(1), true, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/general-template.php:92
    16. get_footer()
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/page.php:57
    17. include(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template-loader.php:106
    18. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-blog-header.php:19
    19. require(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/index.php:17

    Context
    ——-
    URL : /cwu-sic-cover-plan/
    Referer : https://www.google.com/
    HTTP Method : GET
    HTTP Host : halligan.ie
    HTTP Status : 200
    isSSL : Yes
    Current Filter : widget_text
    Execution Time : 1.748 s
    Memory Usage : 75.78 MiB
    PHP SAPI : fpm-fcgi

    #1395999

    And Finally, this one

    Warning: preg_match_all(): Compilation failed: unknown property after \P or \p at offset 7805 in /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php on line 607

    First seen: 2023-01-31 00:10:06 Europe/Dublin
    Last seen: 2023-01-31 09:01:43 Europe/Dublin
    Total events: 413

    Stack Trace
    ———–
    1. preg_match_all(‘/\[{1,2}wp_caption[\s|…’, ‘[gravityform id=”42″ t…’, Array(0), 256)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php:607
    2. ShortcodeParser->balance_shortcode(‘[gravityform id=”42″ t…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php:468
    3. ShortcodeParser->parse_shortcode(‘[gravityform id=”42″ t…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php:511
    4. ShortcodeHelper::clean_up_shortcode(‘[gravityform id=”42″ t…’, ‘balance_only’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1098
    5. aviaShortcodeTemplate->shortcode_handler_prepare(Array(9), ”, ‘av_font_icon’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:355
    6. do_shortcode_tag(Array(7))
    7. preg_replace_callback(‘/\[(\[?)(av_font_icon)…’, ‘do_shortcode_tag’, ‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/shortcodes.php:227
    8. do_shortcode(‘Halligan Insurances, W…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-hook.php:310
    9. WP_Hook->apply_filters(‘Halligan Insurances, W…’, Array(3))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/plugin.php:205
    10. apply_filters(‘widget_text’, ‘Halligan Insurances, W…’, Array(4), WP_Widget_Custom_HTML)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets/class-wp-widget-custom-html.php:148
    11. WP_Widget_Custom_HTML->widget(Array(13), Array(2))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/class-wp-widget.php:394
    12. WP_Widget->display_callback(Array(13), Array(1))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/widgets.php:835
    13. dynamic_sidebar(‘av_footer_1’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/footer.php:180
    14. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:783
    15. load_template(‘/var/www/vhosts/hallig…’, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template.php:718
    16. locate_template(Array(1), true, true, Array(0))
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/general-template.php:92
    17. get_footer()
    /var/www/vhosts/halligan.ie/halligan.ie/wp-content/themes/enfold/page.php:57
    18. include(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-includes/template-loader.php:106
    19. require_once(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/wp-blog-header.php:19
    20. require(‘/var/www/vhosts/hallig…’)
    /var/www/vhosts/halligan.ie/halligan.ie/index.php:17

    Context
    ——-
    URL : /cwu-sic-cover-plan/
    Referer : https://www.google.com/
    HTTP Method : GET
    HTTP Host : halligan.ie
    HTTP Status : 200
    isSSL : Yes
    Current Filter : widget_text
    Execution Time : 1.747 s
    Memory Usage : 75.78 MiB
    PHP SAPI : fpm-fcgi

    #1396068

    Hi,

    Do you have a Gravity Forms shortcode somewhere in your content, for example in the footer? If so, then what happens if you remove it? You might want to consider downgrading to PHP 8.0 or 8.1 for now.

    Best regards,
    Rikard

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