anyone running planet-php?

Discussion in 'PHP' started by solutionsphp, Nov 7, 2006.

  1. #1
    I've almost got an installation of planet-php working--so close! However, when I run the aggregate.php script, I get the following error every time:

    Line 109 is the else if line in the following code block:

    // insert it in the db
                        $item = $this->truncateEntries($item);
                        $this->insertEntry($item, $row['id'], array("newBlog"=>$newBlog));
                    } else if ($item['md5'] != $feedInDB['md5']) {
                        $item = $this->truncateEntries($item);
                        $this->updateEntry($item,$feedInDB['id']);
                    }
    PHP:
    SQL version is 5.0.18-standard-log.

    Should the VALUE of the blog ID should be '6' and not 'Object id #6'?

    The developers don't officially offer support. Any advice anyone can pass on to help me get past this error? All comments appreciated. Thanks in advance!
     
    solutionsphp, Nov 7, 2006 IP
  2. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well the problem isn't on line 109. I think it is a couple of lines before that . . .

    $item = $this->truncateEntries($item);
    PHP:
    It is difficult to say from such a small snippet of code but I think that is where the problem is.

    You do need to get that object id down to an integer.
     
    streety, Nov 8, 2006 IP
  3. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Yes, that's the problem.
     
    SoKickIt, Nov 8, 2006 IP