So I think my issue is similar to this ticket or at least my fix was. https://helpdesk.ashanjay.com/ticket/when-i-click-on-an-event-i-receive-the-following-error-there-has-been-a-critical-error-on-this-website/
When I click on an event, the pop up works as expected. However, when I copy event link to clipboard and enter that URL into my tab, I get a critical error has occurred.
This appears in the apache error log when I was using PHP8.0
[Sat Mar 23 02:14:17.963300 2024] [php:error] [pid 38185] [client 51.222.253.6:45794] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php:671nStack trace:n#0 /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php(766): FusionBuilder->get_extra_google_fonts()n#1 /var/www/html/wp-includes/class-wp-hook.php(324): FusionBuilder->set_extra_google_fonts()n#2 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()n#3 /var/www/html/wp-content/themes/Avada/includes/class-avada-google-fonts.php(94): apply_filters()n#4 /var/www/html/wp-includes/class-wp-hook.php(324): Avada_Google_Fonts->init()n#5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()n#7 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css.php(303): do_action()n#8 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css-helpers.php(374): Fusion_Dynamic_CSS->generate_final_css()n#9 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css-file.php(113): Fusion_Dynamic_CSS_Helpers->get_dynamic_css_id()n#10 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css-file.php(180): Fusion_Dynamic_CSS_File->file()n#11 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css-file.php(55): Fusion_Dynamic_CSS_File->can_write()n#12 /var/www/html/wp-content/themes/Avada/includes/lib/inc/class-fusion-dynamic-css.php(212): Fusion_Dynamic_CSS_File->__construct()n#13 /var/www/html/wp-includes/class-wp-hook.php(324): Fusion_Dynamic_CSS->init()n#14 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#15 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()n#16 /var/www/html/wp-includes/script-loader.php(2262): do_action()n#17 /var/www/html/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()n#18 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#19 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()n#20 /var/www/html/wp-includes/general-template.php(3052): do_action()n#21 /var/www/html/wp-content/themes/Avada/header.php(21): wp_head()n#22 /var/www/html/wp-includes/template.php(790): require_once(‘…’)n#23 /var/www/html/wp-includes/template.php(725): load_template()n#24 /var/www/html/wp-includes/general-template.php(48): locate_template()n#25 /var/www/html/wp-content/plugins/eventON/templates/_evo-template-functions.php(291): get_header()n#26 /var/www/html/wp-includes/class-wp-hook.php(324): evotemp_before_header()n#27 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#28 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()n#29 /var/www/html/wp-content/plugins/eventON/templates/single-ajde_events.php(18): do_action()n#30 /var/www/html/wp-includes/template-loader.php(106): include(‘…’)n#31 /var/www/html/wp-blog-header.php(19): require_once(‘…’)n#32 /var/www/html/index.php(17): require(‘…’)n#33 {main}n thrown in /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php on line 671
If I go to a standard theme it works as expected.
I installed PHP7.4 as the linked ticket suggested as the fix and that also did work for me.
So to recap – a direct event link errors out if I’m using the latest version of wordpress ( 6.4.3 ), Avada ( 7.11.7 ), and EventON (4.6) on PHP8.1 and PHP8.0. If I switch to PHP7.4 it works.
I can use PHP8.1 and PHP8.0 if I use a different theme than Avada.
Mar 22,2024 AT 7:53PM - 1 year ago -Hello,
Unfortunately, we cannot fix this from our side, so please apply this patch to Fusion files:
https://helpdeskx.s3.amazonaws.com/wp-content/uploads/2023/02/08180337/Screen-Shot-2023-02-08-at-5.02.20-PM.png