craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

Installation fails on Craft 4.2.5.1 #1193

Closed jstevens79 closed 1 year ago

jstevens79 commented 2 years ago

Description

Tried updating a Craft 3 instance to 4, but this plugin caused Craft to crash. Tried creating an entirely new install of Craft 4 with a new DB and ran into the same issue when installing this plugin.

The error: "You need to be on at least Feed Me 4.4.2 before you can update to Feed Me 5.0.4".

I tried both installing from the plugin store as well as editing the composer file. Both installed correctly initially, but then changed the version identifier in the Craft DB afterward.

Steps to reproduce

  1. Install on Craft 4 from plugin store, or
  2. Add version 5.0.4 or ^5 to composer file and install from composer
cookie10codes commented 1 year ago

I'm having the same issue

Craft version: 4.2.7

cookie10codes commented 1 year ago

Issue solved at my end, after rebuilding my docker containers, it took an old db backup

JayGreentree commented 1 year ago

Mine gives "You need to be on at least Feed Me 4.4.0 before you can update to Feed Me 5.0.4." in devmode

cookie10codes commented 1 year ago

Did you rebooted the database lately? or can you get a database dump from a running environment with the correct project yaml? That did the trick for me to sync that database with my local one.

I saw that my plugins table in the database wasn't showing all the plugins and the 4.4.0 is running on Craft 3, not Craft 4.

jstevens79 commented 1 year ago

I tried starting with a completely new DB and Craft 4 install and still ran into the issue.

AdamChlan commented 1 year ago

I'm also seeing this issue on a recently updated Craft 4 site.

AdamChlan commented 1 year ago

It turns out my site had Feedme installed at one time, and the database tables remained. I removed any reference of Feedme from the project config, and applied, which removed those tables. I was then able to get v5 installed successfully.

EDIT: Actually, I had to manually remove the craft_feedme_feeds table because that still remained, and there was a migration error when installing v5

i-just commented 1 year ago

Hi @jstevens79, thanks for reaching out. I can’t replicate this behaviour on a clean Craft 4 installation. When updating from Craft 3 to 4, which version of Feed Me did you have installed for Craft 3?

angrybrad commented 1 year ago

Going to close this out because it sounds like it's not a Feed Me-specific issue, but various issues with updating Craft and plugins in general.

If anyone still runs into it, comment back and we'll investigate on a case-by-case basis.

robzor commented 7 months ago

@angrybrad I'm currently getting this error:

Exception 'yii\web\HttpException' with message 'You need to be on at least Feed Me 4.4.8 before you can update to Feed Me 5.3.0.'

in /vendor/craftcms/cms/src/services/Plugins.php:245

after upgrading a site from Craft 3 to Craft 4 where the Feed Me plugin was set to disabled, but updated to 4.8.0 while in Craft 3. This error shows up if I enable the plugin.

In craft/vendor/craftcms/feed-me/src/Plugin.php line 64 it says:

public string $minVersionRequired = '4.4.8';

The problem is, 4.4.8 of Feed Me doesn't exist under the github tags, so you can't edit the composer.json down to 4.4.8 to try and sort it. I can't switch back to 4.8.0 as that requires Craft 3, and I can't uninstall the plugin because to do that I have to enable the plugin which causes the error, even on the command line.

Any ideas?

robzor commented 7 months ago

CleanShot 2024-02-22 at 5  22 29 in the database table in plugins - this is the last time Craft thought it was updated. It was updated to 4.8.0 in Craft 3 via the craft CP but not enabled.

I manually changed this to 4.8.0, and then enabled the plugin (and it didnt error this time), so I could uninstall it :D