Plugin crashes when activating
-
Hello,
When we try to activate the plugin it crashes. What to do?
The page I need help with: [log in to see the link]
-
Hey Joel,
Sorry you’re having problems.
Are there any errors you get? Are you able to enable them and then try activating again so I can try to see what is causing it?
Are you using the latest version?
I use Version 3.1.0.
As soon as I actrivate it the whole site crashes and I have to use FTP and rename the plugin folder to get access again.
Sorry my bad for not explaining well, are you able to enable the error logging in the wp-config.php file. This should then log the error that is happening and give some insight/context into the issue.
[25-Sep-2025 12:18:57 UTC] PHP Fatal error: Cannot redeclare bbloomer_remove_info_tab() (previously declared in /home/mellins/domains/mellins.nu/public_html/wp-content/wpextended-snippets/19-Remove-Additional-Info-Product-Tab.php:30) in /home/mellins/domains/mellins.nu/public_html/wp-content/wpextended-snippets/29-Remove-Additional-Info-Product-Tab.php on line 32
Maybe this one?
But I don’t know how to fix it since I can not activate the plugin.It looks like you had the same snippet twice. To fix this, you can either go into your file manage into
wp-content/wpextended-snippetsand delete the29-Remove-Additional-Info-Product-Tab.phpfile.Or we have a safemode option. If you append
?wpextended_safe_mode=1to the url, it should block the snippets from loading which will allow you to go into the code snippet module and delete the duplicate.This is a bit mysterious. I removed that one, but then another error is appearing:
2025-09-25T14:23:06+00:00Kritiskt Cannot redeclare sk_translate_woocommerce_strings_emails() (previously declared in /home/mellins/domains/mellins.nu/public_html/wp-content/wpextended-snippets/18-Remove-8220Congratulations-on-the-sale.8221-from-W.php:26) Ytterligare kontext{ “error”: { “type”: 64, “file”: “/home/mellins/domains/mellins.nu/public_html/wp-content/wpextended-snippets/33-Remove-8220Congratulations-on-the-sale.8221-from-W.php”, “line”: 29 }, “remote-logging”: true, “backtrace”: [ { “file”: “/home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php”, “line”: 429, “function”: “critical”, “class”: “WC_Logger”, “type”: “->” }, { “function”: “log_errors”, “class”: “WooCommerce”, “type”: “->” } ]

I have not had the same snippet twice, not the other one either. So there seems to be another issue…
That is strange, and again really sorry this has happened. It seems that the snippets were duplicated. I tested the update from an older version to the new version on my installation, and there were no duplicates.
I have a question: In previous versions, did you use both the legacy and new versions of the code snippets? Our previous version included two versions of the code snippet module.
Are you able to upload a screenshot of the list of the code snippets you see inside the module. Do you see duplicates? (You might need to enable safe mode again.)
Yes now I can see that there are duplicates. But I don’t know why? The problem came suddenly today. Could it be after an update?
It doesn’t look like the images uploaded; can you try uploading them on another site like Imgur and linking to them please?
Yes it’s most likely to do with the new update; version 3.1.0 was a massive update. Hopefully, it should be a matter of just deleting the duplicates.
Did you say you did use both versions of the legacy and new code snippets module?
https://snipboard.io/35HeQB.jpg
https://snipboard.io/VTXKqP.jpg
https://snipboard.io/o81ikr.jpg
https://snipboard.io/jh8Itg.jpg
https://snipboard.io/5AWcSn.jpg
“Did you say you did use both versions of the legacy and new code snippets module?“
I don’t know to be honest.
It seems like some duplicates are active and some not. How do I know if the original was active or not?I have for example one that is not active and one that is active:
https://snipboard.io/qS8Vl6.jpg
https://snipboard.io/0Dr4t2.jpg
But I don’t remember if it should be active or not.Thanks for sending these through. The snippets should have kept the same status as before the update.
The snippet you highlighted is likely one of the ones shown in the error log. That version was active, but because of the duplicate, one needed to be deactivated to prevent the site from crashing.
From what I can see, the duplicates were created in the same order. That means you should be able to identify the second set of snippets and safely delete all of the duplicates from that point onward.
Yes, thanks! It seems like there were not created duplicates of all snippets, but only some?
https://snipboard.io/Rz8e7L.jpg
https://snipboard.io/UcSan2.jpg
https://snipboard.io/QE9owb.jpg
Is this just a bug, but it looks like there are three pages with snippets, all the same?-
This reply was modified 6 months, 2 weeks ago by
joelmellin.
Haha, good spot. I think you’re right. I just managed to fix this in the dev branch.
I’ll get this fix pushed out today, but before I do, other than the weird duplication issue you had, were there any other problems you came across with the new version?
The release is relatively new; I tried to catch all edge cases and ensure the update was as smooth as possible, but I really do appreciate the feedback and bug reports you found.
-
This reply was modified 6 months, 2 weeks ago by
The topic ‘Plugin crashes when activating’ is closed to new replies.