Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-16 13:32:26

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Move articles from local to remote

Hello,
I need to move about 150 articles I put in the local development copy of a website to the remote public website. Is there a way to do this with a plugin?

Offline

#2 2011-08-16 14:44:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: Move articles from local to remote

Hi Manaus

Do you have the whole site in local development?

If so you can just use phpMyAdmin to export it and then import it in the live site.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2011-10-04 10:02:18

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Re: Move articles from local to remote

Hello, I tried to import the sql dump in the remote website, but I get some troubles.
There’s a wordpress installation residing in the root folder, I created a /beta folder for txp development, but if I try to load /beta, I get Failed opening required './wp-blog-header.php'
I guess there’s a conflict between the two cms.
Do you have any hint how to fix this?
Thanks…

Offline

#4 2011-10-04 11:03:12

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Move articles from local to remote

if youo can create a subdomain you wil not have this kind of problem (it s du to htaccess rewrite), i am not enough skilled on htaccess to say wich command to put in to avoid that, then the only solution (simple) is to create a sibdomaine!

Cheers

Offline

#5 2011-10-04 12:22:04

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,001
Website GitHub

Re: Move articles from local to remote

In addition to Dragondz’s suggestion of setting up a subdomain for that directory, two things to try:

  • If you’ve used <txp:site_url /> and <txp:permlink /> to create your links on your site, you can set your site your “Site URL” in “Admin > Prefs” to www.domain.com/beta and it should create all links correctly.
  • Otherwise you can also try setting the RewriteBase to your subdirectory in your .htaccess file.

TXP Builders – finely-crafted code, design and txp

Offline

#6 2011-10-04 12:45:36

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Re: Move articles from local to remote

Thanks Rabah and Jakob.
Fun is that, if I install the basic 4.4.1 version with db created as new, it works properly.
I have txp_ and myweb_txp_ tables in the db. If I add the “myweb_” in the config.php file, switching from an installation to the other, there it comes the htaccess problem.
I have to port 120 articles from local to remote, wouldn’t like to do it raw…

Offline

#7 2011-10-04 15:40:57

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,001
Website GitHub

Re: Move articles from local to remote

if you change databases, you need to make sure that a) the site URL in the settings is correct and b) if you have a different installation for each site, that you also change the textpattern path in config.php.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB