Problem removing thread prefixes
Problem removing thread prefixes
When trying to remove a thread prefix from one of my forums, it is not removed and I find the following line in my errorlog:
Code:
[Tue Oct 13 10:25:26 2009] [error] [client 1.2.3.4] PHP Fatal error: Call to a member function escape_string() on a non-object in /var/www/html/vault/special_plugins_data.php on line 1201, referer: http://mywebhostname/admincp/prefix.php?do=deleteprefix&prefixid=Prefix_ID
So based on the filename of the php file I think the function in
special_plugins_data.php is at fault.
I had a quick look and found the issue (and fixed it)
You are referencing $db.
You should reference $vbulletin->db
It is in there three times