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

Unable to save Yoast SEO information #116

Open
bobbingwide opened this issue Jan 12, 2024 · 8 comments
Open

Unable to save Yoast SEO information #116

bobbingwide opened this issue Jan 12, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@bobbingwide
Copy link
Owner

With oik-loader active, when I edited a post that's associated with Component: AI Auto Tool
it appears that saving the post doesn't save the Yoast SEO meta information for Focus Keyphrase and Meta Description.

Not sure why not.

@bobbingwide bobbingwide added the bug Something isn't working label Jan 12, 2024
@bobbingwide bobbingwide self-assigned this Jan 12, 2024
@bobbingwide
Copy link
Owner Author

For another post https://wp-secrets.co.uk/ai-auto-tool-about-10-web-ai-assistant/ the problem occurred even when I didn't choose a Component or when I set it to another component - 10 web.

I think I can explain the problem associated with setting it to another component!

@bobbingwide
Copy link
Owner Author

I think I can explain the problem associated with setting it to another component!

On second thoughts I can't. oik-loader doesn't regenerate its mapping on the fly. So it would seem that we can't blame any dynamically loaded plugin since there wasn't one to load.

@bobbingwide
Copy link
Owner Author

bobbingwide commented Jan 20, 2024

Here's another post where the Yoast data isn't being saved.
https://wp-secrets.co.uk/sorting-a-list-of-ai-tools-in-ascending-order/

None of the Yoast SEO post meta fields are being set.

@bobbingwide
Copy link
Owner Author

There are several more posts which exhibit this behaviour. I'll have to try to reproduce the problem in a local environment.
Perhaps it's time to clone wp-secrets.co.uk

@bobbingwide
Copy link
Owner Author

I cloned the site and was unable to reproduce locally.
So I retested in the live site with trace enabled.
I noticed the response to https://wp-secrets.co.uk/wp-admin/post.php?post=3678&action=edit&meta-box-loader=1&meta-box-loader-nonce=b5ebbb8782&_locale=user
was a 500 internal server error.

Need to look at the error log!

@bobbingwide
Copy link
Owner Author

bobbingwide commented Jan 26, 2024

With WP_DEBUG set to true there were two warnings followed by a Fatal error.

[26-Jan-2024 14:57:16 UTC] PHP Warning:  scandir(/home/customer/www/wp-secrets.co.uk/public_html/wp-content/cache/sgo-cache/): Failed to open directory: No such file or directory in /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/File_Cacher.php on line 503
[26-Jan-2024 14:57:16 UTC] PHP Warning:  scandir(): (errno 2): No such file or directory in /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/File_Cacher.php on line 503
[26-Jan-2024 14:57:16 UTC] PHP Fatal error:  Uncaught TypeError: array_diff(): Argument #1 ($array) must be of type array, bool given in /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/File_Cacher.php:503
Stack trace:
#0 /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/File_Cacher.php(503): array_diff(false, Array)
#1 /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/Supercacher/Supercacher.php(213): SiteGround_Optimizer\File_Cacher\File_Cacher::purge_cache_request('https://wp-secr...', false)
#2 /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/Supercacher/Supercacher.php(475): SiteGround_Optimizer\Supercacher\Supercacher::purge_cache_request('https://wp-secr...', false)
#3 /home/customer/www/wp-secrets.co.uk/public_html/wp-includes/class-wp-hook.php(326): SiteGround_Optimizer\Supercacher\Supercacher->purge_queue(3678)
#4 /home/customer/www/wp-secrets.co.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /home/customer/www/wp-secrets.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/customer/www/wp-secrets.co.uk/public_html/wp-includes/post.php(4760): do_action('save_post', 3678, Object(WP_Post), true)
#7 /home/customer/www/wp-secrets.co.uk/public_html/wp-includes/post.php(4862): wp_insert_post(Array, false, true)
#8 /home/customer/www/wp-secrets.co.uk/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
#9 /home/customer/www/wp-secrets.co.uk/public_html/wp-admin/post.php(227): edit_post()
#10 {main}
  thrown in /home/customer/www/wp-secrets.co.uk/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/File_Cacher.php on line 503

@bobbingwide
Copy link
Owner Author

@bobbingwide
Copy link
Owner Author

Looks like SiteGround have been having a play. They've changed the title of this post.
But the meta description and focus keyphrase are still empty.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant