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.
Thanks for the login. Disabling breadcrumbs for search avoids the issue.
Hi Edwin, are you running the latest version of Publisher? (2.1.3). If not, please upgrade.
Also, where are you seeing the error? I'm able to view the search page at http://vanpeltmontage.nl/search/ without issue.
You may need to disable breadcrumbs for the search page. You can find that setting under Settings->Publisher Settings of the Publisher admin page.
An explanation on the above:
Publisher tries to add an album on the server if it's found not to exist at the time of publishing photos. Since the Default Album wasn't setup through the usual Publisher 'Add Album' process, it doesn't have a slug. The server detects this and attempts to throw an error. Unfortunately, that part of the code tries to reference a file that doesn't exist and instead returns errors that aren't intended for human consumption. This error handling has been fixed in my working code, so at least should provide a more meaningful message in the future. Ideally we'd have the Default Album not exist, so that this problem couldn't arise, but that's something Lightroom creates on its own.
Are you trying to publish to the album called 'Default Album'? If so, remove it and create a new album to publish to.
Hi Martin, glad to be of help. That register_globals error is raised by phpLiteAdmin, which isn't TTG code. Still, it's always safest to have register_globals disabled. Depending on how a site is coded, with register_globals enabled, a malicious user could try to set a server-side variable by passing it in the URL, e.g. yoursite.com/?logged_in=true.
Removing albums alone may not fully clear-up the database. Each album has a set of photos. Each photo has a set of renditions and metadata. So if just the albums are removed without the related photos (and subsequently related renditions and metadata), then there will be orphaned data in the database. It's not likely to cause a problem, but it's worth keeping in mind. In any case, if you're delving into cleaning up the database to any significant degree, I strongly recommend that you first make a backup of ttg-be/data/publisher/master.sq3, so that you can restore it if needed.
Hi Martin, the golden rule is to let Publisher do it's thing and to not touch the Publisher-managed files on the server via FTP. As you've found, removing Publisher-created albums via FTP breaks things. Publisher can replace photos of existing albums, or update the metadata, so if something isn't quite right, it's straightforward to amend your gallery after it's been published.
I'm happy to go in and look at the database for you. Do you know which albums in particular are broken? If you'd like me to clean them up, please email me the TTG BE admin username and password. (not the guest with full privileges - only the admin can access phpliteadmin).
Here's my tip to improve search time:
1) Login to TTG BE as full admin
2) On the TTG BE Dashboard, click 'phpLiteAdmin' under 'Special Links'
3) Enter the additional password of 'admin'
4) On the left-hand side, click 'publisher/master.sq3'
5) Click on the SQL tab
6) In the large text area, paste the following code:
drop index photo_metadata_name_index
7) Click 'Go'
I can do the above for you if you find those steps are intimidating. In that case, please email or message me your TTG BE admin login.
An explanation of the above: Database indexes are used to speed up queries on fields that are frequently searched. The index that we're removing was meant to speed up searches for metadata named 'caption'. Unfortunately, in this case, the optimisation had the opposite affect, and drastically slowed down queries for captions. I am assuming this is because indexes work best for unique values (such as the name holding email addresses), and not for repeated values, such as the name being 'caption', which are far from unique. While each photo has a unique ID, every photo has metadata named 'caption'. The index just doesn't work well in that case.
Note that the removal of the index will be included in the next Publisher upgrade, due in the new year. So if you don't remove it now, it will be removed when the Publisher is updated.
Terry White has also made a video walkthrough of Publisher:
https://www.youtube.com/watch?v=hftq4KJRzXg
Hi Martin, the backslash you are seeing is called an escape character. It is used behind-the-scened to correctly pass a forward slash between the Lightroom Publisher and the publisher code on your server. There's nothing amiss here.
The search is taking too long. This is a factor of the number of photos in the database and the efficiency of the search queries. Roughly how many albums and photos do you have?
I have made improvements to the queries in my working code that should significantly reduce the query time. However the next Publisher update is tied to the CRG CE4 release. When I have the details handy I'll post some steps to improve the search time.
I'm glad to hear. It's rudimentary because that is only one of several scenarios the cart pricing needs to handle. It needs to be checked with orders that do and don't include shipping, and those that tax and don't tax shipping amongst other scenarios. Other components affected include the price appearance in the purchase dialogue, the total given in the widget, and those in the order emails. Also, the labelling needs to be changed through several areas, and localisation of those labels needs to be added in.
I've added rudimentary support for back tax. Here's how it looks. The customer only ever sees a price of $25 for this item. The sales tax is configured to calculate back from the total of the items+shipping. In this case $45. A 10% tax comes to 'included tax' of $4.09. (10% of the pre-tax of amount of 40.91). When 'tax shipping' is disabled, the tax comes to $2.27 (calculated back from $25)
Hi Juergen, this is not an advertised feature and I had not anticipated that it would be stumbled upon prior to purchase. The setting was added in anticipation of the feature, since having the setting already in the database makes the upgrade smoother when the feature does get added. I will get back to working on back taxes, hopefully for a cart upgrade either late this year or in early January.
Hi Ken, do you know anything about Lexity? I'm not at all familiar with it, but notice that all your ttg-be/admin page does is load a script from np.lexity.com. If you're familiar with Lexity and intentionally enabled it, then I suggest disabling it for your site (or at least under any TTG related directory). If you've never heard of it (like I hadn't), then I suggest raising this with your host's support.
Antagonising the mods is not helpful. It is not possible to tailor the email text for different products.
Hi Jinesh, with the CE4 Cart, there's no need to create multiple cart installations to achieve this. Pricing for a particular gallery (or even particular images within a gallery if using mixed pricing) are setup with pricing schemes. Pricing schemes are made up of one or more products.
So for your setup, you would firstly create all of the products:
5x7 print
8x10 print
10x16 print
Photo Mug
Canvas print
T shirt print
You would then create two pricing schemes, say scheme_1 and scheme_2, assigning the previously-created products as needed to each scheme, and giving them prices e.g.:
scheme_1
5x7 print cost: 10
8x10 print cost: 13
10x16 print cost: 18
Photo Mug cost: 15
scheme_2
8x10 print cost: 10
Photo Mug cost: 13
Canvas print cost: 20
T shirt print cost: 15
Lastly, you would set the pricing scheme as needed for each gallery, e.g. Gallery 1 to use scheme_1.
I would further refine the prints into fewer products. "Print 1" (for want of a better name) could be one product with a size attribute that had three options: 5x7, 8x10 and 10x16. "Print 2" could be a product with a size attribute that only had one option: 8x10.
scheme_1 would then be setup to use the "Print 1" and Photo Mug products, scheme_2 to use "Print 2", Photo Mug, Canvas print and T shirt print.
Hi Rod, the function had been there all along, but only documented recently.
Hi Kris, I have fixed the cart for you. The problem was that you had version 3.0.3 of the cart installed. It's now running 3.0.5, which is compatible with the latest Gallery plugin.
A couple of other points to note:
* The version of the cart still shows as 3.0.3 for me, since the process to complete the upgrade will only occur after logging in as full admin. In the case of 3.0.3 to 3.0.5 this completion is nothing more than updating the version number.
* Your old cart files are in cart_303. Once you're happy with the cart, you can safely remove this directory.
Hi Kris, it's coming up to the end of the week for me, so I'll have some time to look thoroughly through your setup.
Firstly, can you provide a new link to a gallery that isn't working properly?
Secondly, please consider providing me with FTP access so that I can see what's going on with your server.
One thing to try, is to remove the punctuation out from your pricing scheme names and product names. (the period and slash respectively). I would just try this for one scheme and its product, updating the scheme name in the gallery so that it matches.
Hi Fabian, so is it all working now? If so, that's great. Let us know if you're still having issues.
Hi Stine, you're running an older version of the Cart (3.0.1). The current version is 3.0.5 and includes a fix for the issue you've encountered (fixed in 3.0.2). To upgrade from 3.0.1 to 3.0.5, download the latest zip file, and perform these steps:
Replace the ttg-be/cart/application directory
Replace the ttg-be/cart/lib directory
Login as admin to ttg-be/cart/admin
It doesn't make a difference. As file names, photos etc all have same name. Semms to have more to do with me messing up the cart pricing again.
Firstly check that spaces and punctuation marks are no longer in the filenames. For example, what is the current filename of the image renamed to Still-life-painting---Monochrome-on-pink--_.jpg? If you're happy that there aren't spaces or punctuation marks other than underscores and hyphens, then re-publish the images.
checked the cart settings it was set to physical, no way to change it or delete.
There is a work-around to change the "digital download" back to a virtual product.
Edit the product and force it to have an error upon submitting the form. One way to do this is to clear the text from the Title and attempt to click Save Product. From there, you should have access to a drop down for the product type. Set it to virtual, type the correct Title back in and click Save Product. You may also need to enter the Download Directory again, which is typically photos-for-purchase.
(this process of being able to edit the Digital Download is itself the bug that allowed it to be accidentally changed to Physical in the first place. So it's using the bug to fix the entry caused by the bug).
Hi Fabian, I have looked through your setup. What is unusual is that the Standard Shipping doesn't have a section for the Fotoabzuege product. This is likely the reason that that product is not available.
I am not aware of a scenario that would cause a physical product to not have a corresponding section for each shipping method.
Can you try to remove Fotoabzuege, and re-add it, then see whether the shipping options for that product are shown for Standard Shipping?
The loss of "Product" localisation seems to be a bug. I'll look into this.
You can ignore that error in the log for view_product.php.
Thanks for the link. What's the username and password?
Without having seen the gallery, I see that it was generated with Gallery 6.0.4. The latest version is 6.1.2, with several bug fixes and improvements made since 6.0.4: http://ce4.theturninggate.net/docs/doku … _changelog
Try updating Gallery and re-exporting your gallery to see whether that fixes it. Also make sure you are running the latest version of the cart (version 3.5)