error message on pages
-
All of a sudden I am receiving a message on all of my pages within the CMS:
argument #2 should be an array in /home/”MYSERVER”/public_html/wp-content/plugins/wordpress-seo/admin/class-primary-term-admin.php on line 206Please can you advise as to why this is showing?
Also I keep getting an the notification that the site can not be indexed by google?
I have made multiple checks with the robots.txt, the Yoast set up and settings as well as checking the indexability with google search console. The site is being indexed so I’m not sure why this message keeps popping up every now and again?
-
Could you please try to update to v7.7.1 of Yoast SEO and make sure you are using v4.9.6 of WP and see if this resolves the issue?
If you are getting the notification from Ryte that your homepage cannot be indexed, you can refer to this article (it might be a false positive) — https://kb.yoast.com/kb/your-site-isnt-indexable/
-
This reply was modified 6 years, 9 months ago by
Michael Ti?a.
Hi
Thanks for the reply
I have made the update and viewed the page you have supplied several times and followed the advise, still no joy?
I am now working on a staging environment and changing all data in the robots.txt file as well as deactivating all plugins to see if there is a conflict. I still can’t get the message to go away on every page and most importantly the indexed error message is showing constantly. To make it worse it seems my home page has now been removed from google?
Can you please advise as to why this is happening, When testing if googlebots are blocked from crawling my site on search console everything seems to be allowed. This is a big issue for me as it seem your plugin is causing issues and stoping my home page from being indexed.
Hi
I have now used RYTE to get the error for the failed indelibility on my home page. RYTE has shown that there is a Canonicalized issue with the home page. I have checked this in the YOAST settings for the home page and this blank (so set to the default url for that page) which is correct, the output is the correct url in the Canonical meta data so everything should be working.
All the settings seem to be correct but YOAST is causing the two issues I have mentioned.
I really like YOOAST for my SEO could you please advise I don’t really want top move to another SEO plugin.
@davidchapman1 For the warning that your site’s home page cannot be indexed, can you please provide the URL of the site so that we can check for any issues that might cause that. ?We ask that you please check your site in Google Mobile tester and use the Fetch the Current Status to see whether there are any indexing issue reported. This guide explains more: https://kb.yoast.com/kb/your-site-isnt-indexable/.
If the Google Mobile Tester is able to find the site but Fetch the Current Status does not resolve the issue, then the issue is with Ryte. We suggest either ignoring it or contacting Ryte for more information as to why they are unable to find the site. We use Ryte to provide a courtesy check, however sometimes they report false positives. If you wish to contact Ryte you can do so here: https://support.ryte.com/hc/en-us. Additionally, if you have concluded that the warning is a false positive and wish to disable the Ryte check we have instructions on how to do this here: https://kb.yoast.com/kb/disable-indexability-check/
Thanks for the reply the site is working with google mobile tester, so not sure whats going on?
I will try some more debugging with Ryte and see if I can come wit an answer. If not I will request more advise.Could you please advise on why I am getting the error on every page.
I have deactivated every plugin and the message only disappears when Yoast is deactivated, so Yoast is the issue after an update a month or so ago.
I have also changed themes and it would seem that there is some conflict with my child theme, but not sure why this would occur?
The message is: Warning : array_map(): Argument #2 should be an array in /home/”MYSERVER”/wp-content/plugins/wordpress-seo/admin/class-primary-term-admin.phpI can’t see why or where a conflict would come from for this message to appear in my theme?
Can you try and gather as much information for us as possible? Please perform the following:
1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
2. Check for conflicts.
3. Check for JavaScript errors with your console.If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.
If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.
OK I have fixed the issue regarding the error message there was some code in my functions.php that was not needed from left from another site.
The SEO issue where my site home page can not be indexed is a strange one. I have now identified the issue with RYTE. It has found that the home page is canonicalized. After some research I have found that if you have duplicate content on your site you can change the canonical url to source another page and stop confusion when your site is being crawled.
This is fine, as I don’t need this, so all canonical settings in YOAST are left to default so its sources its own page. The issue is that for some reason YOAST and RYTE are showing the home page to be not indexable because the canonical tag is pointing to another url. Strangely I’ve checked the canonical tag in the source code it is pointing to the home page, just as it is set in the YOAST settings for each page?
This is definitely a YOAST issue, why would my page not be indexable and flagged as directed to an new canonical url when the settings are correct?
Please note that everything was ok until a YOAST update about three weeks ago?
Could you please offer some assistance.
Sorry I forgot to mention that when testing I have deactivated all plugins and binned all pages except the home page, as well as changing themes.
None of this resolved the issue?
Hi @davidchapman1,
Please check if the homepage address (Site Address) in Settings → General is without a trailing slash, such as: https://mywebsite.com
If your homepage is set as above (without a trailing slash), and your permalink structure ends with a slash (in Settings → Permalinks), then it’s likely that there is a canonical tag on https://mywebsite.com (without a trailing slash) to https://mywebsite.com/ (with the trailing slash).
The scenario mentioned above could explain the warning why your homepage is not getting indexed (because https://mywebsite.com and https://mywebsite.com/ are considered different URLs), and only one the version with the trailing slash would get indexed.
Please check if this is the case and let us know.
OK the plot thickens.
That was good advise. I have checked this and the settings > general site (URL) does not have a trailing slash, but the permalink do as this is there default setting, so I thought I would add it! Of course when adding the trailing slash it doesn’t register and reverts back to the url without a trailing slash?
I then thought I would change this within the database table myself for wp_options. But here it already has the trailing slash, so this should as far as I understand be correct, even though WordPress is not showing the trailing slash within the CMS. I have also checked search console which has the trailing slash?
Just to note I have contact RYTE and they have said this is nothing to do with us. Which I understand as they are just running checks not actually implementing anything with regards to my SEO.
I have also decided to deactivate the connection in YOAST to RYTE and all of a sudden I’m back on page one of google?
Like I have said this was all running fine until an update a few weeks ago. I have also deleted all plugins and changed themes with no change. It definitely looks like a YOAST issue of sorts when connecting with RYTE but what I have no idea what!
A bug report is currently open for this issue in our development repository. You can find that here https://github.com/Yoast/wordpress-seo/issues/10315. If you have more information about this issue, please submit them directly on the opened issue so our development team can investigate this further.
-
This reply was modified 6 years, 9 months ago by
- The topic ‘error message on pages’ is closed to new replies.