PDA

View Full Version : Error in Updating Counters


patt1293
09-12-2010, 04:14 PM
I am getting this error when i try to open the Update Counters Page of Admincp:

Parse error: syntax error, unexpected $end in /home/crackeds/public_html/acp/misc.php on line 1843

Any help?

kh99
09-12-2010, 04:30 PM
The only thing I can think of is to check the file /home/crackeds/public_html/acp/misc.php and make sure it's not messed up (like maybe it ends on line 1843 instead of 1943 like it should), and upload it again if needed.

ETA: if not, I guess also check the phrase 'rebuild_similar_threads' and make sure that looks OK.

borbole
09-12-2010, 04:38 PM
Try to replace the misc.php file with a fresh copy from the vb package of your version and see if that would help

patt1293
09-12-2010, 04:55 PM
i replaced the file... it is 1843 lines both in my fresh copy and my faulty copy.

kh99
09-12-2010, 04:57 PM
Well come to think of it, it could be a different version than mine so maybe 1843 is right for yours. What's the end of the file look like?

ETA: I'm working on a test site that has version 3.8.3 and the end of mine looks like this:

($hook = vBulletinHook::fetch_hook('admin_maintenance')) ? eval($hook) : false;

print_cp_footer();

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 15:24, Sat Jul 25th 2009
|| # CVS: $RCSfile$ - $Revision: 29337 $
|| ################################################## ##################
\*================================================ ======================*/

patt1293
09-13-2010, 01:32 AM
yes that is how it looks. i do have the ending ?> at the bottom of the info box.

thats it.

kh99
09-13-2010, 01:50 AM
yes that is how it looks. i do have the ending ?> at the bottom of the info box.


Oops - yeah, so do I but I accidentally left it off.

patt1293
09-13-2010, 01:51 AM
ugh i have no idea what is going on or what is wrong

kh99
09-13-2010, 01:56 AM
You could try disabling any installed mods to see if that helps. Specifically, that file includes code from the "admin_maintenance" hook, so you could see if you have any plugins uising that hook.

patt1293
09-13-2010, 02:08 AM
vbexperience was the only one... i removed it.. its still gettting the same damn error

kh99
09-13-2010, 02:21 AM
OK, I have one more thought, then I'm out...

Check the file includes/functions_databuild.php (or just upload a fresh copy if that's easier).

patt1293
09-13-2010, 02:36 AM
okay so here. i uploaded another vbulletin in a separate directory, installed it, clean db, fresh install, still getting that error. makes no sense.

Lynne
09-13-2010, 02:44 AM
Download a new vbulletin package and upload the file from there. Don't open it or do anything to it before uploading it.

patt1293
09-13-2010, 12:17 PM
that worked. i believe my misc.php was faulty. i fixed it! thank you for everyones support