-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error during slugs uninstallation after successful migration #1184
Comments
Yes it would clash when used at the same time. An easy workaround is to disable the Slugs module or the qTranslate-XT plugin before you uninstall QTS and enable all back after that. Be sure your migration is complete by checking the migrated slugs in post/pages (postmeta) and in the slugs settings (termmeta and options). We should have renamed these functions, all But that's not the best way to do it, I'm thinking of introducing namespaces in the next major release (V4). WordPress is not showing the good example either, they have a bunch of global functions, just a few prefixed with |
Function names with legacy `qts_` prefix create potential conflicts. Adopt the `qtranxf_` prefix convention, declined as `qtranxf_slugs_`. Rename some internal method in class QTX_slugs.
Fixed in master. |
Fix released in 3.12.1. |
Hi, experienced this error when pressing the uninstall button of qtranslate-slug and it did not uninstall:
AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare qts_get_url() (previously declared in /opt/bitnami/wordpress/wp-content/plugins/qtranslate-xt/modules/slugs/src/slugs-utils.php:7) in /opt/bitnami/wordpress/wp-content/plugins/qtranslate-slug/qtranslate-slug.php on line 126', referer:
Not sure if solvable without renaming qts_get_url :/
The text was updated successfully, but these errors were encountered: