My host provider dream host wants to update my php to 8.1 but when they do my website stops working they said the reason is your hivepress theme can you please help i don’t want to change theme.
It gives this error
Fatal error: Uncaught Error: Undefined constant “upload_mimes” in
/home/dh_atwbvv/gumtune.com/wp-content/themes/listinghive/functions.php:9
Stack trace: #0 /home/dh_atwbvv/gumtune.com/wp-settings.php(591: include() #1 /usr/local/wp/php/WP_CLI/Runner.php(1338):
require(‘/home/dh_atwbvv…’) #2 /usr/local/wp/php/WP_CLI/Runner.php(1256):
WP_CLI\Runner->load_wordpress() #3 /usr/local/wp/php/WP_CLI/Bootstrap/LaunchRunner.php(28):
WP_CLI\Runner->start() #4 /usr/local/wp/php/bootstrap.php(78):
WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) #5 /usr/local/wp/php/wp-cli.php(32): WP_CLI\bootstrap() #6 /usr/local/wp/php/boot-fs.php(17): require_once(‘/usr/local/wp/p…’) #7 {main}
thrown in
/home/dh_atwbvv/gumtune.com/wp-content/themes/listinghive/functions.php
on line 9
Error: There has been a critical error on this website.Learn more about
troubleshooting WordPress. There has been a critical error on this
website.
This error comes directly from the theme, which appears to be having
issues with the PHP version. I recommend checking with the theme
developer and checking if there are any updates pending, you can install.
If that’s not the case, you can try with a different theme, that is
compatible with newer PHP versions.
Also, we recommend customizing a theme or extension using a child theme or Code Snippets plugin because all settings that are made directly will be automatically deleted after the update on our part.
If you made changes directly to the theme folder, we recommend making a minimal restore from your backup if you can do so.
Yes, you can delete a theme in Appearance > Customize, and if it’s ListingHive, you can add it again. But please note that any changes you made directly in the theme files will be overwritten, but all the content will remain.