dimmex
Forum Replies Created
-
Of course! Where can I send the data? There is a warning in the plugin that you can’t post debugging data on public pages.
Yes! After the update, everything works correctly! Thank you! Problem resolved.
WPML tech support offered the following solution:
Our team investigated and found the following workaround:
// WPML fix. if ( in_array( ‘SitePress’, get_declared_classes(), true ) ) { Router::$use_canonical_redirect = true; Router::$use_old_slugs = false; \add_action( ‘template_redirect’, [ $this, ‘fix_wpml_canonical_redirect’ ], 1 ); }
which you can add to app/public/wp-content/plugins/nextgen-gallery/src/Util/ThirdPartyCompatibility.php file after the following code (line #108):
// Like WPML, BuddyPress is incompatible with our routing hacks. if ( function_exists( ‘buddypress’ ) ) { Router::$use_canonical_redirect = false; Router::$use_old_slugs = false; }
What do you think? Will it work?
Hi!
The WPML url settings are using Languages in different catalogs.
I contacted WPML developers with the same problem. They saw this problem too.
The problem is easily reproducible on pure WordPress with any design template. Just install WPML plugin and Nextgen Gallery, create a page of format “page” and try to open it by canonical url and url of format ?page_id. Under normal operation, there should be a redirect to the canonical url, but it doesn’t work.
Yes, you understand correctly. The problem arises ONLY IF these plugins are operating together. It’s possible that there is a disabling of the redirect to canonical permalinks. This is because if either Nextgen or WPML is deactivated, the redirect functions correctly.