Closed cballenar closed 8 months ago
Hi @cballenar, which version of Craft are you running?
Sorry, just noticed you put the Craft version in the ticket name. 🙃
I'll take a look into it, will let you know what I find.
I should've included it in the body as well (I just updated it). Thanks @lindseydiloreto !
Hi @cballenar, sorry for the late reply.
Were you updating from a very old version of Ad Wizard and/or Craft? If so, what version(s) were you updating from?
If this was a fresh install of Ad Wizard, it shouldn't have tried to run those old migrations. I may end up just removing the entire set of migrations, since they are so old at this point.
Digging deeper into this...
It appears this migration was released way back on July 16, 2019, the same day as Craft 3.2.3. Craft has obviously changed a lot since then!
So if you were updating from a Craft 3 website, you probably should have run all of the updates & migrations on the latest version of Craft 3, before making the leap to Craft 4. That would ensure all of the plugins can do the Craft 3 magic they need.
If you somehow got this when freshly installing Ad Wizard into a Craft 4 site, then something else went wrong. The initial Install
migration should not have triggered any of the m*
numbered migrations.
In any case, I'll be deleting these migration files for Craft 5 compatibility. If they are still giving you trouble, feel free to just delete those migration files from the vendor
folder, and run craft up
again.
Let me know if I missed anything!
Thanks for looking into this @lindseydiloreto
This site started on Craft 2 and has received updates somewhat regularly. Now... This was an install (not update) of AdWizard but I have used it before in this site a few years ago... so maybe that's how those migrations got in the way.
I'll continue working on it this weekend but what you described should do the trick. Thanks!
@cballenar It sounds like your very-old version of Ad Wizard may not have been completely uninstalled. Perhaps it was disabled and removed?
*Check your database for all of the `adwizard_` tables.** If they contain extremely old data, you may want to uninstall & reinstall the plugin. That should erase the old data, and ensure those tables are properly configured.
Yup, turns out my system had Ad Wizards tables still in the database as well as a record of it in the plugins table. (Version 0.9.6!)
I was able uninstall it using craft plugin/uninstall ad-wizard --force
and then I manually dropped the tables from the database.
After this I was able to install and test the plugin! Thanks for the help!
Ok awesome, glad you got it sorted out! 👍
System Settings:
Required via composer and installed via craft cli just fine but when attempting to do the migration it fails because it's trying to use Fields::assembleLayout which was deprecated in 3.5.