Archived topic
Error in Generatepress Block Editor!
17 replies · Started by Kevin on March 21, 2023
There are 2 main errors there:
error 1
[27-Mar-2023 12:06:54 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_rocket_add_purge_posts_to_author' not found or invalid function name in /home/runcloud/webapps/siterentavel/wp-includes/class-wp-hook.php on line 308
The WP Rocket Plugin is making a function callback wp_rocket_add_purge_posts_to_author and that function was either not found or was invalid.
The only reference i could find to that function callback is in this article:
https://docs.wp-rocket.me/article/1280-customize-access-to-options-for-user-roles
Did you add that function to your site somewhere?
error 2
27-Mar-2023 11:55:17 UTC] WordPress database error Table 'siterentavelsdb.wp_rank_math_redirections_cache' doesn't exist for query SELECT * FROM wp_rank_math_redirections_cache WHERE ( object_id = 22 and object_type = 'post' ) ORDER BY object_id DESC made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array('wp'), WP_Hook->do_action, WP_Hook->apply_filters, RankMath\Redirections\Redirections->do_redirection, RankMath\Redirections\Redirector->__construct, RankMath\Redirections\Redirector->flow, RankMath\Redirections\Redirector->from_cache, RankMath\Redirections\Cache::get_by_object_id_or_url, MyThemeShop\Database\Query_Builder->get
So something is querying the database, looking specifically for this table: siterentavelsdb.wp_rank_math_redirections_cache which looks to be where RankMath caches its redirections tables. And that table cannot be found.
I found one support topic on this, see here:
https://wordpress.org/support/topic/wp_rank_math_redirections-doesnt-exist/
Thank you, I can't believe it's the cause of the errors, but for now it didn't happen on any of the sites after yesterday's macOS update. Let's see!Thank you for pointing out these errors, I'll check them out.
You're welcome