• 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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Night Hawk

    (@mlao)

    Anyone can help?

    Maybe Google indexed your page when that error is present on your site.. Wait until Google updates your content.

    Thread Starter Night Hawk

    (@mlao)

    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*/
      }
    }

    Thread Starter Night Hawk

    (@mlao)

    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 ?

    Thread Starter Night Hawk

    (@mlao)

    I add this code @froeach($metatags as $tagpost){
    but I get SQL error!

    Thread Starter Night Hawk

    (@mlao)

    you can see the problem live if you add this keywords (macau nightlife)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Search Description Problem, Please Help’ is closed to new replies.