Home arrow Ondersteuning arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:[done] error in your SQL syntax (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:[done] error in your SQL syntax
#11493
lcavalier (User)
Fresh Lemon
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
[done] error in your SQL syntax 7 Months, 3 Weeks ago Karma: 0  
hi,

I had no problem during installation (creating and populating database are ok).

Trying to connect to "admin/admin.php" for the first time, I get this 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 1ELECT define_questions, edit_survey_property, delete_survey FROM lime_surveys_rights WHERE sid=74 AND uid =



I run limesurvey 1.70+ onto a brand new server:

Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Linux 2.6.18-53.1.14.el5
php-5.1.6-15.el5
php-mysql-5.1.6-15.el5
mysql-server-5.0.22-2.2.el5_1.1
mysql-5.0.22-2.2.el5_1.1

Need help please.
 
Logged Logged  
 
Last Edit: 2008/04/16 13:22 By Mazi.
  The administrator has disabled public write access.
#11509
Mazi (Moderator)
Moderator Lime
Posts: 3262
graph
User Online Now Click here to see the profile of this user
Re:error in your SQL syntax 7 Months, 3 Weeks ago Karma: 25  
Strange error message. Please re-install the latest release (build 4600). Seems that the database was'nt populated correctly.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#11538
lcavalier (User)
Fresh Lemon
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:error in your SQL syntax 7 Months, 3 Weeks ago Karma: 0  
Here is the build I 've re-installed :

limesurvey170plus_build4600_20080330.tar


1st step : "Database has been created."
2nd step : "Database `limesurvey` has been successfully populated."
3nd step : Everything is fine - you just forgot to delete or rename
your LimeSurvey installation directory (/admin/install).
Please do so since it may be a security risk."

/limesurvey/admin/admin.php :


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:
SELECT define_questions, edit_survey_property, delete_survey FROM
lime_surveys_rights WHERE sid=74 AND uid =



Strange ... It sounds like an sql syntax error. Can it be related to mysql version 5.1 ?.


It seems that uid var is not correctely valuated.


If I set uid = 1, in limesurvey/admin/admin.php, I have no more this error,
though it does not work anyway (blank page)


$surquery = "SELECT * FROM {$dbprefix}surveys_rights
WHERE sid=".db_quote($surveyid)." AND uid = 1"
#".db_quote($_SESSION['loginID']); //Getting rights for this survey




Thanks.
 
Logged Logged  
 
Last Edit: 2008/04/01 06:42 By lcavalier.
  The administrator has disabled public write access.
#11552
Mazi (Moderator)
Moderator Lime
Posts: 3262
graph
User Online Now Click here to see the profile of this user
Re:error in your SQL syntax 7 Months, 3 Weeks ago Karma: 25  
Did you completely delete the database before re-installing?

If this doesn't solve the problem please open a ticket at the bugtracker.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#12217
Mazi (Moderator)
Moderator Lime
Posts: 3262
graph
User Online Now Click here to see the profile of this user
Re:error in your SQL syntax 7 Months, 1 Week ago Karma: 25  
Has this been solved now?

Deleting cookies and/or using another browser might solve the problem.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#13437
ronshome (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:[done] error in your SQL syntax 6 Months, 1 Week ago Karma: 0  
Hello, I also had the same error on a fresh installation. Ends up clearing cookies fixed the issue for me... Thanks for the suggestion!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top