1
MichaelW
Fatal error: Call to a member function on a non-object
  • 2006/1/18 14:37

  • MichaelW

  • Just popping in

  • Posts: 4

  • Since: 2006/1/18


Just tried to install 223a (new install) on a server running PHP 4.1.2. and MySql 3.23.58. I get to the screen where I'm asked to provide an admin name/password etc, which I complete, then press 'Next'. I then just get a blank screen. If I try to enter manually (i.e. type in the www.mysite/index.php stuff into my browser [Avant]) I get the following:
Fatal errorCall to a member function on a non-object in /home/httpd/vhosts/oldcantabrigiansociety.org.uk/httpdocs/Xoops223a/html/class/theme.php on line 499
Notice 
[PHP]: Undefined indexenable_badips in file class/xoopssecurity.php line 215
Notice 
[PHP]: Undefined indexlanguage in file include/common.php line 152
Notice 
[PHP]: Undefined indexlanguage in file include/common.php line 160
Notice 
[PHP]: Undefined indexlanguage in file include/common.php line 172
Notice 
[PHP]: Undefined indexuse_ssl in file include/common.php line 183
Notice 
[PHP]: Undefined indexuse_mysession in file include/common.php line 185
Notice 
[PHP]: Undefined indexbanners in file include/common.php line 235
Notice 
[PHP]: Undefined indexdebug_mode in file include/common.php line 235
Warning 
[PHP]: Wrong datatype for second argument in call to in_array in file include/common.php line 235
Notice 
[PHP]: Undefined indextheme_fromfile in file class/template.php line 66
Notice 
[PHP]: Undefined indexsitename in file class/theme.php line 417
Notice 
[PHP]: Undefined indexslogan in file class/theme.php line 418
Notice 
[PHP]: Undefined indexslogan in file class/theme.php line 436
Notice 
[PHP]: Undefined indextheme_set_admin in file class/theme.php line 477
Notice 
[PHP]: Undefined indextheme_set_admin in file class/theme.php line 482
Notice 
[PHP]: Undefined indexclosesite in file include/common.php line 238
Notice 
[PHP]: Undefined indexuse_mysession in file include/functions.php line 411
Notice 
[PHP]: Undefined indexlanguage in file class/theme.php line 263

Line 499 of theme.php says
return 'mod_'.$GLOBALS['xoopsModule']->getVar('dirname').'|'.md5(str_replace(XOOPS_URL''$protocol."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].$cachegroup));


I've read elsewhere that this may be to do with not having the usermanagement module installed; however, I don't know what this module is actually called and where I can get it, neither do I know how I can install it if I can't get XOOPS to open up! Permissions on all my folders are 777, so I don't think that's the problem. I looked in the SQL database and my admin name and password etc have not been recorded. Be very grateful if anyone has any ideas as to what I should try next!

2
phenom31
Re: Fatal error: Call to a member function on a non-object
  • 2006/1/20 10:33

  • phenom31

  • Just popping in

  • Posts: 3

  • Since: 2006/1/14


I have it as well, glad I found this post. I tried reinstalling the class theme.php file over the top but it did not help.

Not sure why this is happening but I was wondering why I had no users.

Fatal error: Call to a member function on a non-object in /home/sinfulba/public_html/class/theme.php on line 499

Thats mine.

Lets hope someone has something for us.

Kev

3
Bender
Re: Fatal error: Call to a member function on a non-object
  • 2006/1/20 10:45

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


The module comes with 2.2.3 so if you go into Adminitration - Modules you will see it as one of two in the list.

From memory i think it´s "Extended Profiles"
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

4
MichaelW
Re: Fatal error: Call to a member function on a non-object
  • 2006/1/20 11:16

  • MichaelW

  • Just popping in

  • Posts: 4

  • Since: 2006/1/18


For the benefit of anyone else struggling with this, it appears to be a PHP version problem. See here:https://xoops.org/modules/newbb/viewtopic.php?topic_id=46009&forum=1

Although the documentation says 2.2.3 will work with PHP 4.1.X and above, it does not work on my PHP 4.1.2. system. Version 2.0.1.3. works just fine, however.

5
jimtanis
Re: Fatal error: Call to a member function on a non-object
  • 2006/2/20 5:32

  • jimtanis

  • Just popping in

  • Posts: 1

  • Since: 2006/2/19


Quote:

MichaelW wrote:

I've read elsewhere that this may be to do with not having the usermanagement module installed; however, I don't know what this module is actually called and where I can get it, neither do I know how I can install it if I can't get XOOPS to open up! Permissions on all my folders are 777, so I don't think that's the problem. I looked in the SQL database and my admin name and password etc have not been recorded. Be very grateful if anyone has any ideas as to what I should try next!


I got the class/theme.php on line 499 error as well. I had not installed the extended profiles. It does come with the 2.23a download. To get to it after I logged in and got the error I typed in the urlhttp://yoursite.com/yourdirifneeded/xoops/html/admin.php
That allowed me to the go to module admin and install. After that everything seems to be ok.

Jim

6
m0nty
Re: Fatal error: Call to a member function on a non-object
  • 2006/2/20 5:45

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it should work with php 4.1.2

but to be honest if your host is still running an older version of php before 4.3.11 then i would really consider changing your host if they are not willing to keep their servers up to date.. it's a security risk which they should be well aware of..

7
rduarte
Re: Fatal error: Call to a member function on a non-object
  • 2007/1/26 16:12

  • rduarte

  • Just popping in

  • Posts: 11

  • Since: 2006/1/9 1


ANy news? i changed my host provider and i have that problem..help please

http://hosting15.webhs.org/~rduarte/

the old:

www.contraditorio.com

Thanks in advance

Login

Who's Online

176 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits