Skip to content
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

Warnings with Yoast breadcrumbs front #1086

Closed
herrvigg opened this issue Dec 1, 2021 · 6 comments
Closed

Warnings with Yoast breadcrumbs front #1086

herrvigg opened this issue Dec 1, 2021 · 6 comments
Labels
module: yoast Integration with yoast

Comments

@herrvigg
Copy link
Collaborator

herrvigg commented Dec 1, 2021

Issues following #1079

Warning: Attempt to read property "target" on array
/wp-content/plugins/qtranslate-xt/modules/wp-seo/wp-seo-front.php in qtranxf_wpseo_schema_webpage at line 106
 $data['potentialAction'][0]['target'] = [ qtranxf_convertURL( $data['potentialAction'][0]->target, $lang ) ];
Warning: Undefined array key "url"
/wp-content/plugins/qtranslate-xt/modules/wp-seo/wp-seo-front.php in qtranxf_wpseo_breadcrumbs_link at line 50
$link_info['url']  = qtranxf_convertURL( $link_info['url'], $q_config['language'] );
@herrvigg herrvigg added the module: yoast Integration with yoast label Dec 1, 2021
@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 1, 2021

Will send a fix tomorrow. This has exploded my quotas on sentry...

herrvigg added a commit that referenced this issue Dec 4, 2021
Add additional checks and make it consistent.
@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 5, 2021

Released in patch 3.11.2 only to fix this issue, to avoid saturating the monitoring tools.

@herrvigg herrvigg closed this as completed Dec 5, 2021
@herrvigg herrvigg reopened this Dec 6, 2021
@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 6, 2021

Regression in the last patch... sorry about that! Hard to test those filters -.-
Fix sent by @Komarovski, thanks!

@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 6, 2021

New fix released in 3.11.3.
Small typo in the commit title, the regression came from 3.11.2 (not 3.11.1).
The changelog and release notes in 3.11.3 are correct.

These fixes are mostly to avoid saturating monitoring tools, should have no impact apart from the SEO data with Yoast.

@herrvigg herrvigg closed this as completed Dec 6, 2021
@herrvigg herrvigg reopened this Dec 7, 2021
@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 7, 2021

@Komarovski guess what... this is not over yet!
New problem: $data['potentialAction'][0]['target'] is an array, which makes qtranxf_convertURL to fail...

Their schema is not documented very well but the example shows this is an array:
https://developer.yoast.com/features/schema/pieces/webpage
I don't even understand why they are creating so many complications with a crazy number of fields. All these repetitions look really insane to me... it doesn't make any sense at all.

Anyway, a new fix is needed.

@herrvigg
Copy link
Collaborator Author

herrvigg commented Dec 7, 2021

New fix released in 3.11.4...

I'm pretty sure there are many other schema fields that should be translated. But that is less problematic.

Now I start to have some doubts about the @id and URLs expecting canonical URLs... I'm not entirely sure the current language should be used to convert the URLs. What is the impact of the browser detection? But that's a new topic and I'll leave it to the Yoast users, it can be discussed separately.

@herrvigg herrvigg closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: yoast Integration with yoast
Projects
None yet
Development

No branches or pull requests

1 participant