Fatal error: Non-static method Glob::Glob() cannot be called

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby benni on Thu Jan 08, 2009 12:02 pm

If there aren't any plugins installed by default there is no new plugin. There was one directory in /plugins/ : badbehavior
within the last few days I've uploaded some other direktories (plugins from the official homepage of lifetype):
    crystalpoll
    galleryimages
    iconize
    linkcounter
    shoutbox
    smileys
    technoratitagcloud
    technorati

But I didn't install any of them (because it didn't work!)
What shall I do now?

Regards
benni
 
Posts: 12
Joined: Sun Jan 04, 2009 3:14 pm
LifeType Version: 1.2.8

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby benni on Thu Jan 08, 2009 6:16 pm

Heeeyyyyyyyyyyy, it works!!
Thanks a lot for your help!

I deleted nearly all directories in the plugin folder and installed the plugins one-by-one. So I recognized that the error is because of one plugin that cannot be installed. But that's not important, I don't want to use it anymore :D

Bye Ben
benni
 
Posts: 12
Joined: Sun Jan 04, 2009 3:14 pm
LifeType Version: 1.2.8

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby jondaley on Thu Jan 08, 2009 9:44 pm

which plugin was it?
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby glenn on Thu Apr 02, 2009 11:33 pm

Thanks, this is what worked for me,

by jondaley
You can try [replacing] this:
$pluginFiles = Glob::glob( $this->_pluginDir, "*" );

with:
$glob = new Glob();
$pluginFiles = $glob->Glob($this->_pluginDir, "*");


Using lifetype 1.2.8 and tried php4 and 5 before making the change.
glenn
 
Posts: 1
Joined: Thu Apr 02, 2009 11:26 pm
LifeType Version: not yet

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby jondaley on Sat Dec 05, 2009 12:56 pm

Can you simply turn off E_STRICT errors? I went to fix this today, and I thought it was going to be really hard, and so I upgraded php5 to 5.2.11 and I don't see any errors. I only see errors if I turn on E_STRICT, which isn't the default, and I've never seen it the default. Did you explicitly turn it on?
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby buster on Mon Dec 28, 2009 8:48 am

Just to let you know. I encountered the same fatal error. But used the fix from jondaley and it seems working ok now.
buster
 
Posts: 7
Joined: Sun Oct 25, 2009 4:03 am
LifeType Version: 1.2.9

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby buster on Tue Dec 29, 2009 4:15 pm

jondaley wrote:Can you simply turn off E_STRICT errors? I went to fix this today, and I thought it was going to be really hard, and so I upgraded php5 to 5.2.11 and I don't see any errors. I only see errors if I turn on E_STRICT, which isn't the default, and I've never seen it the default. Did you explicitly turn it on?


I have tested this. I expicitly disabled E_STRICT errors in php.ini and rebooted my vps, but still got the fatal error.
buster
 
Posts: 7
Joined: Sun Oct 25, 2009 4:03 am
LifeType Version: 1.2.9

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby jondaley on Wed Dec 30, 2009 11:13 am

buster: what version of php are you running?
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby buster on Wed Dec 30, 2009 12:15 pm

PHP Version 5.2.12

The following plugins are also affected: smileys and authimage
buster
 
Posts: 7
Joined: Sun Oct 25, 2009 4:03 am
LifeType Version: 1.2.9

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby jondaley on Wed Dec 30, 2009 6:03 pm

Hrm, I wonder what is different with your (and other people's) installation and what I have on my servers. The error message makes sense, but I wonder why it is a "fatal error" for you, and only a warning for me.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby koji on Fri Jan 15, 2010 3:10 am

We're having the same problem after upgrading to PHP-5.5.12.
At this moment we've applied the jondaley's workaround and seems to work right.
We don't have E_STRICT in php.ini....
koji
 
Posts: 130
Joined: Wed Jul 06, 2005 10:20 am
Location: Tarragona - Catalonia

Re: Fatal error: Non-static method Glob::Glob() cannot be called

Postby jondaley on Mon Jan 18, 2010 11:42 am

I'll need to test my installation more to figure out why my workaround isn't needed for me. But, anyway, I've added the workaround to 1.2.10.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Previous

Return to Configuration and Installation

cron