newmehdi
(Mehdi Nejati 12)
1
i use mysql on server in basic project with under configure:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=dorna_transferstudent',
'username' => 'dorna_student_de',
'password' => 'pass',
'charset' => 'utf8',
];
but i have this error:
2016-02-08 10:22:48 [217.219.81.121][-][597c80ef5cfa7807d0131da2de1d37ef][error][yii\base\ErrorException:32] exception ‘yii\base\ErrorException’ with message ‘Module ‘pgsql’ already loaded’ in Unknown:0
i don’t know why this error about pgsql
softark
(Softark)
2
What are the call stacks?
newmehdi
(Mehdi Nejati 12)
3
thanks for replay,my log file is this:
2016-02-08 11:42:05 [217.219.81.121][-][abf40310095601e45ce745f28d8b22d7][error][yii\base\ErrorException:32] exception ‘yii\base\ErrorException’ with message ‘Module ‘pgsql’ already loaded’ in Unknown:0
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}
2016-02-08 11:42:05 [217.219.81.121][-][abf40310095601e45ce745f28d8b22d7][info][application] $_GET = [
'r' => 'site/index'
]
…
softark
(Softark)
4
Sorry, but I deleted some of your error log. I thought you should not disclose your server information too much.
It looks to me a simple error in your configuration. Did your app work as expected before you configured the database?
newmehdi
(Mehdi Nejati 12)
5
i extract basic project structure on server but i have this error.i dont know why this error happened?
softark
(Softark)
6
I just want to make sure what you did so far.
Did you follow the instructions of the guide to install Yii and the basic project template?
And did you successfully see the "Congratulations" page?
http://www.yiiframework.com/doc-2.0/guide-start-installation.html
newmehdi
(Mehdi Nejati 12)
7
yes i followed the guide and i could see "Congratulations" page. i had the error in end of page:
softark
(Softark)
8
Ah, OK.
Probably you have an error in your php.ini, including "mod_pgsql" twice.
newmehdi
(Mehdi Nejati 12)
9
thanks,i had just only access cpanel on server and i cant find "php.ini".Is there any way i can fix this problem?
softark
(Softark)
10
Consult your server’s help desk.