spacecatninja / craft-imager-x

Image transforms, optimizations and manipulations for your Craft CMS site.
Other
26 stars 16 forks source link

Imager to Imager-x upgrade fails #260

Closed E2design closed 6 months ago

E2design commented 7 months ago

I'm submitting a...

Description

In the process of moving a site hosted on Arcustech from Craft 3.x to 4.x. Imager was used and needs to be upgraded to Imager-X lite before upgrading Craft. Uninstalled Imager and thereafter trying to install Imager-X from the plugin store within the Craft CP. While installing Craft generates the following error.

PASTE THE ERROR MESSAGE / STACK TRACE HERE Error: The command "'/usr/bin/php' '/storage/av06134/www/public_html/storage/runtime/composer.phar' 'update' 'spacecatninja/imager-x' '--with-all-dependencies' '--working-dir' '/storage/av06134/www/public_html' '--no-scripts' '--no-ansi' '--no-interaction'" failed.

Exit Code: 2(Misuse of shell builtins)

Working directory: /storage/av06134/www/public_html/public

Error Output:

Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Composer output: Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Additional info

aelvan commented 7 months ago

Hi,

Not sure I follow, the first error you mention (Exit Code: 2(Misuse of shell builtins)) is when you try to upgrade Craft? Or when you uninstall Imager/install Imager X?

Unless you have some other plugin installed that requires imgix/imgix-php, the second error sounds like you didn't completely remove the old version. Try running composer depends imgix/imgix-php to determine what plugins currently require the package.

E2design commented 7 months ago

The first error message happens when I try to install Imager X. I had removed the old imager already. No craft upgrades executed.

Op 23 apr 2024, om 15:36 heeft André Elvan @.***> het volgende geschreven:

Hi,

Not sure I follow, the first error you mention (Exit Code: 2(Misuse of shell builtins)) is when you try to upgrade Craft? Or when you uninstall Imager/install Imager X?

Unless you have some other plugin installed that requires imgix/imgix-php, the second error sounds like you didn't completely remove the old version. Try running composer depends imgix/imgix-php to determine what plugins currently require the package.

— Reply to this email directly, view it on GitHub https://github.com/spacecatninja/craft-imager-x/issues/260#issuecomment-2072342960, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNCISXQQ3C76DNVSXE2SNLY6ZPULAVCNFSM6AAAAABGU4FCSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZSGM2DEOJWGA. You are receiving this because you authored the thread.

E2design commented 7 months ago

Solved. After deinstalling the old Imager AND removing the old Imager completely I was able to install Imager X.