-
Notifications
You must be signed in to change notification settings - Fork 104
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
Some canonicals not localised (Yoast) #1032
Comments
Thank you! Merged in master. |
Release in 3.10.1. |
[Thu Jul 08 10:50:58.487198 2021] [php7:error] [pid 13770] [client 144.76.91.79:50980] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function qtranxf_checkCanonical(), 1 passed in /var/www/podillya.com.ua/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /var/www/podillya.com.ua/wp-content/plugins/qtranslate-xt-3.10.1/qtranslate_frontend.php:855\nStack trace:\n#0 /var/www/podillya.com.ua/wp-includes/class-wp-hook.php(288): qtranxf_checkCanonical('https://podilly...')\n#1 /var/www/podillya.com.ua/wp-includes/plugin.php(206): WP_Hook->apply_filters('https://podilly...', Array)\n#2 /var/www/podillya.com.ua/wp-content/plugins/wordpress-seo/frontend/class-frontend.php(1014): apply_filters('wpseo_canonical', 'https://podilly...')\n#3 /var/www/podillya.com.ua/wp-content/plugins/wordpress-seo/frontend/class-frontend.php(868): WPSEO_Frontend->generate_canonical()\n#4 /var/www/podillya.com.ua/wp-includes/class-wp-hook.php(288): WPSEO_Frontend->canonical('')\n#5 /var/www/podillya.com.ua/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('max-snippet:-1,...', Array)\n#6 /var/www/podil in /var/www/podillya.com.ua/wp-content/plugins/qtranslate-xt-3.10.1/qtranslate_frontend.php on line 855 how can I fix it? |
fixed with updating Qtranslate and Yoast SEO to the latest versions |
Some canonicals are not localised when using the YOAST plugin/module.
Right now, the only one I can tell that isn't working is the 'Shop' page for a Woocommerce install. To reproduce:
This causes errors with Google on indexing these URLs.
To fix, add this to the qtranslate-xt Yoast module (
wp-seo-frontend.php
):P.S. @herrvigg I am testing out your complete rewrite of the Yoast module. Congratulations, and great work. Thanks so much for your effort on this project!
The text was updated successfully, but these errors were encountered: