PDA

View Full Version : Getting bizarre error messages every time I install a hack


carolmyt
05-07-2005, 02:08 PM
We've been running version 3.0.6 since January, and everything has been running smoothly. I had installed a number of hacks with no problems (uCash, PetzvB and the Shoutbox were the only major hacks installed). Then, about a month ago, the Shoutbox started acting up, randomly deleting all shout histories. I reinstalled the shoutbox, and all hell broke loose. I got a series of errors regarding the global.php file regarding lines completely unrelated to the hack. I ended up having to reinstall an older version of the global.php file. That worked, and the site was fine again, with the added bonus of the shoutbox working. Yesterday I tried to install vBookie, and got the following:

Parse error: parse error in /var/www/html/includes/functions.php on line 2013

Fatal error: Call to undefined function: is_browser() in /var/www/html/global.php on line 59

For reference, line 2013 in functions.php is:
{

and 59 for the global:
if ((is_browser('ie', 5) AND !is_browser('mac')) OR is_browser('mozilla') OR is_browser('firebird') OR is_browser('opera', 7) OR is_browser('webkit') OR is_browser('konqueror', 3.2))

I restored older files, it didn't go away. I removed the hack from the newer files and reinstalled those, it didn't go away. I've installed the original, unhacked (entirely) files for this version, and it didn't go away. Now, I am certainly a newbie to this, but from what I understand, I have restored all of the original files, essentially bringing the site back to hour zero, and its had no effect.

I do use Dreamweaver to edit my files, which some people have said is bad, but no one has ever explained why, and its never created an unfixable problem.

I am out of ideas. Anyone who can offer any kind of help would be greatly appreciated.

Dean C
05-07-2005, 03:01 PM
Dreamweaver is the problem - it creates linebreaks and miscalleneous other problems automatically. Use notepad in future and uploading completely fresh files will fix your errors I'm sure of it.

RichieBoy67
05-07-2005, 03:33 PM
I use a free editor called Wynsyntax -- it makes no changes and has a great search....

carolmyt
05-07-2005, 03:58 PM
Ok, thanks, will try that.