xoops forums

CpnKurk

Just popping in
Posted on: 2005/10/4 14:57
CpnKurk
CpnKurk (Show more)
Just popping in
Posts: 1
Since: 2005/10/4
#1

Fatal error: Call to a member function getVar() on a non-object

I tried a couple of things but nothing successful.

I finish the XOOPS instalation and after the page confirming the Modules instalation i was sent to a blank page whit this error on it :

Fatal error: Call to a member function getVar() on a non-object in /home/nvi/public_html/xoops/html/class/theme.php on line 493

Pouakai

Just popping in
Posted on: 2005/11/7 14:38
Pouakai
Pouakai (Show more)
Just popping in
Posts: 2
Since: 2005/11/7
#2

Re: Fatal error: Call to a member function getVar() on a non-object

I have the same thing on TWO servers now, installation reported that it was successful, but the first GET of the index page produces:

Fatal error: Call to a member function on a non-object in /var/www/mydomain.com/htdocs/xoops/class/theme.php on line 493
Notice [PHP]: Only variables should be assigned by reference in file include/common.php line 223
Notice [PHP]: Only variables should be assigned by reference in file kernel/object.php line 819

Software versions are:
PHP 4.4.0
MYSQL 4.1.14
APACHE 2.0.54
XOOPS 2.2.3


I would be glad of some advice at this point...

thnx

m0nty

XOOPS is my life!
Posted on: 2005/11/7 15:16
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#3

Re: Fatal error: Call to a member function getVar() on a non-object

might get a better response if you posted in the right forums..

this forum is clearly labelled "Fixed Bugs / FAQ (Read-Only)"
Posted on: 2005/11/7 15:19
bluenova
bluenova (Show more)
Posts: 1022
Since: 2004/4/10
#4

Re: Fatal error: Call to a member function getVar() on a non-object

Moved to 'Installation Troubleshooting'

m0nty

XOOPS is my life!
Posted on: 2005/11/7 15:28
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#5

Re: Fatal error: Call to a member function getVar() on a non-object

the php notices, you can ignore as you are using php 4.4 (this question is posted many times on the forum if you search)

Quote:

Notice [PHP]: Only variables should be assigned by reference in file include/common.php line 223
Notice [PHP]: Only variables should be assigned by reference in file kernel/object.php line 819


the fatal error isn't what i've come across before..

what XOOPS version are you using?? as line 493 in my theme.php is blank.

but from looking at it i'd say there's some kind of permission problem with your folders..

make sure the cache folder & templates_c & uploads folder are all chmod 777

Pouakai

Just popping in
Posted on: 2005/11/15 9:53
Pouakai
Pouakai (Show more)
Just popping in
Posts: 2
Since: 2005/11/7
#6

[SOLVED (for me at leat)]Re: Fatal error: Call to a member function getVar() on a non-object

Well an installation hicup seems to be at the root of my troubles.

Initialy when I created the MySQL account I forgot to grant 'CREATE' & 'ALTER' privileges, this was pointed out to me by the installer and I corrected the privileges and was able to continue and the installer reported success, however I guess something did not get created.

in 2.2.3a-Final the crashing line line is class/themes.php:499
return 'mod_'.$GLOBALS['xoopsModule']->getVar('dirname')......

So I rm'd mainfile and re-ran the installer and now she's good to go!

cheers all,
P

DMarvelus

Just popping in
Posted on: 2006/1/17 21:33
DMarvelus
DMarvelus (Show more)
Just popping in
Posts: 70
Since: 2005/1/29
#7

Re: [SOLVED (for me at leat)]Re: Fatal error: Call to a member function getVar() on a non-object

as i wrote in the other thread:

in case any one else has this problem, when you get that message, it means that the correct module hasn't been installed yet.

Since extended profiles are necessary (apparently), the usermanagement module must be installed. I tried to install it later, and still got some problems, I don't think my profile was created correctly. So. Reinstall XOOPS with usermanagement module.

It tries to go to the profile module when it shows a profile, if that module hasn't been installed, you get that error.

Maybe the XOOPS developers should make you install it when you install Xoops... Kind of like the system module. Because if it's not installed, apparently it causes problems.

minhaj

Just popping in
Posted on: 7/2 15:16
minhaj
minhaj (Show more)
Just popping in
Posts: 1
Since: 7/2 6:05
#8

Error: Call to a member function getVar() on boolean

hey I am change my hosing server and upgratef php7 then not working a module and functions showing his error
Error: Call to a member function getVar() on boolean

zyspec

Module Developer
Posted on: 7/2 17:34
zyspec
zyspec (Show more)
Module Developer
Posts: 1085
Since: 2004/9/21
#9

Re: Error: Call to a member function getVar() on boolean

We need a little more information to help you.
  • XOOPS version

  • PHP version

  • List of Active Modules (and their version)

  • Exact error message