View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
09775Bug reportsInstallationpublic2015-09-30 14:12
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeveritycrash 
Status closedResolutionnot fixable 
Product Version2.06+ 
Target Version2.06+ 
Summary09775: Last step of installation fails
Description

This error message shows up at the last step (optional settings) of the installion using PHP 5.3:
Could not add optional settings: exception 'CException' with message 'Alias "ls.pluginmanager" is invalid. Make sure it points to an existing directory or file.' in /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/YiiBase.php:295
Stack trace:
#0 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/YiiBase.php(196): YiiBase::import('\ls\pluginmanag...', true)
#1 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/base/CModule.php(386): YiiBase::createComponent(Array)
#2 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/core/LSYii_Application.php(204): CModule->getComponent('pluginManager')
#3 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/models/behaviors/PluginEventBehavior.php(57): LSYii_Application->getPluginManager()
#4 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/models/behaviors/PluginEventBehavior.php(35): PluginEventBehavior->dispatchPluginModelEvent('beforeUserSave')
#5 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/base/CComponent.php(561): PluginEventBehavior->beforeSave(Object(CModelEvent))
#6 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/db/ar/CActiveRecord.php(840): CComponent->raiseEvent('onBeforeSave', Object(CModelEvent))
#7 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/db/ar/CActiveRecord.php(942): CActiveRecord->onBeforeSave(Object(CModelEvent))
#8 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/models/User.php(182): CActiveRecord->beforeSave()
#9 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/db/ar/CActiveRecord.php(1071): User->beforeSave()
#10 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/db/ar/CActiveRecord.php(806): CActiveRecord->insert(NULL)
#11 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/controllers/InstallerController.php(676): CActiveRecord->save()
#12 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/application/controllers/InstallerController.php(83): InstallerController->stepOptionalConfiguration()
#13 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/web/CWebApplication.php(282): InstallerController->run('optional')
#14 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/web/CWebApplication.php(141): CWebApplication->runController('installer/optio...')
#15 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/framework/base/CApplication.php(184): CWebApplication->processRequest()
#16 /var/www/vhosts/mysurveyhosting.com/httpdocs/ls206/index.php(211): CApplication->run()
#17 {main}.

-> Missing PHP 5.3 compatibility?

Steps To Reproduce

Install LS 2.06 build 150629 using PHP 5.3.

Additional Information

When trying to call the admin login afterwards I get:
"Internal Server Error
Alias "ls.pluginmanager" is invalid. Make sure it points to an existing directory or file"

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)150629
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache 2
PHP Version5.3

Users monitoring this issue

apmuthu, DenisChenu

Activities

DenisChenu

DenisChenu

2015-07-15 12:14

developer   ~32697

@Mazi : can you test with last GIT master version please. Some other fix after last release .....
https://github.com/LimeSurvey/LimeSurvey/commit/c90606ec2221efc1f86fcfa90d105cce52b33bc8

Mazi

Mazi

2015-07-15 14:03

updater   ~32701

Last edited: 2015-07-15 14:04

Denis, I tested using the lastest files from Github master. Still the same error.

DenisChenu

DenisChenu

2015-07-16 00:09

developer   ~32704

Sorry, not sure to fix it for 5.3, OK with 5.4

Mazi

Mazi

2015-07-21 09:33

updater   ~32730

Carsten, are you able to test with PHP 5.3?

Didn't you fix a related issue before you left for holiday?
There are several reports now related to "ls.pluginmanager".

sammousa

sammousa

2015-07-22 14:30

reporter   ~32757

Some notes from my debugging (I could not reproduce and thus not fix).

  • This is an autoloader issue.
  • We have 2 autoloaders, PSR-4 and the built-in Yii autoloader.
  • The PSR-4 runs first, and should load the PluginManager class.
  • When the Yii autoloader gets called for a namespaced class it translates it to Yii aliases, which we don't use and thus this error gets thrown.
c_schmitz

c_schmitz

2015-07-22 14:35

administrator   ~32758

Cannot reproduce - sorry.

c_schmitz

c_schmitz

2015-07-22 14:36

administrator   ~32759

Nobody seems to be able to reproduce it so it might probably something with your PHP setup.

Mazi

Mazi

2015-08-13 12:48

updater   ~32940

The problem was related to an older PHP 5.3.2 version and can't be fixed within Limesurvey.
See https://github.com/LimeSurvey/LimeSurvey/commit/aa9efc23d5d8febe500a11bdb4acc916e5433c8c

Issue History

Date Modified Username Field Change
2015-07-13 09:38 Mazi New Issue
2015-07-13 09:38 Mazi Status new => assigned
2015-07-13 09:38 Mazi Assigned To => sammousa
2015-07-15 11:14 Mazi Issue Monitored: DenisChenu
2015-07-15 11:20 sammousa Status assigned => new
2015-07-15 11:20 sammousa Assigned To sammousa =>
2015-07-15 11:28 Mazi Assigned To => DenisChenu
2015-07-15 11:28 Mazi Status new => assigned
2015-07-15 12:14 DenisChenu Note Added: 32697
2015-07-15 14:03 Mazi Note Added: 32701
2015-07-15 14:04 Mazi Note Edited: 32701
2015-07-16 00:09 DenisChenu Assigned To DenisChenu =>
2015-07-16 00:09 DenisChenu Note Added: 32704
2015-07-16 00:09 DenisChenu Status assigned => new
2015-07-21 09:32 Mazi Assigned To => c_schmitz
2015-07-21 09:32 Mazi Status new => assigned
2015-07-21 09:33 Mazi Note Added: 32730
2015-07-22 14:30 sammousa Note Added: 32757
2015-07-22 14:35 c_schmitz Note Added: 32758
2015-07-22 14:36 c_schmitz Note Added: 32759
2015-07-22 14:36 c_schmitz Status assigned => closed
2015-07-22 14:36 c_schmitz Resolution open => unable to reproduce
2015-08-13 12:48 Mazi Note Added: 32940
2015-08-13 12:48 Mazi Status closed => feedback
2015-08-13 12:48 Mazi Resolution unable to reproduce => reopened
2015-08-13 12:48 Mazi Status feedback => closed
2015-08-13 12:48 Mazi Resolution reopened => not fixable
2015-09-30 14:12 apmuthu Issue Monitored: apmuthu
2021-08-03 15:42 guest Bug heat 8 => 12