the first time I install D8 through upload to ftp, then I install commerce & lots related commerce modules through composer. after a while I realise the D8.5 has some new feature, then follow the instruction, I delete the "core/vendor"folder and those individual files to be replaced with the new version files/folder, then immediately I got a error message on the screen, the whole site is dead, only a error message showing.
luckly I have a backup, then I put those files back through ftp, and then spent me few hours to update the core through composer, never works, at the end, I see someone saying this , because the first installation was through upload by ftp, so you can't upgrade through composer, it won't work, it waste me few hours.
then I remove the whole site to install again D8.44 from blank through composer, and then I try to update to the latest 8.5.0-alpha1 version again through composer by use the common line :
composer update drupal/core:8.5.0-alpha1 --with-dependencies
composer update drupal/core:8.5.0 --with-dependencies
composer update drupal/core:8.5 --with-dependencies
composer update drupal/core --with-dependencies
none of them are works, it says on the screen : "Package "drupal/core:8.5.0-alpha1" listed for update is not installed. Ignoring."
SO,can anyone tell me how can I upgrade to the latest alpha1 version through composer ?
( I realise you can't simply delete the vendor folder to replace the latest one, since the commerce module installed through composer, there are lots links in this folder, once the vendor folder removed, the commerce module dead )
Comments
Did you ever figure this out?
Did you ever figure this out? I'm having the same issue...
Solution from https://orkjern
Solution from https://orkjern.com/updating-to-drupal-85-with-composer not helped for me.
Remove the vendor directory
Remove the vendor and core directories and run
I have the same problem. Nothing mentioned above helped. Can ple
I have the exact same problem. Nothing mentioned above helped. Can please somebody help, this is urgent, as we have a critical security waring out.
I also had an issue with
I also had an issue with
...it didn't seem to do anything for me. I needed to run
(8.5.1 has the latest patch from last night). That was after I deleted deleted core/, vendor/ and composer.lock file. I hope this helps.
Where are the Drupal developers
As a part-time maintainer of a web site with a busy day job, I'm pretty annoyed that issues like this are not being addressed urgently by the Drupal team, when they are sending us doom and gloom emails about upgrading to 8.5.1 before we are hacked. If they want us to use Drupal 8, they need to provide an answer to questions like this urgently. I have tried all manner of solutions found on Google (deleting vendor directory and composer.lock and even the core directory, which seems to cause my composer updates to be killed along with my website; adding the drupal/core version to the require list in composer.json; checking "composer prohibit" to update other dependencies first). None have worked, so I have a vulnerable site at v8.4.3, which was a basic installation with almost no contributed modules that cannot be updated. This is beyond ridiculous.
I'm also having the same problem
I'm also having the same problem.
Unfortunately I couldn't
Unfortunately I couldn't solve this yet. I asked for help here, but didn't got any helpful advice.
https://drupal.stackexchange.com/questions/258940
The thing is, I didn't download a tarball to install Drupal, but followed some official looking instructions to reinstall and reimplement the whole project, when Drush stoped working. I remember that there where different recommendations for different approaches, and no way you could decide which one was the best. At least not, if you weren't following Drupal developer news on a daily basis, what I didn't...
Last thing I tried was to change the composer.json to:
But doing than I get:
Than I deleted the vendor folder and the file composer.lock, after this `composer update drupal/core --with-dependencies` start a long update process (reminds me of an OS update). When it is done I get WsOD saying:
The website encountered an unexpected error. Please try again later
Apache logs says:
Followed by a pretty long list of pathes etc.
For this I found a solution here: https://www.drupal.org/project/drupal/issues/2952099
To keep it short: run
drush updb
This should update the database and clear all caches.
After this the WsOD was gone, but sadly I couldn't log in as all form elements are vanished from the site. This might be an issue with some Javascript library...