-
Notifications
You must be signed in to change notification settings - Fork 13
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
Warning: Undefined property #4
Comments
Hi @mtdas99, Thanks for bringing this to my attention. Warning I haven't yet had time to fix it properly, but if you need a quick and dirty fix, you must edit a few lines of the Yoast SEO plugin from the WordPress repository or simply download the edited version linked below. Of course, updating it will overwrite it, so consider this a very temporary solution or wait until I've found a more elegant solution that only affects the Premium repository here on GitHub. This solution has been tested with the free Yoast WordPress SEO v23.4 and the updated version of Yoast WordPress SEO Premium v23.4 (the current release here is the outdated v22.5), which will be released once I've fixed these PHP warnings. Temporary FixThe new branch Download Temporary Fixed PluginIf you're not depending on PHP Composer or other automatic package managers that are hooked up to this repository, you can download this adjusted .zip file and replace it with your current version of Manually Implement Temporary FixIf you choose to apply the "fix" manually, follow these steps:
return (object) [
'renewal_url' => $subscription->renewalUrl,
'expiry_date' => $subscription->expiryDate,
'product' => (object) [
'version' => $subscription->product->version,
'name' => $subscription->product->name,
'slug' => $subscription->product->slug,
'last_updated' => $subscription->product->lastUpdated,
'store_url' => $subscription->product->storeUrl,
// Ternary operator is necessary because download can be undefined.
'download' => $subscription->product->download ?? null,
'changelog' => $subscription->product->changelog,
],
]; to return (object) [
'renewal_url' => $subscription->renewalUrl ?? null,
'expiry_date' => $subscription->expiryDate,
'product' => (object) [
'version' => $subscription->product->version ?? '',
'name' => $subscription->product->name ?? '',
'slug' => $subscription->product->slug,
'last_updated' => $subscription->product->lastUpdated ?? '',
'store_url' => $subscription->product->storeUrl ?? '',
// Ternary operator is necessary because download can be undefined.
'download' => $subscription->product->download ?? null,
'changelog' => $subscription->product->changelog ?? '',
],
];
Again, this is a temporary fix. I'll have a look into it to fix it on the |
This issue has now been fixed and is included in the latest v23.4 release inside the |
Previously I didn't saw any issues like below and also didn't saw any notification on plugin page to Activate your Subscription. But now the plugin shows the following error along with the notification: We have detected the following issues that affect the SEO of your site. Yoast SEO Premium isn't working as expected and you are not receiving updates or support! Make sure to activate your product subscription in MyYoast to unlock all the features of Yoast SEO Premium. |
v23.5 fixes the the bug mentioned in #4 and other internal bugs. Signed-off-by: Mavrokordato <[email protected]>
@mtdas99 This is now fixed in the latest release of v23.5. |
Now whenever I try to Start SEO data optimization, Yoast is troughing the below mentioned error. I have deactivated all plugins including security plugin but still same. Oops, something has gone wrong and we couldn't complete the optimization of your SEO data. Please click the button again to re-start the process. If the problem persists, please contact support. Below are the technical details for the error. See this page for a more detailed explanation. Error details |
@mtdas99 This seems to be an issue on your site. When I run the data optimization, it does so and responds with
Problems are also shown as If your issue still persists, please go to "Tools" -> "Site Health" -> "Info" and press the button "Copy site info to clipboard". Paste the results here using the code block format. |
Thank you for reply. Here are the Site Health info details:
|
@mtdas99 Thanks for that, and for your patience. I'm going to inspect it tomorrow (Tuesday) and see what I can find. In the meantime, please create a full backup of your website so that, if we make changes, you can always restore them. A great plugin for that is Solid Backups, also hosted on WordPress Premium. |
PHP errors logged as below. The errors comes from Yoast SEO WordPress repository version while this Yoast SEO Premium 22.5 version activated.
The text was updated successfully, but these errors were encountered: