View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06125Bug reportsInstallationpublic2012-05-28 15:12
Reporterjlpoole Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00RC1 
Fixed in Version2.00RC2 
Summary06125: Install fails: include(PDO.php)... failed to open stream: No such file or directory
Description

After clicking license acceptance, PHP Warning window stops installation with:

include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Steps To Reproduce

download limesurvey200RC1-build120510.7z
7z x limesurvey200RC1-build120510.7z
mv limesurvey /var/www/localhost/htdocs
chown apache:apache /var/www/localhost/htdocs/limesurvey

on Firefox 10.0.4 running on same server via SSH, load URL
http://localhost/limesurvey/index.php/installer
proceed with installation
Accept the license.
next page produce error message and stack trace.

Additional Information

PDO.php is not on the system:
hip src # updatedb
hip src # locate PDO.php
hip src #

Installed mysql is:
Installed versions: 5.1.62-r1(01:08:52 05/18/12)(berkdb community perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling -selinux -static -test -xtradb)

installed php:
Installed versions: 5.3.13(5.3)!m(01:16:05 05/18/12)(apache2 berkdb bzip2 cli crypt ctype exif fileinfo filter gd gdbm hash iconv ipv6 json ldap mysql nls phar posix readline session simplexml spell ssl tokenizer truetype unicode xml zlib -bcmath -calendar -cdb -cgi -cjk -curl -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm -frontbase -ftp -gmp -imap -inifile -intl -iodbc -kerberos -kolab -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pdo -pic -postgres -qdbm -recode -sharedmem -snmp -soap -sockets -sqlite -sqlite3 -suhosin -sybase-ct -sysvipc -threads -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -zip)

Here is the entire error page:

PHP warning

include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

/var/www/localhost/htdocs/limesurvey/framework/YiiBase.php(418)

406 {
407 foreach(self::$_includePaths as $path)
408 {
409 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
410 if(is_file($classFile))
411 {
412 include($classFile);
413 break;
414 }
415 }
416 }
417 else
418 include($className.'.php');
419 }
420 else // class name with namespace in PHP 5.3
421 {
422 $namespace=str_replace('\','.',ltrim($className,'\'));
423 if(($path=self::getPathOfAlias($namespace))!==false)
424 include($path.'.php');
425 else
426 return false;
427 }
428 return class_exists($className,false) || interface_exists($className,false);
429 }
430 return true;

Stack Trace
#0
+
/var/www/localhost/htdocs/limesurvey/framework/YiiBase.php(418): YiiBase::autoload()
#1
unknown(0): YiiBase::autoload("PDO")
#2
+
/var/www/localhost/htdocs/limesurvey/framework/db/CDbConnection.php(295): spl_autoload_call("PDO")
#3

/var/www/localhost/htdocs/limesurvey/application/models/InstallerConfigForm.php(48): CDbConnection::getAvailableDrivers()

