7

Something I wish I knew a long time ago, as it has bitten us quite a few times already in the past. Nothing as bad as having an automated deployment process that fails once in a while. I'm sharing it here, but I believe it would be good to add it to the knowledge base too (https://craftcms.com/knowledge-base/deployment-best-practices) The solution is to ...


3

Unfortunately this is an all too common occurrence. The good news is this is fixable. If your account was suspended, you need to unsuspend it. Typically you'd do this on the backend of the site. If don't have any users who have the appropriate user permissions, there is a way to do it. Are you comfortable "breaking" into your own website? ...


1

First of, Craft is very different from WordPress. With WordPress you can build a site without writing a single line of code using prebuilt themes and plugins, so it's easier to answer questions like Can updates break my site? With Craft, the frontend is built from the ground up by the developer, so the differences between Craft sites are much greater (by ...


1

I started this out as a comment but it got too long. Maybe not a complete answers, but some thoughts on your proposed solution. I think the key point to contest (when talking to your management) is this: We had presented migrations as a solution here already, but the above is the current focus of exploration. What's important to realize is that by rolling ...


1

However, during the dB export, we need to update all the entries to reflect the local URLs. How does this work with Craft? do dB entries need to be updated to reflect the new URLs? Sounds like you might be coming from something like WP where it hardcodes URL and links in the database? You'll be happy to know that is not the case in Craft. Craft generally ...


1

Here's a blog I wrote that might be useful to you: Database & Asset Syncing Between Environments in Craft CMS This was written before Project Config was a thing, but the technique works great with Project Config too.


1

Sleeping on it (and peeking at the db) provided a solution, with even simpler code: $entries = \craft\elements\Entry::find() ->section('sectionProduct') ->all(); foreach($entries as $entry) { $entry->setFieldValue('distribution', ["1", "2"]); Craft::$app->getElements()->saveElement($entry); } where "1" ...


1

How does craft know which migrations have been applied and which are new? I.e. Is it by comparing the craft_migrations table to the migration files found in '/vendor/craftcms/cms/src/migrations' folder (or plugin folders)? Exactly! Where does the information from running 'php craft migrate/new' and 'php craft migrate/history' come from? migrate/history ...


1

Take a database backup first to be on the safe side then run: ./craft utils/repair/section-structure yourStructureHandle See documentation - https://craftcms.com/docs/3.x/console-commands.html#utils-repair-section-structure


1

The great thing about Craft is everything is up to you. So there's not really going to be a service to effectively move from one CMS to another (unless you hire a Craft partner for example which is probably the closet thing to a service). However, if the site is relatively simple and you want to keep the existing design intact, and just re-manage the ...


1

You can have plugin A listen for the EVENT_AFTER_INSTALL_PLUGIN event. It could then check if $plugin->handle is for plugin B and if so, run any additional install migrations or logic. You could do something similar for the EVENT_AFTER_UNINSTALL_PLUGIN event to clean things up in the case where one gets uninstalled.


1

I'll answer this for the benefit of anyone else attempting the same thing i.e. sizeable Craft 2 to 3 migration, while you still have the Craft 2 site live. Ultimately, I chose content migrations and chose to basically ignore the projectConfig functionality for the most part during development. Since I originally asked the question projectConfig changed a bit ...


Only top voted, non community-wiki answers of a minimum length are eligible