We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upgrade from EE2.x to 3.x database error

News and General

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
7 years ago
Sean C. Smith's avatar Sean C. Smith

I’ve followed all the steps in the guide to updating from EE2 to EE3 and when I tried to trigger the update by hitting the CP I get the following error:

Exception Caught

You must define the following database parameters: database

/path/to/system/ee/EllisLab/ExpressionEngine/Service/Database/DBConfig.php:157

double checked that config.php and database.php have been copied to system/user/config have also changed dbdriver to mysqli

Please advise.

       
travisb's avatar
travisb
171 posts
7 years ago
travisb's avatar travisb

I know it’s been a while, but… did you ever figure the cause of this error?

       
travisb's avatar
travisb
171 posts
7 years ago
travisb's avatar travisb

For me the problem was an overlooked file permission issue: database.php was set as too restricted.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Curious, was it not even readable by PHP? Write permissions on that file should be optional, ExpressionEngine just needs to be able to read it in order to copy them over to the config file (v3 doesn’t use a separate file for database config).

       
travisb's avatar
travisb
171 posts
7 years ago
travisb's avatar travisb

Deployed files and folders were fine, but some that were manually uploaded via sftp were converted from 666 to 664 on upload and that lead to the error on install / update. Don’t remember all files that had incorrect permissions, but sure that database.php was one. Haven’t had time to find why sftp permission conversion, but will track that down eventually.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.