Hey team, I am getting the following PHP Warning: Undefined variable on PHP 8.1.28:
PHP Warning: Undefined variable $index in path-to-sitewp-content/plugins/diagnoseo/includes/class-diagnoseo-metatags.php on line 455
PHP Warning: Undefined variable $index in path-to-sitewp-content/plugins/diagnoseo/includes/class-diagnoseo-metatags.php on line 456
PHP Warning: Undefined variable $follow in path-to-sitewp-content/plugins/diagnoseo/includes/class-diagnoseo-metatags.php on line 457
PHP Warning: Undefined variable $follow in path-to-sitewp-content/plugins/diagnoseo/includes/class-diagnoseo-metatags.php on line 458
While troubleshooting, I found out that the Diagnoseo_MetaTags::meta_robots()
method was producing the PHP warnings due to the use of undefined variables $index
and $follow
not being set when none of the if
or elseif
conditions were met, leaving these variables undefined when they were later used to set values in the $robots
array.
As a temporary fix to ensure that $index
and $follow
are always defined, they were initialized with default values at the beginning of the meta_robots
method. Which I’ve added to fix the issue for me:
public function meta_robots( $robots ) {
$index = 'noindex'; // Default value
$follow = 'nofollow'; // Default value
I hope this helps, and please let me know if you need any clarification about the issue from my end.
]]>Hey team, it looks like there is a typo in the includes/class-diagnoseo-sitemapsettings.php:59
In this line, .i.e, the bolden word (male
):
If you use this function too often it may have a negative impact, so male sure every click is justified by valid changes to the sitemap
I believe it should be: “If you use this function too often it may have a negative impact, so make sure every click is justified by valid changes to the sitemap”
Thank you.
Hello.
There’s a problem with the null value in the schema. It’s bad for SEO. After testing this through https://search.google.com/test/rich-results I’m getting (Structured data with syntax errors detected – Invalid top level element “null”) error. It’s caused by diagnoseo plugin. It’s creating an empty script, probably because those items are unavailable in the free plugin but it shouldn’t be there.
<script type=”application/ld+json”> null </ script>
]]>Hi,
is it possible to import seo data from other plugin (i.e. from Yoast or Rank Math)?
Thank you in advance
]]>Hi
Thanks for your work on the plugin. I’m not able to activate it after downloading from wordpress itself. I think the language below will not get in the way of understanding what it might be. I’m no expert, but can I do anything to fix this?
Detalhes do erro
================
Um erro do tipo E_ERROR foi causado na linha 46 do arquivo(An error of type E_ERROR was caused on line 46 of the file)
/home/idmwebne/public_html/wp-content/plugins/diagnoseo/includes/class-diagnoseo-plugindetector.php. Mensagem de erro: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/idmwebne/public_html/wp-content/plugins/diagnoseo/includes/class-diagnoseo-plugindetector.php:46
Stack trace:
#0 /home/idmwebne/public_html/wp-content/plugins/diagnoseo/includes/class-diagnoseo-plugindetector.php(46): method_exists()
#1 /home/idmwebne/public_html/wp-content/plugins/diagnoseo/includes/class-diagnoseo-plugindetector.php(28): Diagnoseo_PluginDetector->detect_seo_plugins()
#2 /home/idmwebne/public_html/wp-content/plugins/diagnoseo/includes/admin-actions.php(35): Diagnoseo_PluginDetector->__construct()
#3 /home/idmwebne/public_html/wp-includes/class-wp-hook.php(307): diagnoseo_detect_seo_plugins()
#4 /home/idmwebne/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 /home/idmwebne/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#6 /home/idmwebne/public_html/wp-settings.php(450): do_action()
#7 /home/idmwebne/public_html/wp-config.php(100): require_once('/home/idmwebne/...')
#8 /home/idmwebne/public_html/wp-load.php(50): require_once('/home/idmwebne/...')
#9 /home/idmwebne/public_html/wp-admin/admin.php(34): require_once('/home/idmwebne/...')
#10 /home/idmwebne/public_html/wp-admin/plugins.php(10): require_once('/home/idmwebne/...')
#11 {main}
thrown
]]>
Hi,
I use your plugin, only 2 days after it upload to www.remarpro.com.
Today, I just discovered a serious problem.
Problem: Can’t press update post, update produce, forum.
Description: Switch Classic Editor by install plugin classic editor. Above bug appear. I tried removing all other plugins, and it was caused by classic editor and Digino Seo conflic.
Please help me.
]]>How to redirect attachment page links to image file?
]]>How to change anchor text of post title on archives (post lists)?
]]>I am using Multisite and want to add rel nofollow to all external links on my websites? Is it possible with DiagnoSEO plugin?
]]>What code is needed to implement SEO breadcrumbs in the theme?
The goal is to render the HTML of breadcrumb links so that users can click on them.
Hello,
Could you list the main reasons why is it worth to switch the SEO plugin to DiagnoSEO?
]]>