Problem/Motivation
I have a server with 30+ drupal 11 sites. Some sites can be updated with composer from 11.3.13 to 11.4.1 without problems. But others issue this error:
Got error 'PHP message: PHP Warning: require_once(autoload_runtime.php): Failed to open stream: No such file or directory in /xxx/example.com/drupal/web/update.php on line 13; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload_runtime.php' (include_path='.:/usr/local/php84/lib/php') in /xxx/example.com/drupal/web/update.php:13\nStack trace:\n#0 {main}\n thrown in /xxx/example.com/drupal/web/update.php on line 13', referer: https://www.example.com/admin/reports/dblog
The server uses DirectAdmin version-1.705.
The sites use PHP 8.3 or 8.4
Comments
Comment #2
longwaveDuplicate of #3091285: Composer scaffolding fails when permissions on default.settings.yml or default.settings.php is not writable.
This will be fixed in 11.4.2 which should be released in the next few days.
In the meantime you can also rerun
composer installafter updating which should create the missing file.Comment #4
longwaveSorry, wrong issue link, I meant #3607866: Scaffold plugin does not always create autoload_runtime.php when upgrading to 11.4