People who code: we want your input. Take the Survey

Questions tagged [migration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
1k 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
57 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
57 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
200 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 ...
5
votes
1answer
401 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
472 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
406 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
466 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 ...
4
votes
1answer
422 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
53 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
161 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
89 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
497 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
659 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
413 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
79 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
661 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
121 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?
2
votes
1answer
2k 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
833 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 ...
1
vote
1answer
931 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
135 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 ...
2
votes
3answers
2k 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
1k 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
763 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
3k 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
277 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
49 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 ...
3
votes
1answer
747 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
3k 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
83 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 ...
3
votes
1answer
211 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
177 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
141 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
483 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
605 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
6k 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
508 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 ...
2
votes
1answer
79 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 ...
3
votes
1answer
145 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
85 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 ...
0
votes
0answers
50 views

unable to delete entries after migration to new server

After migrating from one server to another, I'm unable to delete entries. I'm able to add new entries and change their status. But delete doesn't work. The servers are identical (using digital ocean ...
2
votes
2answers
575 views

Bulk moving asset folders, from one source to another

I'm moving all of my assets from a local folder to Amazon S3. I've got my S3 source all set up, and I've been migrating folders over to it by dragging & dropping. The problem is, I have thousands ...
1
vote
0answers
296 views

Manually Import Assets into Database

So Im working on a site migration that had a lot of images stored in Amazon s3. I was able to get all those images into craft pretty easily by just pointing at the old S3 server. The problem seems ...
2
votes
1answer
64 views

Best practices of converting an already created site into Craft CMS?

We have various clients who already have websites but would like us to optimize them a little bit and set them up on craft. Is there a more efficient way to do this than just hand coding all of the ...
3
votes
1answer
948 views

Does a plugin runs it's migrations on install?

I'm developing a plugin, bumping the version number to run the migrations I'm creating but then, for sanity, checked they run when the plugin is installed for the first time, which doesn't seem to be ...
2
votes
1answer
877 views

Issues migrating Craft site to a new host

We've tried moving an existing, live Craft site to a new host (where we currently just have http access via an IP). We simply copied all files (all 'craft' files, the index.php file and our related ...
0
votes
2answers
1k views

Can't Transfer Site

I have set up Craft on my local computer and now wish to move it online. However, I am having some difficulty doing this. I have tried this method: Migrating a whole website between Craft instances,...
1
vote
2answers
192 views

Migrating a Yii site to Craft

I have a large site running Yii (1.1.x), complete with many controllers for specific applications. A big section of the site is "static" pages, which use Yii to render out using a site layout. I'm ...