PDA

View Full Version : newreply.php Fatal Error


nazareth
Sun 2nd Mar '08, 5:58pm
I am facing a strange problem when I want to post a reply on a thread or quoting in advanced post page

The weird thing is that only the quick reply was working

I was getting this message when try to reply


Fatal error: Using $this when not in object context in /home/xxxx/public_html/vb/newreply.php(969) : eval()d code on line 3

At the beginning I thought that the file newreply.php so I replaced it with new one but it was useless nothing worked

I disabled the hook and it really solved it
And I started enabling hacks one by another until I knew what`s making the problem and it`s the hide links plugin from visitors

I tried many plugin but nothing worked only one plugin did the job and here the link

http://www.vbulletin.org/forum/showthread.php?t=123415&highlight=hide+link+3.6.8

and really the issue has been solved and the hack has been installed

I like to say also that the forum version which encountered this problem is version 3.6.8

And the strange thing is that the problem appeared after the company made some updates, I think it`s php update, it has been moved to version 5, it was version 4 before, and I think that the problem occure exactly after the update has been made.

Steve Machol
Sun 2nd Mar '08, 11:41pm
This error is from a plugin you've installed. You need to disable each of your plugins then turn one at a time to see which one is causing this.

If you cannot log into the Admin CP then to disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

This will disable all hooks and allow you to log in properly with no hooks running.

http://www.vbulletin.com/docs/html/disable_plugins

Lynne
Mon 3rd Mar '08, 12:10am
You may not use the variable name "$this" in php5. You need to change it to another name.