Log in

View Full Version : Parse error - no access anymore as administrator


volovirtuale
07-23-2007, 08:00 PM
Hi,

today one of my administrators of the forum installed two mods downloaded from this web site :

Cyb - Advanced Forum Statistics 5.4
Who-has-visited


From that moment on on my forum we have this error :


Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/httpd/vhosts/volovirtuale.com/httpdocs/forum/global.php(554) : eval()'d code(3) : eval()'d code on line 1

The content of line 554 is :
($hook = vBulletinHook::fetch_hook('parse_templates')) ? eval($hook) : false;


I have no more permissions to log in as administrator because of this new error :

Impossibile aggiungere i cookie, intestazioni gi? inviate.
File: /home/httpd/vhosts/volovirtuale.com/httpdocs/forum/global.php(554) : eval()'d code(3) : eval()'d code
Linea: 1

In english : impossibile to add the cookie, headers allready sent.


What can I do?
There is no way to remove manually these 2 addons? I've tried to look on the server for these new files but wasn't able to find them, and obviously i'm not able to remove them from the admincp because i'm not able to login...

Thanks for any suggestion,

Simon

EnIgMa1234
07-23-2007, 08:45 PM
define('DISABLE_HOOKS' , true)

Add that to your config.php and uninstall those hacks

volovirtuale
07-23-2007, 09:02 PM
define('DISABLE_HOOKS' , true)

Add that to your config.php and uninstall those hacks

i'd love to do it but i cannot find a config.php on my 3.6.7 version :confused:

tipoboy
07-23-2007, 09:05 PM
via your ftp go to your forum root--> includes--> find "config.php"

add the code log into your admincp and uninstall those hacks thats causing the problem

volovirtuale
07-23-2007, 09:15 PM
ok, thanks i've honestly never looked inside vbullettin :)

I've found the config.php but my poor knowledge of php doesn't allow me to understand where i have to manually copy the text.

I've pasted it in the config.php but obviously my forum crashed, and i cannot find the admincp section you're talking about.

As i said, sorry again, i know nothing of php :(

tipoboy
07-23-2007, 09:17 PM
You can temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Once this is done, you should be able to access your admincp (and board) and uninstall any offending plugins/products.

try that

volovirtuale
07-23-2007, 09:21 PM
i did, this is the result :

http://www.volovirtuale.com/forum/


and this is my config.php modified
<?php

define('DISABLE_HOOKS', true)

....

sorry... forgot the ;

thanks my friend :)

tipoboy
07-23-2007, 09:25 PM
no probs thanks to marco for typing it earlier today lol

EnIgMa1234
07-24-2007, 08:39 PM
woopsie forgot the ;