Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [migration]

The tag has no usage guidance.

0
votes
0answers
8 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
20 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
18 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:...
1
vote
1answer
22 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?
2
votes
1answer
14 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
25 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
13 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
38 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
29 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
92 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 ...
2
votes
1answer
179 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
33 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
45 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
97 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 ...
3
votes
0answers
72 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 ...
0
votes
0answers
166 views

Craft 2 to 3 503 on all cpresources

Following the instructions at https://docs.craftcms.com/v3/upgrade.html When I visit https://www.example.craft.test/admin I am greeted with the install page without styles. On further inspection ...
1
vote
2answers
215 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
100 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 ...
2
votes
1answer
188 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 ...
0
votes
0answers
44 views

Duplicating site to a subdomain

Folks: The hosting company is migrating a client's site to a new server with PHP 7 (currently on PHP 5). I've requested the subdomain temp.domain.com to test everything before the final move. The ...
1
vote
1answer
21 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 ...
1
vote
1answer
209 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?
1
vote
1answer
30 views

How can I reference images separately within a rich text field?

I'm migrating some posts from Wordpress, and the posts on Wordpress have the images within a rich text field. I need to reference the image separately to the rest of the rich text field - below the ...
1
vote
2answers
46 views

Database: Syncing “craft_fields” table through SQL dumps not possible?

I've been trying to simply sync an addition to a matrix field building block from my local dev server to the live environment database by doing a SQL dump of the "craft_fields" table. I now have the ...
0
votes
0answers
39 views

amforms: Import form submissions from one site into another

Using Craft 2 and amforms, I created a massive form on a client's temporary site while working on the full refresh on a staging server. While that development's been going on, the live temp site has ...
1
vote
0answers
307 views

Login - The CSRF token could not be verified - Not able to login into admin

I have migrated my Craft CMS from Cpanel Apache server to Ngnix server. Site is loading perfectly fine, whereas the Control Panel area is not working. It is giving following error message; Bad ...
1
vote
2answers
240 views

How do you debug problems with a migration?

I've created a simple migration to create a table for my plugin, but when I update the plugin via the CP, I get the following message: Craft was unable to install this update :( The site has ...
1
vote
4answers
197 views

Migrated site - now dashboard keeps logging out

I've migrated my client's Craft site to a new host. On the front end the site is fine and working as it should. The problem is with the Craft admin area. I can login, but once logged I can’t access ...
0
votes
1answer
59 views

Plugin migration question

Reposted from Slack I have tried to create a migration using console (as per docs) but whilst it created a migrations folder it did not create a migration file. So resorted to creating manually but ...
1
vote
2answers
269 views

Plugin DB migration add “not null” column

I set up a quick and dirty migration to add two columns to two tables. These are to be basically boolean 1/0 switch fields. I'm setting up my migration file as follows, note the 'not null' in both ...
3
votes
1answer
76 views

Migrating my Blogger site to CraftCMS

Has anyone migrated a Blogger site to CraftCMS? I'd like to migrate comments and posts. What is the best way to go about this? Could I import my site to Wordpress and then to Craft?
1
vote
2answers
722 views

Craft 3: Update database after CMS upgrade via console command

Is there any craft command command (shell) which can be used to perform the database updates necessary after a CMS update? (e.g. Craft3 beta-28 to beta29 or multi version updates) Background: We are ...
2
votes
1answer
429 views

Moving from staging (MAMP) to live production server

I'm a long time WordPress developer who's moved over to Craft CMS (loving it). When moving over WordPress sites from MAMP to a live production server, I follow this process: Upload all WP files to ...
0
votes
0answers
62 views

FeedMe & Structures

Just wondering if anyone has tried to migrate a EE Taxonomy tree over to a Craft Structure using Feedme (or any other technique)? The DB table structure is quite similar with lft and rgt values for ...
1
vote
1answer
689 views

Migrate path from 2 to 3?

Anyone have experience updating a CraftCMS site from 2.* to the 3-beta? I'm not in dire need of this at the moment, but can't seem to find it in the developer resources. EDIT: Found the upgrade guide ...
1
vote
1answer
68 views

How to use alterColumn to change the values of an ENUM field in a DB Migration

I need to add a value to my plugin database for an ENUM field but I am struggling to find the correct syntax for the alterColumn method. I want to do this but with alterColumn if possible? ALTER ...
1
vote
3answers
647 views

HTTP ERROR 500 after move to live

I moved a site from staging to live. Prior to moving, I logged in to the Craft admin and cleared the caches. I copied the db to the new one and moved the folders like so… from… home/subdomains/craft ...
2
votes
3answers
646 views

How would one go about migrating fields?

Is there any "simple" way of migrating fields and layouts from one setup to another? Example; Two identical installations/setups have diverged, where some information on certain fields have changed (...
1
vote
1answer
423 views

Going from a static site generator (Jekyll or Hugo) to Craft CMS; Export/migrations options?

I currently have a website that's been built using a static site generator (SSG; in this case, Hugo). The site has about 10 sections, each with 40-50 markdown files. As is the case with most content ...
7
votes
5answers
2k views

Has someone figured out Craft 3 content migrations?

One of the big features for craft 3 is content migrations. Migrating fields and sections between environments (like deploying code to test or production). I'm just having a hard time figuring out what ...
2
votes
2answers
225 views

Problems with Craft CMS development strategy [closed]

Clearly Craft CMS is not a thing for non-developers (like WordPress or Drupal is). Despite the option to create fields, sections, etc. in the administration panel, we still need to code templates (...
0
votes
1answer
24 views

Not seeing the entries in control panel

We recently moved the site from one domain to another domain (development to staging). I am able to login to control panel and see the fields and sections but when I go to entries, i dont see any ...
2
votes
1answer
449 views

Import-Export Matrixfield data

Have used the pretty neat Import and Export plugins from Bob Olde Hamsink. But, those two do not handle Matrix data. The question is basically: What is the 'most common way' to import and export ...
2
votes
3answers
2k views

How can I export or move content from one Craft system into another? (with exactly the same configuration)

Our client build tons of articles in our craft system instead of his. Both systems have the identical structure, in fact, his system is a exact copy of ours, which runs on a different server. How can ...
0
votes
0answers
69 views

Locale migration …

Any thoughts on the best way (if at all) of bulk-migrating content within a site from one locale to another? We have a large(ish) site and want to streamline into a single locale. This means moving a ...
0
votes
0answers
68 views

Plugin to deploy from a template Craft install

I'm in need of a plugin that would allow us to take everything from a dummy website, where we set up our fields, our generic sections, our user manual for clients (using the User Manual plugin), ...
3
votes
1answer
108 views

Down Migrations

Currently in the source down migrations are not supported by Craft CMS. public function safeDown() { Craft::log('Down migrations are not supported.', LogLevel::Warning); } Why are they not ...
1
vote
2answers
105 views

Importing members from EE without password reset

We've rewritten an EE site on Craft and now need to import the members. My understanding is that since passwords are hashed & not encrypted there is no way to transfer the passwords from EE to ...
1
vote
2answers
113 views

Migrate WordPress Site into Craft CMS. How deal with 404's?

I migrate my WordPress site into Craft CMS. So far so good. But the URLs for most of the Blog Entries are complete new. What's the best way to handle that? My site is good linked on Google and there ...
4
votes
1answer
328 views

Migrating Craft site to another server — throws 404 for all pages but homepage

I've been asked to migrate a Craft site from one server to another. The new server setup is the same as the server I'm migrating from. I moved all the files in the webroot directory over to the new ...