Announcement

Collapse
No announcement yet.

Warning: Invalid argument supplied for foreach

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

  • saiff
    replied
    thank you Necrophyte
    disappeared the error

    you also have this problem?

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

    Leave a comment:


  • Necrophyte
    replied
    Correct!

    Leave a comment:


  • saiff
    replied
    thank you

    is correct ?

    Click image for larger version

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

    {

    Leave a comment:


  • Necrophyte
    replied
    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(); }

    Leave a comment:


  • saiff
    replied
    Originally posted by Necrophyte View Post
    For 5.2.5 yes. Sorry, I should have been more specific.
    yes, For 5.2.5

    Leave a comment:


  • Necrophyte
    replied
    For 5.2.5 yes. Sorry, I should have been more specific.

    Leave a comment:


  • saiff
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • Mark.B
    replied
    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.

    Leave a comment:


  • Glen Combe
    replied
    bump... same issue.


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

    Leave a comment:


  • saiff
    replied
    hello
    same problem

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

    Leave a comment:


  • saiff
    replied
    thank you
    I try and let you know

    Leave a comment:


  • Wayne Luke
    replied
    Make a backup of this table via PHPMyAdmin's export function. Export as SQL.

    Then delete the rows with the IDs of 28 and 31. Does the problem still happen?

    Leave a comment:


  • Mark.B
    replied
    You'll need to hang fire with this, it's not a simple "press this button" fix, and most of the support staff are not on duty at weekends.

    Leave a comment:


  • saiff
    replied
    help please

    Leave a comment:

Related Topics

Collapse

Working...
X