View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03685 | Bug reports | Survey taking | public | 2009-09-15 13:34 | 2009-09-22 00:58 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.85+ | ||||
Fixed in Version | 1.85+ | ||||
Summary | 03685: It always reports "Notice: Undefined variable: rooturl in /opt/lampp/htdocs/limesurvey/index.php on line 1742" | ||||
Description | After I have installed limesurvey185plus-build7593-20090907.tar.bz2 on xampp-linux-1.7.2.tar.gz, I fill in some questionnaires. Yet when I made a preview, it always displays this error information: "Notice: Undefined variable: rooturl in /opt/lampp/htdocs/limesurvey/index.php on line 1742" I'm sure that the installation is successful because I can login the admin page use the default username and passwd. And I can fill in the questionnaires. Yet it just report this issue when I enable the questionnaire token. I have tried with limesurvey185plus-build7523-20090824.tar.bz2 and it has report the same issue. I'm not a PHP developer, yet on limesurvey's official website, it's said that limesurvey would work xampp without any need to make modification. By the way, my host is Ubuntu 9.04 32bit. And I have tried it on both RHEL4.0 and Ubuntu 8.10, all fails. | ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 7593 | ||||
I will donate to the project if issue is resolved | |||||
Browser | Firefox-3.0.14 on Linux | ||||
Database type & version | mysql Ver 14.14 Distrib 5.1.37, for unknown-linux-gnu (x86_64) using EditLine wrapper | ||||
Server OS (if known) | Ubuntu 8.10(32 bit), Ubuntu 9.04(32 bit), RHEL-4.0 | ||||
Webserver software & version (if known) | Server version: Apache/2.2.12 (Unix) Server built: Jul 30 2009 10:16:29 | ||||
PHP Version | PHP 5.3.0 (cli) (built: Jul 30 2009 10:44:08) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies | ||||
Yep. I found the root issue. It's caused by that I changed the default setting of "Use CAPTCHA for: " to: Survey Access/--------/Save & Load If I changed it back to: Then it would be OK... |
|
Can you please upload your config.php file (xxx out any passwords)? I just want to check that there is no other source for this problem. Also attach your survey for testing, thanks! |
|
Here it is(with values for those key variables): // Basic Setup $databasetype = 'mysql'; // ADOdb database driver - valid values are mysql, odbc_mssql or postgres $rootdir = dirname(FILE); // This is the physical disk location for your limesurvey installation. Normally you don't have to touch this setting. // Email Settings $siteadminemail = 'Dinny.Wu@my-company.com'; // The default email address of the site administrator // Company Email Server Connection Settings // Company LDAP services |
|
Can you also upload your survey for testing as .csv file? |
|
In the htmlsourcecode the captcha is <img src='/verification.php' /> If you install limesurvey into a subdirectory the captcha won't get generated. verification.php is used three times in index.php : When I declare $rooturl global in the function buildsurveysession() (which i CANNOT recommend as a proper solution, since I don't know the codebase well enough ) the captcha is working fine. |
|
Thanks for identifying the source of the problem, jelo. This should be fixed soon. |
|
Thank you for your kindly analysis, Jely. It's really the $rooturl variable's problem, which needs to be declared as global. Anyway, I know where the problem is and I have made a temp workaround for urgent use. |
|
Declaring it global is fine. You should still deactivate notices on a production system. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-09-15 13:34 |
|
New Issue | |
2009-09-15 13:34 |
|
Status | new => assigned |
2009-09-15 13:34 |
|
Assigned To | => user372 |
2009-09-15 13:34 |
|
Build Number | => 7593 |
2009-09-15 13:34 |
|
Browser | => Firefox-3.0.14 on Linux |
2009-09-15 13:34 |
|
Database & DB-Version | => mysql Ver 14.14 Distrib 5.1.37, for unknown-linux-gnu (x86_64) using EditLine wrapper |
2009-09-15 13:34 |
|
Operating System (Server) | => Ubuntu 8.10(32 bit), Ubuntu 9.04(32 bit), RHEL-4.0 |
2009-09-15 13:34 |
|
Webserver | => Server version: Apache/2.2.12 (Unix) Server built: Jul 30 2009 10:16:29 |
2009-09-15 13:34 |
|
PHP Version | => PHP 5.3.0 (cli) (built: Jul 30 2009 10:44:08) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies |
2009-09-15 13:48 |
|
Note Added: 09557 | |
2009-09-15 16:10 | Mazi | Note Added: 09561 | |
2009-09-15 16:10 | Mazi | Status | assigned => feedback |
2009-09-15 16:10 | Mazi | Issue Monitored: Mazi | |
2009-09-15 16:17 |
|
Note Added: 09562 | |
2009-09-15 16:24 | Mazi | Note Added: 09563 | |
2009-09-15 17:22 | jelo | Note Added: 09565 | |
2009-09-15 17:22 | jelo | Note Edited: 09565 | |
2009-09-15 17:22 | jelo | Note Edited: 09565 | |
2009-09-15 17:26 | jelo | Note Edited: 09565 | |
2009-09-15 17:58 | jelo | Note Edited: 09565 | |
2009-09-15 17:59 | jelo | Note Edited: 09565 | |
2009-09-15 18:20 | Mazi | Note Added: 09566 | |
2009-09-15 18:21 | Mazi | Status | feedback => assigned |
2009-09-15 18:21 | Mazi | Assigned To | user372 => c_schmitz |
2009-09-15 18:57 |
|
Note Added: 09567 | |
2009-09-15 21:01 | c_schmitz | Note Added: 09568 | |
2009-09-15 21:01 | c_schmitz | Status | assigned => resolved |
2009-09-15 21:01 | c_schmitz | Fixed in Version | => 1.85+ |
2009-09-15 21:01 | c_schmitz | Resolution | open => fixed |
2009-09-16 00:40 | c_schmitz | Note Edited: 09568 | |
2009-09-22 00:58 | c_schmitz | Status | resolved => closed |
2010-10-25 00:18 | c_schmitz | Category | Survey at Runtime => Survey taking |
2021-08-05 15:52 | guest | Bug heat | 8 => 10 |