wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.36k stars 192 forks source link

error 500 after update from 1.2.5 to 1.2.6 #1130

Closed oim37 closed 4 months ago

oim37 commented 4 months ago

Winter CMS Build

Other (please specify below)

PHP Version

Other (please specify below)

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

After start update

composer update

All steps done without errors but backend and frontend show 500 error.

Try

./artisan cache:clear
./artisan winter:up

Nothing help me, in nginx error log 2024/05/19 10:11:14 [error] 713#713: *345231 FastCGI sent in stderr: "PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/domain.tld/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Grammar.php on line 105" while reading response header from upstream, client: xx174.ip.111, server: domain.tld, request: "GET /admin/backend HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "domain.tld", referrer: "https://domain.tld/admin/backend"

Also i try to move all folders from plugin folder - but it not help me.

php 8.3 wintercms 1.2.5

Steps to replicate

composer update

All steps done without errors but backend and frontend show 500 error.

Workaround

Also i try to move all folders from plugin folder - but it not help me. I can't find reason and restore from backup maked before update.

LukeTowers commented 4 months ago

@oim37 do you get this error if you update to the latest develop branch?

oim37 commented 4 months ago

Not try, how to make it?

LukeTowers commented 4 months ago

@oim37 update your composer.json using the instructions here https://wintercms.com/docs/v1.2/docs/architecture/using-composer#development-branch and run composer update

