Log in

View Full Version : Major Errors everywhere


Darkus
02-08-2005, 09:38 AM
I seem to be plagued with T_VARIABLE errors, and I mean quite a lot. The forum was working wonderfully last night until I installed two new hacks, VB File Manager and Ucash. From then on, the forum just went down the drain.

T_VARIABLE Errors EVERYWHERE, PHP errors the works. I went crazy trying to track it down, induvidually edited all the php files with the error in, still once I fixed one error, 2 others cropped up until I couldent take it anymore and replaced the php files with fresh copys of the installation zip hoping it would cure it. It did, just then I lost all other hacks, which I knew would happen, but it also removed the Smilie Box at the side of the WYSIG editor...

So another hour was spent looking, searching trying to find out what exactly happened. Until, I could not find it, deleted the board directory on the webspace and re-installed.

Fine, I thought, install hacks more carefully now. So I re-installed, added the settings I remembered and went to install the VB File Man, and behold. I edited some php files from within the manager, couse it was a great addition and then this morning, I get the T_VARIABLE errors again...

I literally hit the roof and now ive tried manually editing the files again but this time the error just moves up the line, see example:

{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
$userjs = '';
foreach ($userarray AS $userid => $username)
{

Under the forum/showthread.php, line 1127 started playing up and displayed this error message:

Parse error: parse error, unexpected T_VARIABLE in /*path deleted*/forum/showthread.php on line 1127

So I removed the { that was there at that line and what happened?

Parse error: parse error, unexpected T_VARIABLE in /*path deleted*/forum/showthread.php on line 1126

And now its at the stage where actual values are at that line. I cannot think of anything what to do now, and I turn to you all for a hopeful answer before having to re-install again.

Thanks In Advance
~A newby VB Admin

Marco van Herwaarden
02-08-2005, 09:44 AM
Somewhere in teh editing process you probably missed a quote or other special character (", ', [ , ], {, }, ;).

By starting to try to repair the errors you probably only made things worse. Next time make a fresh backup of all files you're editing before EACH hack you install.

Darkus
02-08-2005, 09:47 AM
I did and I made sure that everything was highlighted before taking it into the php file... <_< I made sure that the hacks I install will be installed very carefully by cross refrencing and checking its all ok to go into the files...

Im gonna have to start again wont I?