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
14 views

When creating new field with migration manager and then trying to import data into it, I can't

So, I wrote up a variant of this before ( Unable to add data via migration to a new field ) but saw it in even more detail today and wanted to document. I'm using Craft 3.0.9 (but saw same behavior ...
1
vote
0answers
29 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
24 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
63 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
81 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
27 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
44 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
86 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 ...
2
votes
0answers
41 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
152 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
167 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
91 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
149 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
35 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
19 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
169 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
29 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
40 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
36 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 ...
0
votes
0answers
243 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
1answer
172 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
169 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
56 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
234 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
67 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
599 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
372 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
55 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
651 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
63 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
535 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
618 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
402 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
1k 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
214 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
435 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
1k 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
62 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
67 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
102 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
96 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
108 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
317 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 ...
1
vote
1answer
399 views

Moving site to new server - admin area not working

I am trying to move a Craft site to a new server but am having difficulties. I have backed up the whole site and database an replicated it on a new server. 3 pages work fine, one page only loads the ...
3
votes
2answers
2k views

Migration of Craft CMS from one host to another

I'm a newbie in Craft CMS. I need to make changes in an existing craft website which is with one hosting platform. The site was previously managed by another developer. I need to migrate to a new ...
1
vote
1answer
216 views

Migrations: What's the right way to rename a Foreign Key?

I'm writing a migration for one of my plugins, and struggling to resolve something which should theoretically be simple: $this->renameColumn('myplugin_mytable', 'oldId', 'newId'); Except that ...
3
votes
1answer
65 views

Is it possible to add a custom error message when a migration is aborted?

I've got a plugin migration that returns false from its safeUp() method when certain conditions aren't met. Upon returning false from the migration, the update stalls, rolls back changes and gives an ...
2
votes
1answer
113 views

Plugin migration quandary

When exactly are migrations run? I wrote a migration that runs and does its job properly if I run it via the command line: yiic migrate up Seomatic but despite the version number and schema number ...
0
votes
1answer
76 views

Unable to connect to db via console with a custom config directory path

I've just used yiic for the first time for a plugin record installation and found that the db.php config file didn't seem to be picked up and I got database connection failures. I added a console ...