EDIT by @berrnd:
See #1209 (comment) for the fix/workaround when you are affected.
I just downloaded and installed release 3.0.0 but after modifying config.php and opening the application in /public I get an error "SQLSTATE[HY000]: General error: 1 SELECTs to the left and right of UNION do not have the same number of result columns". So I tried it again by downloading again but no luck. Next try was release 2.7.1 and it worked flawlessly. So I tried an upgrade to release 3.0.0 but same error again. I think there's something wrong with the database structure in the packed release zip file.
Error source:
/var/www/services/DatabaseService.php:33
Error message:
SQLSTATE[HY000]: General error: 1 SELECTs to the left and right of UNION do not have the same number of result columns
Stack trace:
#0 /var/www/services/DatabaseService.php(33): PDO->exec()
#1 /var/www/services/DatabaseMigrationService.php(56): Grocy\Services\DatabaseService->ExecuteDbStatement()
#2 /var/www/services/DatabaseMigrationService.php(30): Grocy\Services\DatabaseMigrationService->ExecuteSqlMigrationWhenNeeded()
#3 /var/www/controllers/SystemController.php(27): Grocy\Services\DatabaseMigrationService->MigrateDatabase()
#4 /var/www/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Grocy\Controllers\SystemController->Root()
#5 /var/www/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke()
#6 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle()
#7 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle()
#8 /var/www/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle()
#9 /var/www/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run()
#10 /var/www/middleware/LocaleMiddleware.php(16): Slim\Routing\RouteRunner->handle()
#11 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Grocy\Middleware\LocaleMiddleware->__invoke()
#12 /var/www/middleware/AuthMiddleware.php(31): class@anonymous->handle()
#13 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Grocy\Middleware\AuthMiddleware->__invoke()
#14 /var/www/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(59): class@anonymous->handle()
#15 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\RoutingMiddleware->process()
#16 /var/www/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): class@anonymous->handle()
#17 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process()
#18 /var/www/middleware/CorsMiddleware.php(30): class@anonymous->handle()
#19 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Grocy\Middleware\CorsMiddleware->__invoke()
#20 /var/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): class@anonymous->handle()
#21 /var/www/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle()
#22 /var/www/vendor/slim/slim/Slim/App.php(199): Slim\App->handle()
#23 /var/www/app.php(77): Slim\App->run()
#24 /var/www/public/index.php(45): require_once('/var/www/vhosts...')
#25 {main}
If you need more information please let me know!
I just downloaded and installed release 3.0.0 but after modifying config.php and opening the application in /public I get an error "SQLSTATE[HY000]: General error: 1 SELECTs to the left and right of UNION do not have the same number of result columns". So I tried it again by downloading again but no luck. Next try was release 2.7.1 and it worked flawlessly. So I tried an upgrade to release 3.0.0 but same error again. I think there's something wrong with the database structure in the packed release zip file.
Error source:
Error message:
Stack trace:
If you need more information please let me know!