Hi
On Google Search Description I get this instant of my normal description: Warning: Invalid argument supplied for foreach()
Why this is happent? And how can I fix it?
Thank you.
Hi
On Google Search Description I get this instant of my normal description: Warning: Invalid argument supplied for foreach()
Why this is happent? And how can I fix it?
Thank you.
Anyone can help?
Maybe Google indexed your page when that error is present on your site.. Wait until Google updates your content.
I see my Check Error Logs and the problem is still here public_html/nighthawkjourneys/nightlife-blog/wp-content/themes/varg/header.php on line 8
And here is what i have on line 8
foreach ($metatags as $tagpost) {
change that line to
@froeach($metatags as $tagpost){
or a better way is
if( is_array($metatags) ){
foreach($metatags as $tagpost){
/*The rest of the code here*/
}
}I dont make this yet, but I deactivate a plugin and now I dont have error on my Check Error Logs. But unfortunately on search results im still get on descriptions: Warning: Invalid argument supplied for foreach() in ... public_html/nighthawkjourneys/nightlife-blog/wp-content/themes/varg/header.php on line 8,
even if google bots for exable Cached page today,
why is that still happens ?
I add this code @froeach($metatags as $tagpost){
but I get SQL error!
you can see the problem live if you add this keywords (macau nightlife)
This topic has been closed to new replies.