Results 1 to 7 of 7

Invalid argument supplied

This is a discussion on Invalid argument supplied within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; Invalid argument supplied for foreach() in includes/functions_vbseo.php on line 1062 I'm getting this in an error log. Any advice please?...

  1. #1
    Member Array
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times

    Question Invalid argument supplied

    Invalid argument supplied for foreach() in includes/functions_vbseo.php on line 1062

    I'm getting this in an error log. Any advice please?

  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Please try to modify functions_vbseo.php file:
    FIND:
    PHP Code:
    foreach($catarr as $cid=>$carr
    ADD ABOVE:
    PHP Code:
    if(is_array($catarr)) 
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member Array
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times
    Oleg, I have 2 entries - do I add it above both or just one?

    Code:
    if(is_array($catarr))
    foreach($catarr as $cid=>$carr)
    {
    $g_cache['blogcat'][$cid] = $carr;
    }
    if(is_array($categories))
    foreach($categories as $bid=>$catarr)
    foreach($catarr as $cid=>$carr)
    if($carr['blogcategoryid'])

  4. #4
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    In the second case only.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member Array
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times
    thanks I will let you know how I get on.

  6. #6
    Member Array
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times
    Just an update to let you know that everything is fine now following the modification above - thanks

  7. #7
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Great!
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. PHP Warning: Invalid Argument
    By doozy in forum Troubleshooting
    Replies: 2
    Last Post: 12-13-2007, 08:16 PM
  2. Invalid argument warning
    By Your Brand in forum Troubleshooting
    Replies: 2
    Last Post: 04-04-2007, 12:20 PM
  3. Replies: 4
    Last Post: 01-15-2006, 03:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •