Questions tagged [migration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
26 views

Unavailable plugin during migration to craft 3

During a migration from craft 2 to craft 3, I stumble in 3 issues with plugins. Plugins are not available in craft 3. For example,"instablog" plugin Reinstall paid license plugins. Custom plugins. ...
3
votes
2answers
60 views

Migrate Craft CMS installation from PgSQL to MySQL - any hints?

We need to migrate a Craft installation with a pgsql dump to MySQL. Any hints on the procedure? Thanks, Matthias
1
vote
1answer
19 views

Assign a category group to a category field via migration

I am writing a plugin that sets up Craft in a particular way and have created a category field, but can't figure out how to assign a category group to the field, I have the following: protected ...
1
vote
1answer
24 views

Error trying to run Migrate from terminal on Craft 3.4

I am attempting to migrate the content from Form Builder for Craft 2 to Form Builder for Craft 3 by Roundhouse, by using the following command in terminal: ./craft migrate/up --plugin=roundhouse/form-...
1
vote
1answer
83 views

Sprout Forms migration error

Running a migration from the command line ./craft migrate/all I get the following error message: Exception 'craft\errors\MigrateException' with message 'An error occurred while migrating Sprout ...
1
vote
1answer
19 views

Text cut off after migration in some fields

I migrated a site from Craft 2 to Craft 3 and on some Redactor fields, half the text is gone. It looks completely random. In some fields, the text is gone. In some the text is about half as long as ...
0
votes
0answers
24 views

Migrate SuperTable rows to new entry

I have a single with a SuperTable field with several rows. How can each row be saved into it's own entry, of a new entry type that uses the same field? Initially I tried doing it directly in the ...
1
vote
1answer
61 views

Updating old setup (3.0.41.1) to 3.1.0 various errors every time

I'm unfortunately dealing with a very old system that hasn't been updated in a long time. I've been able to update it up to 3.0.41.1 but once I attempt to go any further I get tons of different errors....
1
vote
1answer
25 views

How to create a new site (locale: de-AT) based on another site (de) within same installation?

I manage a website with multiple languages. Each language has its own site and domain. Think: website.de and website.co.uk I have to add another site with different locale (de-AT) to the Craft CMS ...
1
vote
1answer
21 views

Flush Compiled Templates Migration File breaks Craft Migration Setup from 3.0 to 3.3

I was attempting to upgrade my Craft CMS from 3.0 to 3.3.19 on my production site. I had tested this out on several dev environments and worked with no issue. However, when doing it live I ran into a ...
0
votes
0answers
7 views

Migration: How to show entry attributes after a migration?

I have created a content migration that populates a featuredDate field value within the content table. When editing an entry, this value is populated as expected, however, when viewing the element ...
1
vote
1answer
60 views

Creating and saving a GlobalSet element type in Craft 3

The following code is in a migration. It runs fine and there are no errors and prints SAVED, but nothing is saved in the globalsets database table. All my other content migrations run fine so it is ...
2
votes
1answer
106 views

How to import entries from Craft 2 to Craft 3?

So, I've been working on a Craft 3 upgrade, managed to set everything up, including configuring new plugins etc. Since I've started working on the upgrade process, some new entries have been published ...
1
vote
1answer
76 views

Only Install migration is applying on plugin install

I have a custom plugin which is added via path repository on local. I have some migrations in the src folder. My problem is if I uninstall the plugin and install it again, I can see all of the ...
0
votes
1answer
90 views

Plugin RegisterUrlRulesEvent - cannot find Controller aciton -> 404

The error I'm getting: HTTP 404 – Not Found – yii\web\NotFoundHttpException Page not found. ↵ Caused by: Invalid Route – yii\base\InvalidRouteException Unable to resolve the request "Expedweather/...
1
vote
1answer
132 views

Plugin RegisterUrlRulesEvent - Regex URL-Routing gives 404

I'm updating a Craft 2 plugin to Craft 3 and I'm having difficulties getting the Regex URLs working correctly. The eocs I'm using: Craft3 Docs I used pluginfactory.io to create the basic craft3 ...
2
votes
1answer
177 views

How to manage breakpoint releases when updating Craft via composer

When logged in to Craft, the "Utilities" tab will show you all the latest releases you can update to. In some cases, it will report that you have reached a breakpoint release: You’ve reached a ...
1
vote
1answer
29 views

How to limit sources for Entries field set up via migration

I'm seeting up all of my project's fields using migrations. This works really well, but I haven't been able to figure out how to limit the sources (sections) for an entry selection field. I've based ...
1
vote
1answer
51 views

Migration: Removing field from GlobalSet/Entry

Im creating my own migrations to better handle adding/removing fields on all environments. Is the following safeDown() function the correct way to remove a field from a fieldlayout? It works but im ...
1
vote
0answers
30 views

Migrate forms from EE2 Freeform to Craft 3 Freeform

I need to migrate some forms from Freeform in ExpressionEngine 2 to Freeform in Craft 3. Do you know of any tools or methods that exist that can help me out with this? Or am I doomed to do this ...
1
vote
1answer
650 views

Migrating from Craft CMS to WordPress

I have recently discovered our company website is run on Craft CMS. However, I do not like the system and am much more proficient on WordPress. Is there a way to move our site to WordPress without a ...
1
vote
1answer
54 views

Database migrations on environments - in which env do I apply updates to Craft and Plugins?

When developing a Craft 3 site on a multi-environment setup, where would I apply the Craft and Plugin updates? Should I apply them locally and then commit and replace the database in the dev env, or ...
1
vote
1answer
23 views

What files do you have to be aware of when migrating (i.e config files)?

What files do you have to be aware of when migrating a craft application from one domain to another? Are the specific files one should be aware of?
1
vote
1answer
57 views

Redactor migration might fail with allowAdminChanges & useProjectConfigFile false

One of the recent Craft updates (something close to 3.1.25) also brought a redactor migration (https://github.com/craftcms/redactor/blob/v2/src/migrations/m190225_003922_split_cleanup_html_settings....
1
vote
1answer
39 views

Migrate multiple Craft 2 CMS sites on cPanel

I am completely new to Craft CMS but need to migrate multiple sites at a current hosting provider away to AWS. Due to a hard deadline, I have been looking at a lift and shift approach for the time ...
1
vote
0answers
59 views

Should project config be used during development when migrating from Craft 2?

I'm looking for general advice on the best approach to handle a reasonable sized Craft 2 site to Craft 3.1, related to DB changes. Because the Craft 2 project is live and constantly changing, I ...
3
votes
1answer
502 views

project.yaml stopped syncing changes in the staging process

I'am a bit helpless at the moment, because my project staging workflow using project.yaml stopped working and a) I don't know why and b) have no clue if I can solve it. Problem: Until some days ago ...
1
vote
1answer
245 views

MySQL “Access denied for user” after moving to new server

I've moved my Craft 3 installation to a new server. When connecting to the original database, everything works fine. However, when trying to connect to a new MySQL database (I've tried hosting this ...
2
votes
0answers
24 views

What are the replacements for the order events onBeforeAddToCart and onBeforeGatewayRequestSend in Commerce 2

I'm looking for replacements for the events onBeforeAddToCart and onBeforeGatewayRequestSend. I used onBeforeAddToCart to prevent the user from adding an article from different article groups to the ...
1
vote
1answer
111 views

How to get core shipping methods in Commerce 2? How to save an order?

Is there an equivalent function to commerce_shippingMethods->getAllCoreShippingMethods() in Commerce 2? I can only find Commerce::getInstance()->getShippingMethods()->getAllShippingMethods();...
1
vote
1answer
79 views

Is there an equivalent to IOHelper::ensureFolderExists in Craft 3?

Migrating Plugins to Craft 3 starts bugging me, seems that really everything changed. Is there an equivalent to IOHelper::ensureFolderExists in Craft 3?
1
vote
1answer
29 views

Craft Equivelent of EE addon CE Image Bulk Tag?

I'm preparing to migrate an old ExpressionEngine site to Craft and there are channels with images that are being resized by wrapping the rich text editor with ce image bulk tag like this: {exp:ce_img:...
2
votes
1answer
67 views

Correct way to getOrderByNumber() from my Plugin in Commerce 2

I am migrating my plugin to Craft 3 / Commerce 2. What is the best way to call another plugins method like craft()->commerce_orders->getOrderByNumber($number) from my plugins service?
3
votes
1answer
103 views

Error clearing a field via migration script

I'm using a migration script to clear out the values for a field on one of my entries. The field is an Entry Field and is not required. So I do this: $product->components = []; Craft::$app->...
1
vote
1answer
115 views

Migrate sprout forms

Is there any way to migrate the configuration of a Sprout Form between my local environment and the production environment? I'm on Craft 3. Ideally, I'd love to generate a migration using the ...
1
vote
1answer
25 views

Visiting admin brings up the installer

I recently moved a Craft 2 install from a server running PHP 5.x to one running PHP 7.x. All seems to be well. The custom "system offline" message appears as expected when visiting the home page, ...
1
vote
0answers
198 views

Unable to add data via migration to a new field

When I am creating a new field (and I've tried plain text, redactor, supertable and matrix field) and associating it with an existing entry type (using the Control Panel to do so), I run into an issue ...
1
vote
1answer
65 views

How to install Craft on live server parallel to existing CMS?

I'm in the process of migrating a large, complex site to Craft. I've reached the stage where I like to install Craft in parallel to my existing CMS with the intention of allowing users to help me ...
2
votes
1answer
175 views

Migration from “Focal Point Field" for Craft to Native Craft 3 image focal point

Is there a migration from the “Focal Point Field for Craft“ plugin to the Craft3 native focal point? Or has anyone tried this themselves?
2
votes
1answer
322 views

Is it possible to import orders into Craft Commerce?

We have to migrate a CSV dump from a Drupal commerce shop to Craft Commerce. It is important to import ‘Order Email’ / ‘Username’, ‘Order Date’, ‘Ordered Items’ (Name or ID), ‘Item Price’. Address ...
4
votes
1answer
853 views

Running module migrations

I must be missing something or not understanding something. I'm trying to build a module for an install, and I'd like to run the initial migration. So the module initial install migration for the DB ...
1
vote
1answer
53 views

Migrate to a test site

I'm new to Craft CMS, and was wondering if it is possible to migrate a Craft CMS website to a test domain, to do redesign work, before moving the update site back to the live domain? and will this ...
1
vote
1answer
53 views

Migration to new server, left with default theme?

I have migrated a website that uses Craft CMS over to a new server. The instructions that I followed were outlines in this post: Migration of Craft CMS from one host to another The domain name in ...
3
votes
1answer
165 views

Craft periodically goes down due to plugin migrations

Our application seems to be crashing periodically, on a seemingly unknown cadence. Sometimes it goes down once every few days, and sometimes (like today, when I'm at the end of my rope) it goes down ...
4
votes
1answer
321 views

Update Asset Index in Migration

I'm trying to index some asset volumes that I'm creating in a migration. These are local volumes which may already contain files. I'm hoping to avoid the step where I have to manually update the ...
1
vote
2answers
433 views

Add new section in Craft 3 Migrations

I have been trying to get my head wrapped around Migrations in Craft 3 and find myself struggling with added a new section. I have managed to add a new volume, but not a section. Here’s where I have ...
0
votes
1answer
284 views

bootstrap.php how to include environment variables for multi-environment configuration?

I recently had to run a couple of migrations to move entries from one structure to the other, but had problems when running the migration PHP script being able to get environment variables e.g. DB and ...
3
votes
1answer
404 views

Macro _self no longer possible in Craft 3

This used to work in Craft 2: {% macro richText(macroParam) %} {{ macroParam |striptags('<br><p><li><ul><a><strong><i>')|raw }} {% endmacro %} {# include ...
1
vote
1answer
36 views

Migrations running on their own causing site down

I'm a bit stumped with this one and wonder if anyone else has come across it. I've a site live which is using the 'Formerly' plugin amongst others, since a recent update the site has gone offline ...
3
votes
1answer
365 views

Database structure for Craft 3 to import from external source?

Is there any best practice how to import info Craft 3 data from external source, or should I backtrack it from the database?