PDA

View Full Version : Syntax error 1064 (index.php not working)


Soljah
06-06-2006, 04:31 PM
I need to know if an index.php can be rebuilt?

I am getting this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT dateline, userid FROM customavatar WHERE userid =;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Tuesday, June 6th 2006 @ 03:26:43 PM
Script : http://forum.grownfolkscafe.com/vbportal/forums/index.php
Referrer : http://forum.grownfolkscafe.com/vbportal/modules.php?name=GFC
IP Address : 24.1.228.43
Username : Sol
Classname : vb_database

I think this error has alot to do with my index.php not being recognized.

I have no idea how I lost it, but its gone and I cannot navigate from my portal page to my forum page.

Can anyone help?

Alan @ CIT
06-06-2006, 08:05 PM
Looks to me like your not logged in. In the SQL query above, there isn't a userid being parsed.

Thanks,
Alan.

Edit: Go to your AdminCP and disable all products and plugins - then see if you can access it.

Soljah
06-06-2006, 09:31 PM
Looks to me like your not logged in. In the SQL query above, there isn't a userid being parsed.

Thanks,
Alan.

Edit: Go to your AdminCP and disable all products and plugins - then see if you can access it.


Now I get this

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\hshome\grownfol\forum.grownfolkscafe.com\vbport al\forums\index.php(488) : eval()'d code on line 15

Dan
06-06-2006, 09:34 PM
Have you done any physical code modifactions? If you have it might be best to upload a clean copy of vBulletin with no modifactions. Also remember to make a backup of old files first before doing so incase you need them.