Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Invalid survey id in admin for December 2010 LimeSurvey 1.90+

Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59320

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Just did a fresh install (actually several, which is the reason for this post) from command line on my own colocated box that has been configured to the 9s according to the LS docs. Everything is default (except local MySQL credentials) and the install was uneventful, e.g., database tables created and populated `settings_global` and `users` fine, with 0 records for all other tables. All perms were set according to the instructions.

However, please see the attached file which is a screenshot of /limesurvey/admin/admin.php. I have a hard time believing that a sophisticated program like LS would offer an admin that looks this shabby, so this is my first flag that something possibly went wrong with paths. Believing that, I changed the config.php to use a hard path instead of dirname(__FILE__); No help.

No help for what? Logging in for the first time with default admin / password! It takes me to a blank screen with "Invalid survey id" and nothing else.

Going back and entering BS passwords gives me "Incorrect username and/or password!" as would be expected. Only when I give the correct password do I get the "Invalid survey id". This particular issue doesn't come up in the FAQ. I have Googled about for some insights, none. I suppose that there is some default table data missing from my install, just not sure what. Anybody agree with this idea? Any SQL you can suggest I use to populate, if this is the matter? Thanks much.
admin.gif
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59323

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Just as a point of interest, the /limesurvey/docs/demosurveys/Array_Filter_Test_DB.sql does NOT agree with the table structure of the installation it comes with.... At LEAST this simple error:
MySQL said: Documentation
#1054 - Unknown column 'short_title' in 'field list'

Stopping work until I hear from experts. :(
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59330

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 5834
  • Thank you received: 711
  • Karma: 220
Hello,

Seems there are problem in your installation : picture aren't good, seems some css file acces problem.
Upload your file again, modify your config.php file according to your host.
docs.limesurvey.org/Installation

For the Array_Filter_Test_DB.sql, i think it's an old demo survey , and maybe it had to be removed :)
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59335

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
It does seem like a path problem. Check the source of /limesurvey/admin/admin.php to see what the path is to adminstyle.css is. This may give you a clue. In your example it should be:
http://localhost/limesurvey/admin/styles/default/adminstyle.css
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: hawzorpt

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59338

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Here is what the head of admin/admin.php looks like.
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="scripts/tabpane/js/tabpane.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.qtip.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.checkgroup.js"></script>
<script type="text/javascript" src="scripts/admin_core.js"></script>
<title>LimeSurvey</title>
 
<link rel="stylesheet" type="text/css" media="all" href="styles/default/tab.webfx.css " />
<link rel="stylesheet" type="text/css" media="all" href="../scripts/jquery/css/start/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="styles/default/printablestyle.css" media="print" />
<link rel="stylesheet" type="text/css" href="styles/default/adminstyle.css" />
<link rel="shortcut icon" href="http://mycorrectsite/limesurvey/admin/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://mycorrectsite/limesurvey/admin/favicon.ico" type="image/x-icon" />
</head>

The favicon works! So I have that going for me.....
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59339

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Brief update. I hardcoded the paths to be like this:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/limesurvey/admin/scripts/tabpane/js/tabpane.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.qtip.js"></script>
<script type="text/javascript" src="http://mycorrectsite/limesurvey/scripts/jquery/jquery.checkgroup.js"></script>
<script type="text/javascript" src="/limesurvey/admin/scripts/admin_core.js"></script>
 
<link rel="stylesheet" type="text/css" media="all" href="/limesurvey/admin/styles/default/tab.webfx.css" />
<link rel="stylesheet" type="text/css" media="all" href="/limesurvey/scripts/jquery/css/start/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="/limesurvey/admin/styles/default/printablestyle.css" media="print" />
<link rel="stylesheet" type="text/css" href="/limesurvey/admin/styles/default/adminstyle.css" />
<link rel="shortcut icon" href="http://mycorrectsite/limesurvey/admin/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://mycorrectsite/limesurvey/admin/favicon.ico" type="image/x-icon" />

I have checked every line given here to see that the world finds the files similarly, and they all check out.

I am not thinking about server path variables such as php include_path directives that might be needed to find paths. Sounds very iffy that this would be true with a world-class package like LimeSurvey....but anybody have a line on that? As a test I added that, no effect.

Getting ready to devote a week to busting out my own tiny survey device...:pinch:
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59340

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
I should point out that less critically to the visual issues, which I expect are just a possible clue about what may have gone wrong, with all the hardcoded paths, we are still exactly where we started with `Invalid survey id`. I would like to explore whether there is (valid) dummy survey SQL available someplace I have not read. Thanks much!
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59343

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
Can you attach the contents of config.php (REMOVE DB USER INFO & PASSWORDS)?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59345

  • hawzorpt
  • hawzorpt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Sure thing:
$databaselocation   =   'localhost';   // Network location of your Database - for odbc_mssql or mssqlnative use the mssql servername, not localhost or IP
$databasename       =   'xyzabc';  // The name of the database that we will create
$databaseuser       =   'root';        // The name of a user with rights to create db (or if db already exists, then rights within that db)
$databasepass       =   'abcdef';            // Password of db user
$dbprefix           =   '';       // A global prefix that can be added to all LimeSurvey tables. Use this if you are sharing
                                       // a database with other applications. Suggested prefix is 'lime_'
 
// File Locations
$rooturl            =   "http://{$_SERVER['HTTP_HOST']}/limesurvey"; // The root web url for your limesurvey installation (without a trailing slash).
// The double quotes (") are important.
 
$rootdir            =   "/var/www/thissite/web/limesurvey/";
//dirname(__FILE__);   This is the physical disk location for your limesurvey installation. Normally you don't have to touch this
                                            // setting. If you use IIS then you MUST enter the complete rootdir e.g. : $rootDir='C:\Inetpub\wwwroot\limesurve$
                                            // Some IIS and OS/2 installations also require to use forward slashes
                                            // instead of backslashes, e.g.  $rootDir='C:/Inetpub/wwwroot/limesurvey'!
 
//installation Setup
$defaultuser        =   'admin';           // This is the username when LimeSurvey is installed and the administration user is created on installation
$defaultpass        =   'password';        // This is the password for the administration user when LimeSurvey is installed
 
// Debug Settings
$debug              =   1;                  // Set this to 1 if you are looking for errors. If you still get no errors after enabling this
                                            // then please check your error-logs - either in your hosting provider admin panel or in some /logs dir
                                            // on your webspace.
                                            // LimeSurvey developers: Set this to 2 to circumvent the restriction to remove the installation directory
                                            // or to change the password. If you set it to 3 then PHP STRICT warnings will be shown additionally.
 

Like I said, it is all basically default. Worried about something within the server itself......but no idea what makes this go "invalid survey id".
The administrator has disabled public write access.

Re: Invalid survey id in admin for December 2010 LimeSurvey 1.90+ 3 years 1 week ago #59346

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
The rooturl looks suspicious.

Try:
$rooturl            =   "http://".{$_SERVER['HTTP_HOST']}."/limesurvey";

Or hard-code that variable.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.265 seconds
Donation Image