View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04282Bug reportsOtherpublic2010-04-17 10:44
Reporterlucanos Assigned Toc_schmitz  
PrioritynormalSeverityblock 
Status closedResolutionno change required 
Product Version1.87+ 
Summary04282: New Install - Could not connect to database.
Description

As per Forum Post - http://www.limesurvey.org/en/support/forums/1-installation-a-update-issues/40932-new-install-failure-qcould-not-connect-to-dbq

Receiving Error:
"Could not connect to database. If you try to install LimeSurvey please refer to the installation docs and/or contact the system administrator of this webpage."
Being generated from file "index.php" at line 345.

I have checked the details in "config.php" and have echo'd them at the line this error is occuring, and they are correct.

I have also created a small, simple, test file in the LimeSurvey toot folder which used the same details (from the same config file) and is able to connect successfully.

Steps To Reproduce

Perform a FRESH installation.
Fault is seen whenever trying to load the install/index.php file

Additional Information

Further investigation and testing shows a glitch in the coding 'common.php', Line 225

"If( $dbexistsbutempty && $sourcefrom=='admin' ) {
die ("
The LimeSurvey database does exist but it seems to be empty. Please run the <a href='$homeurl/install/index.php'>install script</a> to create the necessary tables.");
}"

My Testing reveals:

  • For a fresh install, at this point, $sourcefrom=='public'.
  • Also, the resultant link from this error sends the user to 'install/index.php' even if the current page is 'install/index.php'.

I have attached a file, which is somewhat patched (but may do with a more knowledgeable eye).

TagsNo tags attached.
Attached Files
common.php (276,518 bytes)
Bug heat2
Complete LimeSurvey version number (& build)8518
I will donate to the project if issue is resolved
Browser
Database type & version142
Server OS (if known)Unknown
Webserver software & version (if known)Apache
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-04-17 10:44

administrator   ~11623

That is an intended behavior and no bug. The installation documentation refers to start the install from /admin/install/.

Issue History

Date Modified Username Field Change
2010-04-16 19:32 lucanos New Issue
2010-04-16 19:32 lucanos File Added: common.php
2010-04-17 10:37 user372 Status new => assigned
2010-04-17 10:37 user372 Assigned To => c_schmitz
2010-04-17 10:44 c_schmitz Note Added: 11623
2010-04-17 10:44 c_schmitz Status assigned => closed
2010-04-17 10:44 c_schmitz Resolution open => no change required
2010-05-06 10:28 c_schmitz Category Installer => (No Category)