Server Error 5(xxx) PHP version conflicts
-
Several URLs were giving 5xx server errors. I contacted my host provider. They found out my theme version Rife Free Version: 2.4.21 conflicts with their current PHP version 8.2. My WordPress version is 6.7.1. Below are my host’s server errors:
[30-Jan-2025 21:31:17 UTC] PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, bool given in /home/customer/www/nycmoments.nyc/public_html/wp-content/themes/rife-free/advance/utilities/woocommerce.php:356
Stack trace:
#0 /home/customer/www/nycmoments.nyc/public_html/wp-includes/class-wp-hook.php(324): apollo13framework_wc_loop_single_product_categories('')
#1 /home/customer/www/nycmoments.nyc/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /home/customer/www/nycmoments.nyc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/templates/content-product.php(42): do_action('woocommerce_bef...')
#4 /home/customer/www/nycmoments.nyc/public_html/wp-includes/template.php(812): require('/home/customer/...')
#5 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home/customer/...', false)
#6 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/templates/single-product/up-sells.php(42): wc_get_template_part('content', 'product')
#7 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/customer/...')
#8 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2283): wc_get_template('single-product/...', Array)
#9 /home/customer/www/nycmoments.nyc/public_html/wp-includes/class-wp-hook.php(324): woocommerce_upsell_display(0)
#10 /home/customer/www/nycmoments.nyc/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /home/customer/www/nycmoments.nyc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/templates/content-single-product.php(72): do_action('woocommerce_aft...')
#13 /home/customer/www/nycmoments.nyc/public_html/wp-includes/template.php(812): require('/home/customer/...')
#14 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home/customer/...', false)
#15 /home/customer/www/nycmoments.nyc/public_html/wp-content/plugins/woocommerce/templates/single-product.php(37): wc_get_template_part('content', 'single-product')
#16 /home/customer/www/nycmoments.nyc/public_html/wp-includes/template-loader.php(106): include('/home/customer/...')
#17 /home/customer/www/nycmoments.nyc/public_html/wp-blog-header.php(19): require_once('/home/customer/...')
#18 /home/customer/www/nycmoments.nyc/public_html/index.php(17): require('/home/customer/...')
#19 {main}
thrown in /home/customer/www/nycmoments.nyc/public_html/wp-content/themes/rife-free/advance/utilities/woocommerce.php on line 356At this point my server is running PHP 7.4 (outdated) My host provider recommends to be on PHP 8.2. Are you going to make your theme compatible with the latest PHP versions.
The page I need help with: [log in to see the link]
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- You must be logged in to reply to this topic.