Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-02-21 12:25:25

divinemayhemstudios
Member
Registered: 2013-06-27
Posts: 62

Moving directories with Publisher

I am not sure if this is possible, but the previous times I've started a post like this, I've been amazed with the results.

I created a 'test' site in a sub folder named /test/ to build and polish my ce4 site while my ce3 site stayed up. Now that I am ready to archive the ce3 site and replace it with the ce4 site, I find myself at a loss as to easily move all of my published galleries 'up one level' by removing the 'test' sub folder.

I used notepad++ to 'find and replace' all of the instances of /test/ with / and I re-exported all of the pages, gallery templates, and stage pages. I copied all of the ttg-be stuff over to the new location. I had hoped to just adjust the address in the publisher service and have it republish.

That was not the case as I have gotten many, many errors.

Any magical solutions?

Offline

#2 2015-02-21 13:41:00

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Moving directories with Publisher

Hi, can you provide a link to your site? What kinds of errors are you getting?

Offline

#3 2015-02-22 01:13:26

divinemayhemstudios
Member
Registered: 2013-06-27
Posts: 62

Re: Moving directories with Publisher

My main site is http://www.divinemayhem.com and my test site is http://www.divinemayhem.com/test

I received SQL errors when I attempted to edit and republish sets and galleries from the relocated publisher instance.
Here is one:
J5qKhIr.png

I've resolved that I've made some horrible mistakes and now I'm wondering how to completely remove the publisher history from the main site and start fresh.

Offline

#4 2015-02-22 01:52:56

divinemayhemstudios
Member
Registered: 2013-06-27
Posts: 62

Re: Moving directories with Publisher

I believe that I have found a solution, albeit messy. I deleted the publisher folder in ttg-be and replaced it with a freshly downloaded copy. I deleted the publisher folder in the ttg-be/data folder as well to clear out any residual gallery sets and galleries. I then created a new publisher instance in Lightroom and have been copying the title, description and Page MD test into new sets and galleries. I had hoped to preserve the test site's structure, but I can clear it out as well and use it simply for testing new galleries.

If there is a way to successfully relocate a publisher instance from a subdirectory to the root (essentially) of the site, I'd love to hear about it. I thought that I had it figured out in my head, but it didn't work out the way that I had expected.

Offline

#5 2015-02-22 02:11:00

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Moving directories with Publisher

I'm guessing that it has more to do with the database than the Publisher instance. That database error above referred to a location in the /test/ folder.

My guess is that a database connection got broken during your move.

Ben will have to confirm.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2015-02-22 06:28:05

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Moving directories with Publisher

You should be able to move everything within test to the level above.  I have something similar, moving the galleries, lib and ttg-be directories from /ttg/pages_ce4/ to /.  A gallery that had resided at http://mysite.com/ttg/pages_ce4/album-one/ then functioned fully at http://mysite.com/album-one/

I then changed the Publisher API URL from http://mysite.com/ttg/pages_ce4/ttg-be/ to http://mysite.com/ttg-be/ and was able to publish albums to the new location.

Offline

#7 2015-02-22 07:30:56

divinemayhemstudios
Member
Registered: 2013-06-27
Posts: 62

Re: Moving directories with Publisher

Ah, maybe it was that I didn't move the actual galleries. I figured that if I marked them all to republish, then it would just upload all new ones.

Offline

Board footer

Powered by FluxBB