1
CpnKurk
Fatal error: Call to a member function getVar() on a non-object
  • 2005/10/4 14:57

  • CpnKurk

  • Just popping in

  • Posts: 1

  • Since: 2005/10/4


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

2
Pouakai
Re: Fatal error: Call to a member function getVar() on a non-object
  • 2005/11/7 14:38

  • Pouakai

  • Just popping in

  • Posts: 2

  • Since: 2005/11/7


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

3
m0nty
Re: Fatal error: Call to a member function getVar() on a non-object
  • 2005/11/7 15:16

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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

this forum is clearly labelled "Fixed Bugs / FAQ (Read-Only)"

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

Moved to 'Installation Troubleshooting'

5
m0nty
Re: Fatal error: Call to a member function getVar() on a non-object
  • 2005/11/7 15:28

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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

6
Pouakai
[SOLVED (for me at leat)]Re: Fatal error: Call to a member function getVar() on a non-object
  • 2005/11/15 9:53

  • Pouakai

  • Just popping in

  • Posts: 2

  • Since: 2005/11/7


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

7
DMarvelus
Re: [SOLVED (for me at leat)]Re: Fatal error: Call to a member function getVar() on a non-object
  • 2006/1/17 21:33

  • DMarvelus

  • Just popping in

  • Posts: 70

  • Since: 2005/1/29


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.

8
minhaj
Error: Call to a member function getVar() on boolean
  • 2021/7/2 15:16

  • minhaj

  • Just popping in

  • Posts: 1

  • Since: 2021/7/2 6


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

9
zyspec
Re: Error: Call to a member function getVar() on boolean
  • 2021/7/2 17:34

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


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

  • PHP version

  • List of Active Modules (and their version)

  • Exact error message

  • Login

    Who's Online

    363 user(s) are online (259 user(s) are browsing Support Forums)


    Members: 0


    Guests: 363


    more...

    Donat-O-Meter

    Stats
    Goal: $100.00
    Due Date: Nov 30
    Gross Amount: $0.00
    Net Balance: $0.00
    Left to go: $100.00
    Make donations with PayPal!

    Latest GitHub Commits