I’m trying to migrate from 1.9.22 to the newest version of atrocore but I can’t manage to do it without errors.
I tried to rebuild the database, and to migrate to different version bug I have differents errors depending on the version, all the logs are in the attachements :
- from 1.9.22 to 1.10.0 => impossible to access atropim after the upgrade, white page. Distinct differents logs :
[2024-12-19T13:50:48.298512+00:00] Log.ERROR: Uncaught Exception TypeError: "get_object_vars(): Argument #1 ($object) must be of type object, array given" at /var/www/atropim-lom/vendor/atrocore/core/app/Espo/Core/Utils/Metadata.php line 431 {"exception":"[object] (TypeError(code: 0): get_object_vars(): Argument #1 ($object) must be of type object, array given at /var/www/atropim-lom/vendor/atrocore/core/app/Espo/Core/Utils/Metadata.php:431)"} []
- from 1.9.22 to 1.10.73 => i can access atropim, but when I search a product with the quick access autocomplete, I see “Loading…”. When I access all the products in the list menu, I can see the products, but when I click on one => error 500. Distinct differents logs :
[2024-12-19T14:02:47.112113+00:00] Log.WARNING: E_WARNING: Undefined array key "tags" {"code":2,"message":"Undefined array key \"tags\"","file":"/var/www/atropim-lom/vendor/atrocore/core/app/Atro/Migrations/V1Dot10Dot0.php","line":291} []
[2024-12-19T14:05:02.377292+00:00] Log.ERROR: Creating composer update log failed: Call to a member function set() on null [] []
[2024-12-19T14:05:18.918082+00:00] Log.ERROR: API [GET]:.*, Params:Array ( ) , InputData: - [] []
[2024-12-19T14:05:18.920202+00:00] Log.ERROR: Display Error: , Code: 500 URL: /?entryPoint=LogoImage&id=638f44ef9863f0d98&t=638f44ef9863f0d98 [] []
[2024-12-19T14:05:18.920381+00:00] Log.ERROR: Uncaught Exception Slim\Exception\Stop: "" at /var/www/atropim-lom/vendor/atrocore/slim/Slim/Slim.php line 1020 {"exception":"[object] (Slim\\Exception\\Stop(code: 0): at /var/www/atropim-lom/vendor/atrocore/slim/Slim/Slim.php:1020)"} []
[2024-12-19T14:05:56.764304+00:00] Log.ERROR: Uncaught Exception TypeError: "explode(): Argument #2 ($string) must be of type string, null given" at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php line 43 {"exception":"[object] (TypeError(code: 0): explode(): Argument #2 ($string) must be of type string, null given at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php:43)"} []
- from 1.9.22 to 1.11.0 => same previous, distinct differents logs :
[2024-12-19T14:45:37.288397+00:00] Log.WARNING: E_WARNING: Undefined array key "tags" {"code":2,"message":"Undefined array key \"tags\"","file":"/var/www/atropim-lom/vendor/atrocore/core/app/Atro/Migrations/V1Dot10Dot0.php","line":291} []
[2024-12-19T14:47:52.765116+00:00] Log.ERROR: Creating composer update log failed: Call to a member function set() on null [] []
[2024-12-19T14:59:22.600201+00:00] Log.ERROR: Uncaught Exception TypeError: "explode(): Argument #2 ($string) must be of type string, null given" at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php line 43 {"exception":"[object] (TypeError(code: 0): explode(): Argument #2 ($string) must be of type string, null given at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php:43)"} []
- from 1.9.22 to 1.12.5 => same previous, distinct differents logs :
[2024-12-19T13:09:01.927476+00:00] Log.ERROR: Uncaught Exception Error: "Call to a member function set() on null" at /var/www/atropim-lom/vendor/atrocore/core/app/Espo/Core/Utils/Auth.php line 89 {"exception":"[object] (Error(code: 0): Call to a member function set() on null at /var/www/atropim-lom/vendor/atrocore/core/app/Espo/Core/Utils/Auth.php:89)"} []
[2024-12-19T13:11:01.706342+00:00] Log.ERROR: Uncaught Exception Doctrine\DBAL\Exception\TableNotFoundException: "An exception occurred while executing a query: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "auth_token" does not exist LINE 1: ...eated_at, t1.last_access AS atro_last_access FROM "auth_toke... ^" at /var/www/atropim-lom/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php line 75 {"exception":"[object] (Doctrine\\DBAL\\Exception\\TableNotFoundException(code: 7): An exception occurred while executing a query: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \"auth_token\" does not exist\nLINE 1: ...eated_at, t1.last_access AS atro_last_access FROM \"auth_toke...\n ^ at /var/www/atropim-lom/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:75)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 7): SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \"auth_token\" does not exist\nLINE 1: ...eated_at, t1.last_access AS atro_last_access FROM \"auth_toke...\n ^ at /var/www/atropim-lom/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:26)\n[previous exception] [object] (PDOException(code: 42P01): SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \"auth_token\" does not exist\nLINE 1: ...eated_at, t1.last_access AS atro_last_access FROM \"auth_toke...\n ^ at /var/www/atropim-lom/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:101)"} []
[2024-12-19T13:14:03.220817+00:00] Log.ERROR: CronManager: Failed job running, job [n6754e18281b274f7]. Error Details: [] []
[2024-12-19T13:17:06.512847+00:00] Log.WARNING: E_WARNING: Undefined array key "tags" {"code":2,"message":"Undefined array key \"tags\"","file":"/var/www/atropim-lom/vendor/atrocore/core/app/Atro/Migrations/V1Dot10Dot0.php","line":291} []
[2024-12-19T13:19:21.824006+00:00] Log.ERROR: Creating composer update log failed: Call to a member function set() on null [] []
[2024-12-19T13:20:00.112076+00:00] Log.ERROR: Uncaught Exception TypeError: "explode(): Argument #2 ($string) must be of type string, null given" at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php line 52 {"exception":"[object] (TypeError(code: 0): explode(): Argument #2 ($string) must be of type string, null given at /var/www/atropim-lom/vendor/atrocore/core/app/Atro/Core/Utils/Thumbnail.php:52)"} []
Do you know how to fix that ? We have assets linked to our products, and about 6650 products.
Thanks !