-
Notifications
You must be signed in to change notification settings - Fork 106
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
Opengraph integration for Yoast SEO 14.0 #491
Conversation
as wp.org still provides the RC1.
The test passes with RC3 and fails with RC4.
Are you anywhere near releasing this? We've released Yoast SEO 14.0 and getting customer complaints. |
@jdevalk Thank you for the heads-up. I have an issue with the phpunit integration test. It was working with the version 14.0-rc6, but doesn't work anymore with the final version. Not sure what change woudl have caused this. |
I believed that I had found the culprit in the migration status and setting the relevant option did fix the error on my local environment. |
Hey @Chouby due to some other issues we're completely removing the PDO requirement. If you check out |
I have restested against 14.0.2-rc1. The test doesn't fail anymore. However I now get database errors:
|
We've just released 14.0.2, can you test against that? We've fixed a lot since RC1. |
Sorry. I did not see that 14.0.2 was released, but in fact it looks like the tests were ran against 14.0.2. Our tests always use https://downloads.wordpress.org/plugin/wordpress-seo.zip which should correspond to the trunk branch. I just restarted them to be sure but I still get the database error (even if tests don't fail). Here is the Travis result https://travis-ci.org/github/polylang/polylang/builds/680693875 |
Looks like that build passed? |
Yes. The tests all pass. But if you look at the reports, you will see the database errors. Not sure why phpunit doesn't mark the test as errored in such case. |
What you could do is run a wp cli command before running your tests:
this would index the entire database. |
Is there a way to create this table with a PHP function? I looked at |
It is created from PHP, through our Ruckusing migrations. You should be able to run Not that that is an internal API, it might break at some point. |
It doesn't work. I suppose that the What I don't understand is that I had this table in my local test environment. So at some point - I suppose when I tested all the RC - the table was created and this explains why the test was ok locally. On a fresh install as in Travis tests, the table is not created anymore.
|
FYI, after updating 14.0.4, my yoast breadcrumb translations and URL's are totally messed up. |
I'm not exactly sure it's related to this issue but I have Polylang 2.7.2 and Yoast seo 14.1 installed on my different websites. On one of them, I have the option "Your homepage displays" set as "your latest posts". On the english version of my homepage my metas are notre translated (https://www.novo-monde.com/en/) event if they are translated in my section "string translations". I'm also missing the string translations for the yoast social media settings for facebook on the front page (title and description) And finally, since I updated to 14.1, I'm missing the og tag |
@bluisier The first part of your issue is not related. It is is due to Yoast having broken their own integration with WPML and Polylang since Yoast 14.0. See also my comment here: #505 (comment) This PR is to update our own integration for Opengraph only, the fact that you are miising the |
As they break again with a new error in Yoast 14.1: WordPress database error Can't reopen table: 'wyi' for query DELETE wyi FROM wptests_yoast_indexable wyi INNER JOIN wptests_yoast_indexable wyi2 WHERE wyi2.object_id = wyi.object_id AND wyi2.object_type = wyi.object_type AND wyi2.id < wyi.id;
Closed in favor of #509. |
Yoast SE0 changes the way to handle Opengraph tags in the version 14.0. This PR adapts our compatibility to this new way. The old method is kept for backward compatibility with version older than 14.0, at least for a while.
It also re-introduces integation tests, although for we now use the action wpseo_head instead of the action wp_head in former version (see b5686e2).
Fix #487