Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

After host updates php, 'Internal Server Error'

More
7 years 1 month ago #148758 by twb01
Recently my web host updated PHP, and now my limesurvey install is inaccessible (Internal Server Error). They required new password on all databases. How do I reset my configuration with a new password?
The following user(s) said Thank You: limeguy
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 1 month ago #148780 by ollehar
Database config is in file application/config/config.php
The topic has been locked.
More
7 years 1 month ago #148809 by twb01
Thanks (I'm a bit rusty with Limesurvey) - I saved the new config with a new password. I'm still locked out.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 1 month ago #148810 by ollehar
Screen-shot of error message please.
Also set debug = 2 in your config.php.
The topic has been locked.
More
7 years 1 month ago #148811 by twb01
Thanks for that. There are 4 errors:

throw new CDbException('CDbConnection.connectionString cannot be empty.');
388 try
389 {
390 Yii::trace('Opening DB connection','system.db.CDbConnection');
391 $this->_pdo=$this->createPdoInstance();
392 $this->initConnection($this->_pdo);
393 $this->_active=true;
394 }
395 catch(PDOException $e)
396 {
397 if(YII_DEBUG)
398 {
399 throw new CDbException('CDbConnection failed to open the DB connection: '.
400 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
401 }
402 else
403 {
404 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
405 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
406 }
407 }
408 }
409 }
410
411 /**


* @see PluginEventBehavior
24 * @return array
25 */
26 public function behaviors(){
27 $aBehaviors=array();
28 $sCreateFieldName=($this->hasAttribute('created')?'created':null);
29 $sUpdateFieldName=($this->hasAttribute('modified')?'modified':null);
30 $sDriverName = Yii::app()->db->getDriverName();
31 if ($sDriverName=='sqlsrv' || $sDriverName=='dblib')
32 {
33 $sTimestampExpression=new CDbExpression('GETDATE()');



* @param string $class
24 * @return CActiveRecord
25 */
26 public static function model($class = __CLASS__)
27 {
28 return parent::model($class);
29 }
30
31 /**
32 * Returns the setting's table name to be used by the model
33 *


16 injectglobalsettings();
17
18
19 function injectglobalsettings()
20 {
21 $settings = SettingGlobal::model()->findAll();
22
23 //if ($dbvaluearray!==false)
24 if (count($settings) > 0)
25 {
26 //foreach ($dbvaluearray as $setting)
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 1 month ago #148812 by ollehar
CDbConnection.connectionString cannot be empty

Looks like your config is not correct, still.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 1 month ago #148813 by ollehar
You can move config.php to your home folder and redo the installation steps.
The topic has been locked.
More
7 years 1 month ago #148814 by twb01
I'm beginning to think a reinstall might almost be easier (I can still download a backup of everything, is that advisable?).
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 1 month ago #148815 by ollehar
There's no difference between moving config.php and a reinstall. :)
Yes, do a backup first.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 weeks ago #148917 by DenisChenu
Replied by DenisChenu on topic After host updates php, 'Internal Server Error'
I like to reinstall from new directly , using same DB :).

It's more clear and work great .

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose