Results 1 to 5 of 5

vB 4 Gold + vBSEO 3.5 B2: foreach() warning

This is a discussion on vB 4 Gold + vBSEO 3.5 B2: foreach() warning within the Bug Reporting forums, part of the vBSEO SEO Plugin category; A stock installation of both vBSEO and vB4 - no changes (apart from memcache set as cache) in vBSEO 3.5. ...

  1. #1
    Junior Member
    Real Name
    Shamil Nunhuck
    Join Date
    Jul 2008
    Posts
    5
    Liked
    0 times

    vB 4 Gold + vBSEO 3.5 B2: foreach() warning

    A stock installation of both vBSEO and vB4 - no changes (apart from memcache set as cache) in vBSEO 3.5.

    Error on forum homepage + other pages:

    Warning: Invalid argument supplied for foreach() in /home/*****/public_html/forums/vbseo.php on line 646

    Forums <-- must be index.php!

    Line 646:
    PHP Code:
    foreach($GLOBALS['vbseo_custom_rules'] as $k => $v
    I have no custom rules!

    H

    Error on User Profile Page:

    Warning: Invalid argument supplied for foreach() in /home/*****/public_html/forums/vbseo/includes/functions_vbseo_crr.php on line 67

    http://forums.hostcule.com/members/r...ms-shamil.html

    Line 67:

    PHP Code:
    foreach($GLOBALS['vbseo_custom_rules'] as $k => $v
    Again, no custom rules!

    However, if I remove the default content that's in the box, the error goes!; Removing that line with no text on, after showgroups -> forumleaders.html fixes this.

    //================================================== ========================
    // Sample Custom Rewrite Rule: showgroup.php as forumleaders.html (Remove the \'//\' in front of the rule to enable).
    //================================================== ========================
    //\'^showgroups\\.php$\' => \'forumleaders.html\'

    //================================================== ========================
    // Sample Custom Rewrite Rules: calendar as static pages (Remove the \'//\' in front of the rules to enable).
    // Note: Enable the calendar dropdown redirect rule within the Custom 301 Redirects section below.
    //================================================== ========================
    //\'calendar\\.php$\' => \'calendar/\'
    //\'^calendar\\.php\\?c=1$\' => \'calendar/\'
    //\'^calendar\\.php\\?(c=1&)?do=(display.+?)(&year=) ?$\' => \'calendar/$2/[NF]\'
    //\'calendar\\.php\\?(c=1&)?nojs=1\' => \'calendar/nojs/[NF]\'
    //\'calendar\\.php\\?(c=1&)?do=(display.+?)&nojs=1\' => \'calendar/$2/nojs/[NF]\'
    //\'calendar\\.php\\?(c=1&)?week=(\\d+)&nojs=1\' => \'calendar/week-$2/nojs/[NF]\'
    //\'calendar\\.php\\?(c=1&)?month=(\\d+)&year=(\\d+)&nojs=1\' => \'calendar/$3/$2/nojs/[NF]\'
    //\'^calendar\\.php\\?do=getinfo&(c=1&)?day=(\\d+)-(\\d+)-(\\d+)(&c=1)?$\' => \'calendar/$2/$3/$4/\'
    //\'^calendar\\.php\\?do=getinfo&e=(\\d+)(&day=[0-9\\-]+)?(&c=1)?$\' => \'calendar/event-$1/\'
    //\'^calendar\\.php\\?(s=&)?(c=1&)?(week=&)?month=(\\d+)&year=(\\d+)(&c=1)?(&do=displaymonth)?$\' => \'calendar/$5/$4/\'
    //\'^calendar\\.php\\?c=1&week=(\\d+)(&do=displayweek&month=.+?)?$\' => \'calendar/week-$1/\'

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Thank you for reporting.

    Keep in mind, beta2 was built on top of vb RC2. They have likely changed a few things in the latest release. Our dev team is working to make RC as much compatible with vb4 gold as possible at this time.

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Try Rc1, just released:
    vBSEO 3.5 Release Candidate 1 is here!

  4. #4
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    If you are still encountering issues after upgrading to RC1, please try clearing your CRR and Custom Redirect fields and re-save.

  5. #5
    Senior Member
    Real Name
    Shamil
    Join Date
    Feb 2008
    Location
    In my box :)
    Posts
    152
    Liked
    5 times
    Blog Entries
    1
    No that's fine

    The issue seems to have resolved

Similar Threads

  1. Warning After Installing VBSEO INCLUDES/Functions
    By MarketTimes in forum Troubleshooting
    Replies: 19
    Last Post: 03-11-2009, 07:28 PM
  2. Replies: 2
    Last Post: 09-15-2008, 07:53 AM
  3. install the vbseo sitemap - warning
    By binkuang in forum General Discussion
    Replies: 3
    Last Post: 07-07-2008, 11:49 PM
  4. vBSEO 3.2.0 Release Candidate 8 - Final RC, vBSEO 3.2.0 Gold Next Week
    By Juan Muriente in forum vBSEO Announcements
    Replies: 121
    Last Post: 07-04-2008, 05:29 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
  •