-
Hey,
When I am trying to view one of my custom post types, I’m getting the following error:
Fatal error: Uncaught InvalidArgumentException: The $example is required for variable name. in wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-variable.php:92 Stack trace: #0 wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php(97): RankMath\Replace_Variables\Variable::from('name', Array) #1 wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-author-variables.php(56): RankMath\Replace_Variables\Manager->register_replacement('name', Array, Array) #2 wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php(154): RankMath\Replace_Variables\Author_Variables->setup_author_variables() #3 wp-includes/class-wp-hook.php(286): RankMath\Replace_Variables\Manager->setup('post.php') #4 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /hom in wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-variable.php on line 92 The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
I have then received an email from my site stating…
Howdy!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, Rank Math SEO.
First, visit your website and check for any visible issues. Next, visit the page where the error was caught (/wp-admin/post.php?post=4343&action=edit) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
Can you please advise/fix. Thanks.
Gareth
The ticket ‘PHP Error When Viewing Custom Post Type’ is closed to new replies.