43 public $adminEmail = 'your-email@example.net';
44 public $siteName = 'LimeSurvey';
45 public $surveylang = 'en';
46
47 public function __construct($scenario = 'database') {
48 $drivers = CDbConnection::getAvailableDrivers();
49 foreach($drivers as $driver) {
50 if (isset($this->db_names[$driver]))
51 $this->supported_db_types[$driver] = $this->db_names[$driver];
52 else
53 $this->supported_db_types[$driver] = $driver;

#4

/var/www/localhost/htdocs/limesurvey/application/controllers/InstallerController.php(204): InstallerConfigForm->__construct()

199 check a few writing permissions and optional settings
200
/
201 private function stepPreInstallationCheck()
202 {
203 $aData['clang'] = $clang = $this->lang;
204 $model = new InstallerConfigForm();
205 //usual data required by view
206 $aData['title'] = $clang->gT('Pre-installation check');
207 $aData['descp'] = $clang->gT('Pre-installation check for LimeSurvey ').Yii::app()->getConfig('versionnumber');
208 $aData['classesForStep'] = array('off','off','on','off','off','off');
209 $aData['progressValue'] = 20;

#5

/var/www/localhost/htdocs/limesurvey/application/controllers/InstallerController.php(72): InstallerController->stepPreInstallationCheck()

67 case 'viewlicense':
68 $this->stepViewLicense();
69 break;
70
71 case 'precheck':
72 $this->stepPreInstallationCheck();
73 break;
74
75 case 'database':
76 $this->stepDatabaseConfiguration();
77 break;

#6
+
/var/www/localhost/htdocs/limesurvey/framework/web/CWebApplication.php(276): InstallerController->run("precheck")
#7
+
/var/www/localhost/htdocs/limesurvey/framework/web/CWebApplication.php(135): CWebApplication->runController("installer/precheck")
#8
+
/var/www/localhost/htdocs/limesurvey/framework/base/CApplication.php(162): CWebApplication->processRequest()
#9
+
/var/www/localhost/htdocs/limesurvey/index.php(171): CApplication->run()

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'Local time zone must be set--see zic manual page/0.0/no DST' instead in /var/www/localhost/htdocs/limesurvey/framework/views/exception.php on line 217
2012-05-22 05:14:02 Apache Yii Framework/1.1.10

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120510
I will donate to the project if issue is resolvedNo
BrowserFirefox 10.4 (Linux)
Database type & versionMySQL 5.1.62-r1
Server OS (if known)Linux 2.6.38-gentoo-r6 #3 SMP
Webserver software & version (if known)Apache 2.2.22-r1
PHP Version 5.3.13

Users monitoring this issue

There are no users monitoring this issue.

Activities

jlpoole

jlpoole

2012-05-22 07:08

reporter   ~18869

I tried an installation on another Gentoo Linux system (laptop) and successfully landed on the Pre-installation Check page which never appeared on the system which is the subject of this bug.

For reference, here's the relevant information on the system that works:

themis src # uname -a
Linux themis 2.6.39-gentoo-r3 #1 SMP Sat Sep 17 08:58:44 PDT 2011 i686 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux
themis src #

Apache:
Installed versions: 2.2.22(2)(20:45:51 04/10/12)(apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias ldap ssl threads -apache2_modules_asis -apache2_modules_auth_digest -apache2_modules_authn_dbd -apache2_modules_cern_meta -apache2_modules_charset_lite -apache2_modules_dbd -apache2_modules_dumpio -apache2_modules_ident -apache2_modules_imagemap -apache2_modules_log_forensic -apache2_modules_proxy -apache2_modules_proxy_ajp -apache2_modules_proxy_balancer -apache2_modules_proxy_connect -apache2_modules_proxy_ftp -apache2_modules_proxy_http -apache2_modules_proxy_scgi -apache2_modules_reqtimeout -apache2_modules_substitute -apache2_modules_version -apache2_mpms_event -apache2_mpms_itk -apache2_mpms_peruser -apache2_mpms_prefork -apache2_mpms_worker -debug -doc -selinux -static -suexec)

PHP:
Installed versions: 5.3.10(5.3)(06:56:01 02/17/12)(apache2 berkdb bzip2 cli crypt ctype exif fileinfo filter gd gdbm hash iconv imap json ldap mysql mysqlnd nls pdo phar posix postgres readline session simplexml spell sqlite sqlite3 ssl threads tokenizer truetype unicode xml xsl zip zlib -bcmath -calendar -cdb -cgi -cjk -curl -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm -frontbase -ftp -gmp -inifile -intl -iodbc -ipv6 -kerberos -kolab -ldap-sasl -libedit -mhash -mssql -mysqli -oci8-instant-client -odbc -pcntl -pic -qdbm -recode -sharedmem -snmp -soap -sockets -suhosin -sybase-ct -sysvipc -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm)

MySQL:
Installed versions: 5.1.61(08:07:57 02/17/12)(berkdb community perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling -selinux -static -test -xtradb)

c_schmitz

c_schmitz

2012-05-22 15:04

administrator   ~18878

I guess the PDO module on that other server is not correclty installed/compiled. Can you get us a phpinfo of that non-working server?

jlpoole

jlpoole

2012-05-23 06:44

reporter   ~18885

Bingo - you accessed the problem. Thank you!

"pdo" is not a default setting for Gentoo's php install; it specifically needs to be activated. I accomplished this by adding to the configuration file "/etc/portage/package.use" file the following lines:

#
# 5/22/2012 jlpoole: pdo required by limesurvey
#
dev-lang/php  pdo

I then re-emerged dev-lang/php so the pdo module would be activated:

emerge dev-lang/php

For propriety, here's part of the output from the server where it failed,"hip ~ # eix php -I", showing that "pdo" was not activated (by default) as indicated by the entry "-pdo":

 Installed versions:  5.3.13(5.3)!m(01:16:05 05/18/12)(apache2 berkdb bzip2 cli crypt ctype exif fileinfo filter gd gdbm hash iconv ipv6 json ldap mysql nls phar posix readline session simplexml spell ssl tokenizer truetype unicode xml zlib -bcmath -calendar -cdb -cgi -cjk -curl -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm -frontbase -ftp -gmp -imap -inifile -intl -iodbc -kerberos -kolab -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pdo -pic -postgres -qdbm -recode -sharedmem -snmp -soap -sockets -sqlite -sqlite3 -suhosin -sybase-ct -sysvipc -threads -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -zip)

I then successfully accessed: http://localhost/limesurvey/index.php/installer/precheck

For the record, here's what php related pdo entries I found on the working system:
themis jlpoole # locate /pdo
/var/www/localhost/htdocs/egroupware/phpgwapi/inc/adodb/tests/pdo.php
/usr/share/webapps/egroupware/1.4.004/htdocs/phpgwapi/inc/adodb/tests/pdo.php
/usr/lib/php5.3/include/php/ext/pdo
/usr/lib/php5.3/include/php/ext/pdo/php_pdo_driver.h
/usr/lib/php5.3/include/php/ext/pdo/php_pdo.h
themis jlpoole #

I have provided these details so if Gentoo users run into problems, it will be very clear what needs to be done. I'm also posting in the Gentoo forum "unsupported software" a link to this bug so if anyone searches there for "limesurvey", they may find something helpful. As of now, a search within Gentoo's forum for "limesurvey" comes up empty.

jlpoole

jlpoole

2012-05-23 06:45

reporter   ~18886

Here's the Gentoo Forum link: http://forums.gentoo.org/viewtopic-p-7045028.html#7045028

c_schmitz

c_schmitz

2012-05-28 09:22

administrator   ~18933

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=8553

c_schmitz

c_schmitz

2012-05-28 15:12

administrator   ~18947

Version 2.00RC2 released.

Related Changesets

LimeSurvey: Yii 6c1346ab

2012-05-28 00:21:56

c_schmitz

Details Diff
Fixed issue 06125: Install fails when no DBO driver is installed instead of warning in requirements Affected Issues
06125
mod - application/models/InstallerConfigForm.php Diff File

Issue History

Date Modified Username Field Change
2012-05-22 06:59 jlpoole New Issue
2012-05-22 07:08 jlpoole Note Added: 18869
2012-05-22 15:04 c_schmitz Note Added: 18878
2012-05-22 15:04 c_schmitz Assigned To => c_schmitz
2012-05-22 15:04 c_schmitz Status new => feedback
2012-05-23 06:44 jlpoole Note Added: 18885
2012-05-23 06:44 jlpoole Status feedback => assigned
2012-05-23 06:45 jlpoole Note Added: 18886
2012-05-28 09:22 c_schmitz Changeset attached => LimeSurvey Yii 6c1346ab
2012-05-28 09:22 c_schmitz Note Added: 18933
2012-05-28 09:22 c_schmitz Resolution open => fixed
2012-05-28 09:23 c_schmitz Status assigned => resolved
2012-05-28 09:23 c_schmitz Fixed in Version => 2.00RC2
2012-05-28 15:12 c_schmitz Note Added: 18947
2012-05-28 15:12 c_schmitz Status resolved => closed