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
#0 /home/dh_atwbvv/gumtune.com/wp-settings.php(591: include()
#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…’)
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
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.
Most likely, you have customized some of the theme files directly (listinghive/functions.php at master · hivepress/listinghive · GitHub), which is why this error is displayed. We recommend reverting the file to a previous version.
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.
You said reverting a file to a previous version but which file?
How can i custmise the theme can you please explain a bit.
According to the error logs, this is the listinghive/functions.php at master · hivepress/listinghive · GitHub.
If you have a backup, you can restore to a previous version.
If you’re not entirely familiar with coding and WordPress, please consider hiring someone for custom work https://fvrr.co/32e7LvY
How can i restore to previous version?
dreamhost is asking me to delete the theme and try another theme do you have any other theme?
If i delete theme will it delete any postings or any thing else from my website?
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.
I updated hivepress theme and it all sorted thanks for your help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.