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.
You are not logged in.
Sorry about that - the perils of writing code in a forum. What you've added should be fine, though the parenthesis around $_SERVER['HTTPS'] == 'on' aren't necessary.
Hi, I'm assuming you're referring to the migration tool that comes with Publisher? If so, the migration tool does move CE3 CRG galleries to a CE4 instance.
I have just tried this out. The steps I took:
1. Setup the CE4 CRG on the server. This entails setting up ttg-be, ttg-be/crg and ttg-be/publisher, as documented
2. Uploaded a CE4 CRG template into ttg-be/templates/gallery/
3. Created a new Publisher instance that points to the equivalent location to the CE3 instance. The CE3 instance API URL pointed to http://localhost/ttg/crg-migration-test/publisher/api/. The new CE4 instance pointed to http://localhost/ttg/crg-migration-test/ttg-be/publisher/
4. Ran the migration tool (within LR: File -> Plug-in Extras -> Migrate galleries from CE3 Publisher to CE4 Publisher)
The albums from the CE3 instance were then managed by the CE4 Publisher, and had the look and feel of the CE4 template
Two further steps are needed to complete the process:
1. Migrated CRG galleries have feedback disabled by default, which is a limitation of the migration tool. You'll need to double-click each CRG album and enable feedback in the Integration tab.
2. The fields that are available for feedback will be set according to the 'default' profile. You'll want to update this profile to your own needs in the CRG admin console at ttg-be/crg/admin/
The browser is trying to load the main JavaScript from https://picture-site.com/ttg-be/crg/lib … crg-ce4.js (note the https instead of http)
Since you are on Windows, this is probably due to the code incorrectly calculating the protocol as https instead of http.
This is due to Windows supplying a variable for $_SERVER['HTTPS'] even when HTTPS is not enabled - Linux servers on the other hand only provide this variable if HTTPS is enabled.
Can you try applying the following edit to your page at TESTING/index.php, changing:
if (!empty($_SERVER['HTTPS'])) {$pageURL .= "s";}
to
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {$pageURL .= "s";}
If that solves it for that particular page, then we will need to apply this fix to the CRG plugin.
Thanks for the suggestion. There isn't currently a way of showing something more unique. I've added this to my CRG to-do list, to work on for the next feature update.
Hi PK, that's odd. Can you email me the link to your ttg-be and the contents of /ttg-be/data/admin/password.txt after running the /ttg-be/admin/?a=retrieve_all_passwords function? My email can be found by clicking 'Email' under my name.
Hi Kris, it sounds like your host is suggesting you use the SMTP service that they provide to you as a customer. This may be the same SMTP details that your host gives you for setting up external email clients (e.g. Outlook or Thunderbird), perhaps with a different SMTP hostname intended to be used internally within or between their servers.
If you mean changing within phpLiteAdmin then I would advise against it. That area is not intended to be used by customers unless advised by us.
In this case, changing the IDs will break the relationships between clients, albums and feedback.
Thanks for the URL. According to this page: http://michaelvest.com/ttg-be/admin/lib … verify.php
your server is running PHP 4. This version is long-deprecated and not supported by us or the PHP community.
PHP 4.4 has been unsupported since 2008, even prior the existence of any TTG plugins that use PHP (including all versions of CRG).
Who are you hosting with? I suggest you contact their tech support and request an upgrade to PHP 5. Depending on the host, it may just be a matter of changing a setting.
A typo.
Are you using 'mail' or 'smtp' for your mail settings? Can you forward on one of the emails you *have* received to my email address, available with the Email link under my name.
We haven't missed it. As this pertains to breadcrumbs in Publisher, the setting for 'Your Albums' is found in the Publisher settings:
Hi, thanks for pointing this out. All Publisher images are exported as JPEGs, so clashing on the file name. If you were to export both files to disk as JPEGs, how does Lightroom manage the names so that they're distinct?
Virtual copies are handled correctly as we coded Publisher to handle that scenario.
Can you provide the URL of your site? A quick Google suggests that this could be due to running PHP 4. If that's the case, then you may have luck by changing the version of PHP your site runs on from 4 to 5. How this is done will depend on your host.
Unfortunately, Lightroom's Publisher module doesn't support presets. We're looking to add a checkbox so that the previously-entered album details will be used as defaults.
Try removing any packages from your pricing scheme.
You would need to use transaction less and approve the sale.
You have not completed the Publisher upgrade. Login to ttg-be/publisher/admin/ to complete the upgrade, and that error should go away.
Further from what Rod said, galleries under /galleries/ (or whatever directory you are using) are stubs that the Publisher back-end turns into a gallery on-the-fly.
For example, if you had an album at /galleries/my-album/, upon viewing the album, Publisher will check the unique ID of the gallery, and fetch all of the relevant information about the gallery from the database, such as the list of photos and the template to use. Let's say that particular gallery was assigned to use a template named 'my-template'. Publisher would then pass the album data to the files at /ttg-be/templates/gallery/my-template and generate the gallery for the user to view in the browser.
This happens on-the-fly and isn't something you need to think about. The main points to note:
1. A published gallery will appear somewhere under /galleries/ (or whatever directory you have seen).
2. Galleries draw from templates under /ttg-be/templates/gallery/ (or /ttg-be/templates/autoindex/ for Album Sets)
3. From the perspective of the URL and what you see in the browser, a gallery under /galleries/ is functionally identical to launching a set of HTML files that fully reside under /galleries/. The process of fetching data from the database and constructing a gallery with template files is transparent to the end user.
Hi, looking at test-josh, I see that CRG is not enabled for the gallery. Can you double-click the album within publish services, and then click on the Integration tab. There should be an option to Enable feedback. Select this and click Edit.
You can setup your album sets in whatever way makes sense for you and your customers. For example, below is one strategy:
headshots/
headshots/person-one/
headshots/person-one/album-one
headshots/person-one/album-two
headshots/person-two/
headshots/person-two/album-one
headshots/person-two/album-two
portraits/
...
etc.
In case you weren't aware, albums and album sets can be dragged from one album set to another within Publish services. The location on your server and links will automatically be adjusted. So there's no need to re-create albums in order to change the structure. Just be aware that customers may click on broken links if you change the structure after giving them URLs to specific galleries.
One other item of note. I see that you named your template 'my-template'. While this works, it is only an example name that I made up. For your own organisation, you may want to name your templates something meaningful that reflect what the template is intended for, e.g. 'headshots', or 'weddings' (assuming that templates for headshots and weddings would have a different look and feel that warrant their own templates)
I'm assuming that you're trying to publish from the album named Default Album? Publisher can't use that. As suggested, please delete the album and create one of your own.
Publisher doesn't use .lrtemplates. A Publisher 'template' is an exported CRG Gallery. To set this up:
1. Setup the appearance and functions within the CRG web module of Lightroom
2. Click 'Export...' and save the files somewhere on disk. For example as 'my-template'.
3. Using your favourite FTP program, upload the entire exported directory, e.g. 'my-template', to ttg-be/templates/gallery/
You should then have files at somewhere like ttg-be/templates/gallery/my-template/. When creating a Published album, the available templates should include 'my-template'.
The above steps only need to be done once, for each type of appearance you're looking for. You can then create as many Published galleries as you like that will use that same template.
I've found and fixed the problem. Part of the setup of TTG BE requires that you login to the TTG BE admin and set the password.
The first visit to TTG BE admin also has the effect of setting up the admin database. Since this hadn't been done, CRG was failing at the point of trying to access the database.
I'll look into detecting that the database is missing and providing a helpful error message.
It may be easiest to look into this via FTP. Can you provide me with access via the Email link under my name?
SMTP can not be be used with Bluehost. To get emails working, changing the mail send type from 'smtp' to 'mail'.
Bluehost will want to know that your email address is valid. The best way to do this is to set a vendor email address matching the domain your site is on, and to configure that email address in Bluehost's control panel. You don't need to use that email address for your business, and could even set it to something like noreply@yournewdomain.com so that customers will know not to reply to it. The important thing is that Bluehost knows that the email address is setup in their system.
Hi Martin, thanks for the further info. That is a pretty huge file. Can you zip your local copy of the file and email it to me? (using the Email link under my picture). I'll then look into what is making the file so large and see if there's a good way to make it smaller.
If the file is still huge after zipping, could you upload the zip to your server and provide the link via email?
I'm wondering if the database files increase in size over time as they keep old versions of the data. Thinking aloud, it may be possible to run queries on the database and exporting all of the data into a clean database file. This would be akin to copying and pasting from an old Word doc to a new Word doc, which can greatly reduce the file size of the doc.
There may be ways of running command line tools. Who are you hosting with? I'm with Bluehost and have full command line access.
Hi Martin, another TTG customer had a similar issue last year. The solution is outlined in this post: http://community.theturninggate.net/post/25519/#p25519
More specifically, try the following:
Step 0) Make a copy of ttg-be/data/publisher/master.sq3 to your local PC. This is a very important file, holding all the data that Publisher needs to function. Making a backup to your PC is an extra step of precaution in case something goes amiss with the next steps
1) Copy the file ttg-be/data/publisher/master.sq3 to something like ttg-be/data/publisher/master-copy.sq3
2) Rename ttg-be/data/publisher/master.sq3 to something like ttg-be/data/publisher/master-moved.sq3
3) Rename the copied file from step one to master.sq3
Please let us know whether that solves the locking problem for you.