1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Php code error

Discussion in 'PHP' started by xyphlo, Nov 17, 2010.

  1. #1
    I'm getting this on top of my site:

    A PHP Error was encountered
    Severity: Notice

    Message: Trying to get property of non-object

    Filename: models/frontend_model.php

    Line Number: 38

    and I also have one for line 39.

    What's a good way to find the line and fix it?
     
    xyphlo, Nov 17, 2010 IP
  2. jdjaded

    jdjaded Peon

    Messages:
    123
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    first, you should probably use a text editor that numbers the lines....I prefer notepad++, but there are a few others you could use.

    it sounds like you tried to use a function on something that you didn't properly declare - it could be as simple as just forgetting a $ sign in front of the variable name, then php wouldn't know it's an object.
     
    jdjaded, Nov 17, 2010 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    post the exact line of the file frontend_model.php
     
    bartolay13, Nov 17, 2010 IP