PDA

View Full Version : Fatal error: Call to a member function on a non-object


fismo
01-29-2006, 05:00 AM
Hi,

Just purchased and installed this product, but getting an error when opening any thread. This is before i have even added any replacement options.

Fatal error: Call to a member function on a non-object in /home/domain.com/public_html/vb/includes/class_postbit.php(279) : eval()'d code on line 2

This points to

// execute hook
($hook =& vBulletinHook::fetch_hook('postbit_display_complet e')) ? eval($hook) : false;

The hook looks fine to me, am i missing something?

I'm using 3.5.3. I tried to log a support ticket but was told i was not authorised.

Lizard King
01-29-2006, 06:16 AM
What happens when you disable the product ? Try importing the script again with overwriting option on.

Also can you give your server specs (mysql and php versions)

The Geek
01-29-2006, 08:49 PM
Also, are you using the DB cache?

fismo
01-29-2006, 09:36 PM
when i disable the product everything works fine.

Importing the script with overwriting option turned on did not make a difference, same error.

I'm not using the db cache

Web Server Apache v2.0.47
MySQL Version 3.23.58
PHP 4.3.8

Its an old version of mysql but i'm unable to update at this time, i doubt thats the problem here though.

This webserver is running on a dedicated server.

Any ideas?

JulianD
01-30-2006, 12:07 AM
Try to change the plugin GARS - Process Postbit from


global $vbulletin;

if($vbulletin->gars)
{
$this->templatename=$vbulletin->gars->process_postbit();
}


to


if($this->registry->gars)
{
$this->templatename=$this->registry->gars->process_postbit();
}

fismo
01-30-2006, 01:38 AM
thanks very much for the reply.

My Process Postbit plugin had different text to what you described above, which is a little strange!

I had

global $vbulletin;
$post['message']=$vbulletin->gal->process_text($post['message']);

I tried both options listed in Julians reply. The error no longer occured, however no autolinks appeared either.

Progress though, i'll tinker a bit and post back. Let me know if you guys think of something else ;)

fismo
01-30-2006, 03:09 AM
no luck i'm afraid. The forums now function without error but no autolinks appear.

Can someone pls confirm what the Process Postbit plugin is supposed to contain?

I've also tried uninstalling, then re-installing with the allow overwrite option checked - still no result. When i re-install, the plugin reverts back to my post above

fismo
01-30-2006, 05:10 AM
just been re-reading this thread, i think Julian is recommending something for another script from this site..?

Awaiting a reply for the GAL product..

JulianD
01-30-2006, 09:24 AM
just been re-reading this thread, i think Julian is recommending something for another script from this site..?

Awaiting a reply for the GAL product..
I'm afraid I did. The best shot is to await for official support from The Geek.

The Geek
01-30-2006, 06:15 PM
Can you set it to use the DB Cache?

fismo
01-30-2006, 11:03 PM
i've tried using the cache and not using the cache, have tinkered with every option but always the error....

any advise?

fismo
01-31-2006, 08:44 AM
ok, i'm keen to keep this product but will have to seek a refund if we can't get it working..

Any ideas?

The Geek
01-31-2006, 10:45 PM
PM me an admincp url and account and ill look into it

fismo
01-31-2006, 11:35 PM
pm sent (padding to reach 10 characters..)

fismo
02-03-2006, 03:37 AM
The Geek has now fixed this up for me, much obliged