Announcement

Collapse
No announcement yet.

Warning: Invalid argument supplied for foreach

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    bump... same issue.


    Warning: Invalid argument supplied for foreach() in .../vb/library/node.php on line 2488

    Comment


    • #17
      Originally posted by Glen Combe View Post
      bump... same issue.


      Warning: Invalid argument supplied for foreach() in .../vb/library/node.php on line 2488
      Please start your own thread with full details of the problem.

      We will need the questions from HERE answering please.
      MARK.B | vBULLETIN SUPPORT

      TalkNewsUK - My vBulletin 5.5.2 Demo
      AdminAmmo - My Cloud Demo

      Comment


      • #18
        A quick fix for this. Open the /core/vb/library/node.php
        Look for
        Code:
        $pendingPosts = vB::getDbAssertor()->assertQuery('vBForum:fetchPendingPosts', $params);
        on line 2485
        Below it but before ($pending = array() add:
        Code:
                    if(empty($pendingPosts))
                    {
                        $pendingPosts = array();
                    }
        This will fix the issue till they can get it sorted.

        Comment


        • #19
          Originally posted by Necrophyte View Post
          A quick fix for this. Open the /core/vb/library/node.php
          Look for
          Code:
          $pendingPosts = vB::getDbAssertor()->assertQuery('vBForum:fetchPendingPosts', $params);
          on line 2485
          Below it but before ($pending = array() add:
          Code:
          if(empty($pendingPosts))
          {
          $pendingPosts = array();
          }
          This will fix the issue till they can get it sorted.
          thank you
          also valid for error 2488?
          Warning: Invalid argument supplied for foreach() in .../vb/library/node.php on line 2488
          https://www.vbulletin.com/forum/foru...re-waiting-for

          Comment


          • #20
            For 5.2.5 yes. Sorry, I should have been more specific.

            Comment


            • #21
              Originally posted by Necrophyte View Post
              For 5.2.5 yes. Sorry, I should have been more specific.
              yes, For 5.2.5
              https://www.vbulletin.com/forum/foru...re-waiting-for

              Comment


              • #22
                Yeah, I'm using 5.25 so if you go to line 2488 in node.php you should see
                Code:
                foreach ($pendingPosts AS $post)
                Right above that put:
                Code:
                 
                 if(empty($pendingPosts)) { $pendingPosts = array(); }

                Comment


                • #23
                  thank you

                  is correct ?

                  Click image for larger version

Name:	cde.jpg
Views:	5
Size:	155.8 KB
ID:	4361232

                  {
                  https://www.vbulletin.com/forum/foru...re-waiting-for

                  Comment


                  • #24
                    Correct!

                    Comment


                    • #25
                      thank you Necrophyte
                      disappeared the error

                      you also have this problem?

                      https://www.vbulletin.com/forum/foru...ng-any-content
                      https://www.vbulletin.com/forum/foru...re-waiting-for

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X