After host updates php, 'Internal Server Error'

More
9 months 3 weeks ago #148758 by twb01
twb01 created the topic: After host updates php, 'Internal Server Error'
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: someguy

Please Log in to join the conversation.

More
9 months 3 weeks ago #148780 by olle
olle replied the topic: After host updates php, 'Internal Server Error'
Database config is in file application/config/config.php

Please Log in to join the conversation.

More
9 months 3 weeks ago #148809 by twb01
twb01 replied the topic: After host updates php, 'Internal Server Error'
Thanks (I'm a bit rusty with Limesurvey) - I saved the new config with a new password. I'm still locked out.

Please Log in to join the conversation.

More
9 months 3 weeks ago #148810 by olle
olle replied the topic: After host updates php, 'Internal Server Error'
Screen-shot of error message please.
Also set debug = 2 in your config.php.

Please Log in to join the conversation.

More
9 months 3 weeks ago #148811 by twb01
twb01 replied the topic: After host updates php, 'Internal Server Error'
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)

Please Log in to join the conversation.

More
9 months 3 weeks ago #148812 by olle
olle replied the topic: After host updates php, 'Internal Server Error'
CDbConnection.connectionString cannot be empty

Looks like your config is not correct, still.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
9 months 3 weeks ago #148813 by olle
olle replied the topic: After host updates php, 'Internal Server Error'
You can move config.php to your home folder and redo the installation steps.

Please Log in to join the conversation.

More
9 months 3 weeks ago #148814 by twb01
twb01 replied the topic: After host updates php, 'Internal Server Error'
I'm beginning to think a reinstall might almost be easier (I can still download a backup of everything, is that advisable?).

Please Log in to join the conversation.

More
9 months 3 weeks ago #148815 by olle
olle replied the topic: After host updates php, 'Internal Server Error'
There's no difference between moving config.php and a reinstall. :)
Yes, do a backup first.

Please Log in to join the conversation.

More
9 months 3 weeks ago #148917 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!