Okay
  Public Ticket #3220979
IONOS told me to update to PHP 8.1, now theme is broken
Closed

Comments

  • Mat Murray started the conversation

    Hey!

    As per title really.

    Got an email from IONOS to update my PHP version 7.4 to 8.1, and now my website is broken.

    Here's the error message:

    Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/includes/external-sources.class.php:1814 Stack trace: #0 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/public/essential-grid.class.php(1995): Essential_Grid_Youtube->show_channel_videos('1000') #1 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/public/essential-grid.class.php(1614): Essential_Grid->output_by_stream(false) #2 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/public/essential-grid.class.php(1334): Essential_Grid->output_essential_grid('66') #3 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/public/essential-grid.class.php(306): Essential_Grid->output_essential_grid_by_alias('youtube-all') #4 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/shortcodes.php(355): Essential_Grid::register_shortcode(Array, '', 'ess_grid') #5 [internal function]: do_shortcode_tag(Array) #6 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/shortcodes.php(227): preg_replace_callback('/\[(\[?)(ess_gr...', 'do_shortcode_ta...', '[ess_grid alias...') #7 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor-for-sonaar/widgets/sr-essgrid.php(77): do_shortcode('[ess_grid alias...') #8 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/controls-stack.php(2268): ElementorSR_EssGrid->render() #9 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/widget-base.php(609): ElementorControls_Stack->render_by_mode() #10 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/widget-base.php(750): ElementorWidget_Base->render_content() #11 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/element-base.php(449): ElementorWidget_Base->print_content() #12 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/element-base.php(1354): ElementorElement_Base->print_element() #13 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/element-base.php(449): ElementorElement_Base->print_content() #14 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/element-base.php(1354): ElementorElement_Base->print_element() #15 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/base/element-base.php(449): ElementorElement_Base->print_content() #16 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/core/base/document.php(1669): ElementorElement_Base->print_element() #17 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/core/base/document.php(1095): ElementorCoreBaseDocument->print_elements(Array) #18 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/frontend.php(1153): ElementorCoreBaseDocument->print_elements_with_wrapper(Array) #19 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/elementor/includes/frontend.php(1048): ElementorFrontend->get_builder_content(3050) #20 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/class-wp-hook.php(308): ElementorFrontend->apply_builder_in_content('<article style=...') #21 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/plugin.php(205): WP_Hook->apply_filters('<article style=...', Array) #22 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/post-template.php(255): apply_filters('the_content', '<article style=...') #23 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/themes/sonaar/page.php(56): the_content() #24 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/template-loader.php(106): include('/homepages/27/d...') #25 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-blog-header.php(19): require_once('/homepages/27/d...') #26 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/index.php(17): require('/homepages/27/d...') #27 {main} thrown in /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/essential-grid/includes/external-sources.class.php on line 1814

    There has been a critical error on this website.

    Thanks!

  •  1,114
    Max replied

    Hi, 

    Please update the theme and once it's updated to 4.24.2, go to wp-admin > appearance > install plugins and update Essential Grid. 

    Once it's done, you will be able to update to php 8

    Thanks,


    Max from the Sonaar.io Crew

  • Mat Murray replied

    Hey Max,

    Theme is 4.24.2, but I don't have an update for the Essential Grid plugin available.

    Which is weird as when I go to https://tcgs.co/wp-admin/admin.php?page=essential-grid and scroll down, it says:

    Installed Version: 3.0.10
    Available Version: 3.0.16

    Given I'm within a year of re-upping this Podcastr theme, should I also have a 12 month licence for Essential Grid to keep me updated?

  •  1,114
    Max replied

    Could you please provide me access to your wp-admin and I will gladly check the issue you have.

    Thanks,


    Max from the Sonaar.io Crew

  •   Mat Murray replied privately
  •  1,114
    Max replied

    Please check now. I have updated ess grid to 3.0.16

    Thanks,


    Max from the Sonaar.io Crew

  • Mat Murray replied

    Thanks Max!

    The website now seems to load correctly, but when I go to edit a podcast episode (https://tcgs.co/wp-admin/post.php?post=21447&action=edit) I get a white screen with the following error:

    Fatal error: Uncaught ValueError: strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/includes/functions.class.php:387 Stack trace: #0 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/includes/functions.class.php(387): strrpos('', '.', -1) #1 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/includes/slide.class.php(2344): RevSliderFunctions->check_valid_image(false) #2 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/includes/slider.class.php(2278): RevSliderSlide->get_overview_image_attributes('posts') #3 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/admin/includes/functions-admin.class.php(212): RevSliderSlider->get_overview_data(Object(RevSliderSlider), Array) #4 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/admin/includes/functions-admin.class.php(128): RevSliderFunctionsAdmin->get_slider_overview() #5 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/admin/includes/shortcode_generator/shortcode_generator.class.php(216): RevSliderFunctionsAdmin->get_short_library() #6 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/admin/includes/shortcode_generator/shortcode_generator.class.php(22): RevSliderShortcodeWizard::add_scripts() #7 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/class-wp-hook.php(308): RevSliderShortcodeWizard::enqueue_scripts('post.php') #8 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'post.php') #11 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-admin/edit-form-advanced.php(425): require_once('/homepages/27/d...') #12 /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-admin/post.php(206): require('/homepages/27/d...') #13 {main} thrown in /homepages/27/d768150026/htdocs/clickandbuilds/TheComputerGameShow/wp-content/plugins/revslider/includes/functions.class.php on line 387

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

  •  1,114
    Max replied

    I have updated slider revolution to the latest compatible version. now it works.

    Thanks,


    Max from the Sonaar.io Crew

  • Mat Murray replied

    Perfect. Thanks! That looks to be the end of this issue for now.

    Thanks for all your help!