Jump to content

Update from 9.0.0 to 9.0.1 fails after Database Update


BeeJayF

Recommended Posts

Hello all,

my upgrade to 9.0.1 fails during the installation of assets:

Step UpdateDatabase
Running generic queries
Database update OK
Installing assets
/htdocs/Presta9/modules/autoupgrade/classes/UpgradeTools/CoreConsoleExecutable.php line 81 - PrestaShop\Module\AutoUpgrade\Exceptions\CommandLineException: Could not find a valid way to call PrestaShop's bin/console. Check your environment PATH or add executable permission on the file.
PrestaShopException in /htdocs/Presta9/classes/db/Db.php line 307
#0 /htdocs/Presta9/classes/db/Db.php(240): DbCore::getClass()
#1 /htdocs/Presta9/config/alias.php(47): DbCore::getInstance()
#2 /htdocs/Presta9/classes/shop/Shop.php(1387): pSQL(false)
#3 /htdocs/Presta9/classes/shop/Shop.php(356): ShopCore::findShopByHost(false)
#4 /htdocs/Presta9/config/config.inc.php(122): ShopCore::initialize()
#5 /htdocs/Presta9/bin/console(18): require_once('/pages/9b/36/d0...')
#6 {main}

In FileLoader.php line 182:

The file "/htdocs/Presta9/app/config/admin/../doc
trine.yml" does not contain valid YAML: The constant "PDO::MYSQL_ATTR_INIT_
COMMAND" is not defined at line 20 (near "!php/const PDO::MYSQL_ATTR_INIT_C
OMMAND: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
") in /htdocs/Presta9/app/config/admin/../doctrin
e.yml (which is being imported from "/htdocs/Pres
ta9/app/config/admin/../config.yml").


In YamlFileLoader.php line 781:

The file "/htdocs/Presta9/app/config/admin/../doc
trine.yml" does not contain valid YAML: The constant "PDO::MYSQL_ATTR_INIT_
COMMAND" is not defined at line 20 (near "!php/const PDO::MYSQL_ATTR_INIT_C
OMMAND: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
").


In Inline.php line 640:

The constant "PDO::MYSQL_ATTR_INIT_COMMAND" is not defined at line 20 (near
"!php/const PDO::MYSQL_ATTR_INIT_COMMAND: "SET sql_mode=(SELECT REPLACE(@@
sql_mode,'ONLY_FULL_GROUP_BY',''))"").

The server runs PHP 8.4.8

I disabled all 3rd party modules

Since the error log contains a hit about executable permission of bin/console - I checked and found the console file has no executable rights - but setting those (chmod +x) did also not help.

Once the update has failed, the shop is still running but I rolled back using a full backup just not to end up in a semi broken state.

Any ideas what might be to cause of this error?

 

Thanks,

BJF

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...