-
Notifications
You must be signed in to change notification settings - Fork 40
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
[>3.8.2] Plugin administration not working anymore - WPML conflict #153
Comments
Hm, you seem to be missing the admin javascript, the sources should look like this on the admin dashboard: We confirmed it's present in the wordpress.org plugin repo and the github repo (we sync github to wordpress.org svn whenever we deploy a new version): Maybe a botched upgrade? Can you try reinstalling the plugin from the zip file? |
One other possibility if you do see
|
Hi, A brief update on the problem. There seems to be an incompatibility with the WPML plugin : 2024/08/07 09:04:10 [error] 1021344#1021344: *52627 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SitePress::terms_clauses(), 1 passed in [...]/wp-includes/class-wp-hook.php on line 326 and exactly 3 expected in [...]/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2648
Stack trace:
#0 [...]/wp-includes/class-wp-hook.php(326): SitePress->terms_clauses()
#1 [...]/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 [...]/wp-includes/class-wp-term-query.php(734): apply_filters()
#3 [...]/wp-includes/class-wp-term-query.php(311): WP_Term_Query->get_terms()
#4 [...]/wp-includes/taxonomy.php(1357): WP_Term_Query->query()
#5 [...]/wp-includes/taxonomy.php(2316): get_terms()
#6 [...]/wp-includes/taxonomy.php(3832): wp_get_object_terms()
#7 [...]/wp-includ" while reading upstream, client: [...], server: [...], request: "GET [...]/wp-admin/options-general.php?page=authorizer HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "[...]", referrer: "[...]/wp-admin/plugins.php" The functions By replacing :
with :
and replacing :
with :
the latest versions (>3.8.2) of Authorizer are working properly again. |
We had a workaround for this where we temporarily removed the Since we don't have access to the latest WPML source, can you check and see if they changed how they register their hook? If so we can update our codebase to try to match. Alternatively, your solution for modifying WPML also works, if you want to try to submit that to the WPML maintainers. |
Hey, Looking at your workaround, I don't quite understand why in the By removing this one : Moreover, I don't really understand why the line : |
Can you try commenting out both the Regarding why those lines exist, we basically remove the custom WPML filter before we query |
Thanks for the explanation. I confirm that by commenting out the complete code block, everything works correctly. |
We can't remove the entire code block because Authorizer needs to fetch the categories with |
Hello, I can confirm that by commenting on these two lines of code alone, everything works just as well. |
OK great! You can leave them commented out on your setup; we'll remove that extra check in the next release of Authorizer so it should continue working after you upgrade. |
Hello,
Since plugin version 3.8.3(3.8.4 and 3.8.5 have the issue too), the authorizer administration dashboard no longer seems to work.
No matter where you click (on one of the tabs, for example), the browser returns the following error:
or :
The extension works with the settings already in place, but no further user updates are possible.
Furthermore, when looking in the browser's devtool, no JS files seem to be loaded :
Any idea where the problem might be coming from?
Thanks
The text was updated successfully, but these errors were encountered: