SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is this error?

    PHP Code:
    Fatal errorCall to a member function on a non-object 
    What does this mean?

  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It means you have something like:
    $obj->bar();
    where $obj isn't an object. Probably missing something like:
    $obj = new foo();

  3. #3
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm, still can't narrow down the error. Here is the full line. If I could get some ideas on how I could track down what's going wrong here, I might be able to solve the problem.

    Code:
    $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, 
    $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, 
    $post_message);

  4. #4
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is $GLOBALS['cm_posting'] an object?
    What does var_dump($GLOBALS['cm_posting']); show?

  5. #5
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nm. I narrowed it down right after I made this post.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •