Click to See Complete Forum and Search --> : Call to a member function on a non-object
Ethermind
January 31st, 2008, 02:04 PM
Fatal error: Call to a member function on a non-object in /usr/home/slonimci/domains/slonimcity.com/public_html/forum/sources/classes/class_display.php on line 110
hxxp://www.slonimcity.com/forum/index.php?act=rep&type=rating
Files attached...
Help......
PeejAvery
January 31st, 2008, 03:50 PM
[ split ]
PeejAvery
January 31st, 2008, 03:52 PM
Welcome to the forums, Ethermind. Please remember to create a new thread whey you have a problem, and not post over someone else's. Thanks.
Concerning your problem...take a look at line 110 of the class_display.php file. You are attempting to call an object function on a variable that is not an object. Double check your variables in that line. Make sure they have been created and that they are objects.
Ethermind
January 31st, 2008, 04:09 PM
Line 110
$nav = $this->ipsclass->compiled_templates['skin_global']->start_nav();
Always works (or never used before?). Because it's a standart file of Invision Power Board 2.3.1/
But i think that problem in file reputation.php (XT reputation system mod)
There are functions minus, plus - works
But functions history and rate cause error...
PeejAvery
January 31st, 2008, 05:24 PM
Either way, that is a lot of code to go through to figure out the problem. Your best solution would be to contact the original author.
Ethermind
February 1st, 2008, 11:11 AM
Author say's thar all must work...
PeejAvery
February 1st, 2008, 11:27 AM
So what happens if you uninstall the system mod?
Ethermind
February 1st, 2008, 12:16 PM
All work with mod or without.
Doesn't work mod's link
hxxp://www.slonimcity.com/forum/index.php?act=rep&type=rating
in case then ['skin_global'] present in line
i deleted this line, but error appears on next line with ['skin_global']
$nav = $this->ipsclass->compiled_templates['skin_global']->start_nav();
PeejAvery
February 1st, 2008, 12:42 PM
What? :confused: It works with the mod and without? Then what is the problem?
Don't delete the line. It is obviously there for a purpose. The problem is that one of the variables in the line is either not an object or not been created yet.
Ethermind
February 1st, 2008, 02:19 PM
I'm not php programmer : )
So tell me please where in this line are variables (that ca be not an object or not been created yet)?
$nav = $this->ipsclass->compiled_templates['skin_global']->start_nav();
PeejAvery
February 1st, 2008, 04:32 PM
I already told you, that is way to much code for me to waste my time. The original author is going to have to help you with that. And you will have to convince him/her that it isn't working.
Ethermind
February 2nd, 2008, 12:57 PM
One line - is too much?...
Heh...
PeejAvery
February 2nd, 2008, 02:03 PM
You definitely don't understand programming, do you? That one line is full of variables that have been declared somewhere else within the page or other pages. It isn't one line, it could be thousands. And, since we don't have the whole working environment such as you do, nor are we going to spend our time setting all that up, it would be near to impossible to pinpoint the full issue.
Now are you getting the larger picture? Hence why I have advised you to work with the original author.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.