Error on functions.php line 2455

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VirtueTech
    Senior Member
    • Jun 2000
    • 561

    Error on functions.php line 2455

    PHP Warning: Variable passed to each() is not an array or object in /secret/path/functions.php on line 2455

    HEre is the code:
    PHP Code:
    // ###################### Start doshutdown #######################
    $shutdownqueries=array();
    function 
    doshutdown() {
      global 
    $shutdownqueries,$DB_site;

      if (
    is_array($shutdownqueries)) {
        while (list(
    $devnul,$query)=each($shutdownqueries)) {
          
    $DB_site->query($query);
        }
      } 
    Line 2455 is
    while (list($devnul,$query)=each($shutdownqueries)) {

    I'm using PHP accelerator and PHP 4.2.3

    Any ideas?
    PaintballCity.com
    VB Board of the Month: October
  • VirtueTech
    Senior Member
    • Jun 2000
    • 561

    #2
    bump
    PaintballCity.com
    VB Board of the Month: October

    Comment

    • filburt1
      Senior Member
      • Feb 2002
      • 6606

      #3
      A hack or badly uploaded file must be to blame since I haven't seen any PHP warnings since I installed 2.2.7.
      --filburt1, vBulletin.org/vBulletinTemplates.com moderator
      Web Design Forums.net: vB Board of the Month
      vBulletin Mail System (vBMS): webmail for your forum users

      Comment

      • VirtueTech
        Senior Member
        • Jun 2000
        • 561

        #4
        The odd thing is I had this error...only without the line number...when I used Zend Accelerator over a year ago.

        Ok thanks for replying.
        PaintballCity.com
        VB Board of the Month: October

        Comment

        Related Topics

        Collapse

        Working...