oim37 commented 4 months ago
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 36 updates, 0 removals
  - Upgrading assetic/framework (v3.0.2 => v3.1.0)
  - Upgrading jaybizzle/crawler-detect (v1.2.117 => v1.2.118)
  - Upgrading league/flysystem (3.26.0 => 3.28.0)
  - Upgrading league/flysystem-local (3.25.1 => 3.28.0)
  - Upgrading mockery/mockery (1.6.11 => 1.6.12)
  - Upgrading monolog/monolog (2.9.2 => 2.9.3)
  - Upgrading php-parallel-lint/php-parallel-lint (v1.3.2 => v1.4.0)
  - Upgrading phpunit/phpunit (9.6.18 => 9.6.19)
  - Upgrading psy/psysh (v0.12.2 => v0.12.3)
  - Upgrading ramsey/uuid (4.7.5 => 4.7.6)
  - Upgrading squizlabs/php_codesniffer (3.9.0 => 3.10.0)
  - Upgrading symfony/css-selector (v7.0.3 => v7.0.7)
  - Upgrading symfony/deprecation-contracts (v2.5.2 => v2.5.3)
  - Upgrading symfony/error-handler (v6.4.4 => v6.4.7)
  - Upgrading symfony/event-dispatcher (v7.0.3 => v7.0.7)
  - Upgrading symfony/event-dispatcher-contracts (v3.4.0 => v3.5.0)
  - Upgrading symfony/finder (v6.4.0 => v6.4.7)
  - Upgrading symfony/http-foundation (v6.4.4 => v6.4.7)
  - Upgrading symfony/http-kernel (v6.4.5 => v6.4.7)
  - Upgrading symfony/mailer (v6.4.4 => v6.4.7)
  - Upgrading symfony/mime (v6.4.3 => v6.4.7)
  - Upgrading symfony/process (v6.4.4 => v6.4.7)
  - Upgrading symfony/routing (v6.4.5 => v6.4.7)
  - Upgrading symfony/service-contracts (v3.4.1 => v3.5.0)
  - Upgrading symfony/stopwatch (v6.4.3 => v6.4.7)
  - Upgrading symfony/string (v6.4.4 => v6.4.7)
  - Upgrading symfony/translation (v6.4.4 => v6.4.7)
  - Upgrading symfony/translation-contracts (v3.4.1 => v3.5.0)
  - Upgrading symfony/uid (v6.4.3 => v6.4.7)
  - Upgrading symfony/var-dumper (v6.4.4 => v6.4.7)
  - Upgrading symfony/yaml (v6.4.3 => v6.4.7)
  - Upgrading winter/storm (v1.2.5 => dev-develop fb60938)
  - Upgrading winter/wn-backend-module (v1.2.5 => dev-develop 8270729)
  - Upgrading winter/wn-cms-module (v1.2.5 => dev-develop a71c2f8)
  - Upgrading winter/wn-pages-plugin (v2.1.2 => v2.1.3)
  - Upgrading winter/wn-system-module (v1.2.5 => dev-develop 3a045f3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 36 updates, 0 removals
  - Downloading phpunit/phpunit (9.6.19)
  - Downloading symfony/deprecation-contracts (v2.5.3)
  - Downloading symfony/http-foundation (v6.4.7)
  - Downloading league/flysystem-local (3.28.0)
  - Downloading league/flysystem (3.28.0)
  - Downloading mockery/mockery (1.6.12)
  - Downloading monolog/monolog (2.9.3)
  - Downloading symfony/string (v6.4.7)
  - Downloading symfony/service-contracts (v3.5.0)
  - Downloading php-parallel-lint/php-parallel-lint (v1.4.0)
  - Downloading symfony/var-dumper (v6.4.7)
  - Downloading psy/psysh (v0.12.3)
  - Downloading ramsey/uuid (4.7.6)
  - Downloading squizlabs/php_codesniffer (3.10.0)
  - Downloading symfony/event-dispatcher-contracts (v3.5.0)
  - Downloading symfony/finder (v6.4.7)
  - Downloading symfony/event-dispatcher (v7.0.7)
  - Downloading symfony/error-handler (v6.4.7)
  - Downloading symfony/http-kernel (v6.4.7)
  - Downloading symfony/mime (v6.4.7)
  - Downloading symfony/mailer (v6.4.7)
  - Downloading symfony/process (v6.4.7)
  - Downloading symfony/routing (v6.4.7)
  - Downloading symfony/translation-contracts (v3.5.0)
  - Downloading symfony/translation (v6.4.7)
  - Downloading symfony/uid (v6.4.7)
  - Downloading symfony/css-selector (v7.0.7)
  - Downloading symfony/yaml (v6.4.7)
  - Downloading assetic/framework (v3.1.0)
  - Downloading winter/storm (dev-develop fb60938)
  - Downloading winter/wn-backend-module (dev-develop 8270729)
  - Downloading winter/wn-pages-plugin (v2.1.3)
  - Downloading symfony/stopwatch (v6.4.7)
  - Downloading jaybizzle/crawler-detect (v1.2.118)
  - Downloading winter/wn-system-module (dev-develop 3a045f3)
  - Upgrading phpunit/phpunit (9.6.18 => 9.6.19): Extracting archive
  - Upgrading symfony/deprecation-contracts (v2.5.2 => v2.5.3): Extracting archive
  - Upgrading symfony/http-foundation (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading league/flysystem-local (3.25.1 => 3.28.0): Extracting archive
  - Upgrading league/flysystem (3.26.0 => 3.28.0): Extracting archive
  - Upgrading mockery/mockery (1.6.11 => 1.6.12): Extracting archive
  - Upgrading monolog/monolog (2.9.2 => 2.9.3): Extracting archive
  - Upgrading symfony/string (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading symfony/service-contracts (v3.4.1 => v3.5.0): Extracting archive
  - Upgrading php-parallel-lint/php-parallel-lint (v1.3.2 => v1.4.0): Extracting archive
  - Upgrading symfony/var-dumper (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading psy/psysh (v0.12.2 => v0.12.3): Extracting archive
  - Upgrading ramsey/uuid (4.7.5 => 4.7.6): Extracting archive
  - Upgrading squizlabs/php_codesniffer (3.9.0 => 3.10.0): Extracting archive
  - Upgrading symfony/event-dispatcher-contracts (v3.4.0 => v3.5.0): Extracting archive
  - Upgrading symfony/finder (v6.4.0 => v6.4.7): Extracting archive
  - Upgrading symfony/event-dispatcher (v7.0.3 => v7.0.7): Extracting archive
  - Upgrading symfony/error-handler (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading symfony/http-kernel (v6.4.5 => v6.4.7): Extracting archive
  - Upgrading symfony/mime (v6.4.3 => v6.4.7): Extracting archive
  - Upgrading symfony/mailer (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading symfony/process (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading symfony/routing (v6.4.5 => v6.4.7): Extracting archive
  - Upgrading symfony/translation-contracts (v3.4.1 => v3.5.0): Extracting archive
  - Upgrading symfony/translation (v6.4.4 => v6.4.7): Extracting archive
  - Upgrading symfony/uid (v6.4.3 => v6.4.7): Extracting archive
  - Upgrading symfony/css-selector (v7.0.3 => v7.0.7): Extracting archive
  - Upgrading symfony/yaml (v6.4.3 => v6.4.7): Extracting archive
  - Upgrading assetic/framework (v3.0.2 => v3.1.0): Extracting archive
  - Upgrading winter/storm (v1.2.5 => dev-develop fb60938): Extracting archive
  - Upgrading winter/wn-backend-module (v1.2.5 => dev-develop 8270729): Extracting archive
  - Upgrading winter/wn-cms-module (v1.2.5 => dev-develop a71c2f8): Extracting archive
  - Upgrading winter/wn-pages-plugin (v2.1.2 => v2.1.3): Extracting archive
  - Upgrading symfony/stopwatch (v6.4.3 => v6.4.7): Extracting archive
  - Upgrading jaybizzle/crawler-detect (v1.2.117 => v1.2.118): Extracting archive
  - Upgrading winter/wn-system-module (v1.2.5 => dev-develop 3a045f3): Extracting archive
Generating autoload files
96 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan winter:version
*** Detecting Winter CMS build...
*** Detected a modified version of Winter CMS build 1.2.6.
> @php artisan package:discover

   INFO  Discovering packages.  

  laravel/scout ............................................................................................................................... DONE
  laravel/tinker .............................................................................................................................. DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/termwind ......................................................................................................................... DONE

No security vulnerability advisories found.

I try and after complete all working good! In backend show 1.2.6

Thank you. I need to back records in composer.json to have more stability in future updates?

LukeTowers commented 4 months ago

1.2.7 will be released at the end of the month, so if you want to you can switch back to tagged versions at that point, but honestly I just use the develop branch for all of my production sites, it's very rare for a breaking issue to be present on the develop branch.

oim37 commented 4 months ago

Understood, thanks!