PhilippHeuer / wordpress-heroku

This project is a template for installing and running WordPress 5.x on Heroku.
MIT License
273 stars 316 forks source link

Any plans to upgrade dependency versions? #45

Open jsuria opened 3 years ago

jsuria commented 3 years ago

Description of your issue

Need to update packages in composer.json to latest versions, especially Wordpress and subsequently the plugins themselves. Packages are currently locked to specific versions. Ran composer update using latest version of composer.phar produces dependency warnings.

Steps to Reproduce

Just try to do a composer update using v2 of composer. Warnings should appear.

Other Information

Git Commit/Version: latest

Any suggestions? Thanks!

image

SofianeBoumedine commented 3 years ago

I have the same issues. I try to update composer.json but without success

haydenlinder commented 3 years ago

Same issue here. Dependencies are expecting Composer 1.0.0 but Composer is past 2.0.0 now. Tried dropping down to Composer 1.0.0 and tried again but then I get this error.

Screen Shot 2020-11-23 at 9 12 45 AM

maruf-hossen commented 3 years ago

Same issue here. Dependencies are expecting Composer 1.0.0 but Composer is past 2.0.0 now. Tried dropping down to Composer 1.0.0 and tried again but then I get this error.

Screen Shot 2020-11-23 at 9 12 45 AM

try composer version 1.5

Arax20 commented 3 years ago

image

Composer 1.6.3 is the oldest I can rollback to and it doesn't seem to work

xenvi commented 3 years ago

I've had the same issue when trying to install a plugin from WP. Doing the following worked for me.

composer self-update 1.10.22
rm -rf vendor
composer require wpackagist-plugin/<plugin-name>

Or replace composer require <plugin> with composer install. Haven't tried it with composer update but this version seems to work more than the other ones have..

ref: https://stackoverflow.com/questions/61236961/composer-dump-autoload-or-update-results-in-fatal-error-on-laravel-5-5

pavleks commented 3 years ago

If you want to update the WordPress version first roll-back your composer (if you have Composer 2) following the instructions above and composer require johnpbloch/wordpress:5.8.1 johnpbloch/wordpress-core:5.8.1 to update your WordPress.

You can change to any specific version you want by editing 5.8.1 numbers.