Cannot redeclare turn_off_reject_unsafe_urls() in theme-media.php:101
-
Hi there,
Currently I’m trying to save my user changes to my theme folder using the overwrite theme option within the menu of create block theme.
Whenever I do this, I’m getting a fatal error in WordPress.
And then my debug log tells me:[19-Apr-2024 13:04:54 UTC] PHP Fatal error: Cannot redeclare turn_off_reject_unsafe_urls() (previously declared in /var/www/my-website/wp-content/plugins/create-block-theme/admin/create-theme/theme-media.php:101) in /var/www/my-website/wp-content/plugins/create-block-theme/admin/create-theme/theme-media.php on line 101
I’ve also tried doing it from within the new full site editor menu. But this simply returns a 500 internal server error. With I think the same error message.
This started happening after the latest update to the create block themes plugin.
If it has to do with https and certificates, that could be the case because I have a self signed certificate on my local development machine. But this hasn’t changed since the update.
I would like to save my user made changes in my full site editor to my block theme. I’m also not in the mood of manually copy/pasting all the code of all the changes I’ve made.
I’ll try to revert back to the previous version to see if the problem persists for now.
Please let me know if there is anything I can do to help diagnose the issue, or perhaps help figure out if this is something that happens to others.
If you want me to make a clean WordPress install and replicate the issue, I’ll try that later.
- The topic ‘Cannot redeclare turn_off_reject_unsafe_urls() in theme-media.php:101’ is closed to new replies.