Closed 0xElectric closed 8 months ago
Hi, thanks for reaching out! Any chance you could send your composer.json
, composer.lock
and database backup from before the upgrade to support@craftcms.com so that we can try to replicate this?
Removing this block of code from config/app.php
fixed it for me:
'components' => [
'log' => [
'targets' => [
'__craftSentryTarget' => function () {
if (!class_exists('diginov\\sentry\\log\\SentryTarget')) {
return null;
}
return Craft::createObject([
'class' => 'diginov\\sentry\\log\\SentryTarget',
'enabled' => CRAFT_ENVIRONMENT != 'dev',
'anonymous' => false,
'dsn' => App::env('SENTRY_DSN'),
'release' => App::env('SENTRY_RELEASE'),
'environment' => App::env('SENTRY_ENVIRONMENT'),
'levels' => ['error', 'warning'],
'exceptCodes' => [403, 404, 401],
'exceptPatterns' => ['VolumeObjectNotFoundException'],
]);
},
],
],
],
seems totally unrelated to the error at first glance
For future reference, the way to integrate Sentry Logger using the advanced method in app.php
has changed since Craft 4. There is a warning in the changelog about that change. You can view the documentation here:
https://github.com/diginov/craft-sentry-logger/blob/main/README.md
What happened?
Description
Migration error on upgrade to craft 4 Followed the instructions in https://craftcms.com/docs/4.x/upgrade.html I have confirmed
entrydrafts
andentryversions
does not exist deprecated tables that exists are:templatecacheelements
,templatecachequeries
,templatecaches
Everything went well until step 9php craft migrate/all
Steps to reproduce
3.9.10
at time of writing)craft migrate/all
(where the error occurs)Expected behavior
Successful migration
Actual behavior
failed to apply m210624_222934_drop_deprecated_tables Migration failed. The rest of the migrations are canceled.
Craft CMS version
3.9.10 => ^4.0.0
PHP version
8.1.26
Operating system and version
Ubuntu 22.04.2 LTS
Database type and version
mysql Ver 15.1 Distrib 10.5.21-MariaDB, for debian-linux-gnu (x86_64)
Image driver and version
No response
Installed plugins and versions
"craftcms/aws-s3": "1.3.2", "craftcms/redactor": "2.10.12", "diginov/craft-sentry-logger": "1.3.4", "nystudio107/craft-cookies": "1.1.15", "putyourlightson/craft-sendgrid": "1.3.1", "studioespresso/craft-dumper": "2.0.0", "verbb/field-manager": "2.2.5", "verbb/formie": "1.6.36.1", "verbb/super-table": "2.7.5.1", "vlucas/phpdotenv": "^3.4.0"