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.

#26 2015-03-18 19:07:58

piotrekspalek
Member
Registered: 2015-03-17
Posts: 8

Re: Albums not working

Okay, as i said before i was manually changing the permission to 755, but it was the permission of the folder of the gallery. This is why it was not working. Now I've just discovered that i just need to change the permission of the index.php and mobile.php found in the folder of the album gallery. By default the permission of those file is 644. If i change those files i can fnally see the gallery online withut any 500 error.

What i'm wondering now is if i need to change the permission of the other files in the album folder too. gallery.xml, single.php, download.php .htaccess, autoindex.xml, lib.php

Please tell me what to do. Is there a way to modify something in lightroom in order to export the galleries with 755 permission and not 644?

Offline

#27 2015-03-18 19:54:48

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

Re: Albums not working

We've solved the problem.  For others that may stumble upon this thread:

A very few hosts require PHP files to have the permissions of 755, instead of the usual 644.  Publisher has a facility to set the permissions to 755 at the time the albums are created.  To use this, add the following line near the top of ttg-be/publisher/index.php:

define('FIX_PHP_PERMISSIONS', true);

So that the top few lines look like:

<?php

define('FIX_PHP_PERMISSIONS', true);

//$start = microtime(true);

if (!defined('APP_DIR')) {
    define('APP_DIR', 'application');
}

Offline

#28 2015-07-09 17:32:51

timmeh
Member
Registered: 2015-07-07
Posts: 2

Re: Albums not working

Hi Ben... Matthew suggested I contact you as I am having a similar problem here...

I can now publish an album.. (have done two simple 1 image test albums).. was getting a 500 error message but created another termplate ce4-gallery and added it to the templates folder and it seemed to fix that part.... if I click on galleries though, I get the 403 forbidden error..i have tried both 777 and 755.

I've created a Publisher instance. The url to that is: http://sustainableimage.com.au/ttg-be/publisher
Authentication test - ok
Use firefox

Also when I visit the new album - I have also installed cart... if I click on the add to cart icon - I get a no products exist at this time...  happy to solve these two different issues separately..  but I am on a tight deadline to get this operational...  I have been working on it for the last 3 days and still cant get it to work.. I think I must be missing something -

thanks tim

Last edited by timmeh (2015-07-09 18:50:31)

Offline

#29 2015-07-09 18:36:38

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

Re: Albums not working

Hi Tim,

I've had a look at your galleries.  For the cart, the issue is that your default pricing scheme only includes digital purchases, but your template does not support digital purchases and your cart does not have offline digital purchases enabled.  So you'll want to change either or both of those.

To enable digital purchases in your template, go into your Gallery web module, and configure the options under "Image Downloads for Sale" within the Publisher Setup section.  If that is the only change you're making to the template, then after exporting the gallery, just replace the file http://sustainableimage.com.au/ttg-be/t … /setup.xml
After doing so, re-publish any photos in the albums.  You'll also want to visit http://sustainableimage.com.au/ttg-be/cart/?a=reset before browsing the albums again -- that is a special link that resets the cart and cart settings from a customer's perspective in the browser you are using.

I can see a 403 at http://sustainableimage.com.au/galleries/, but won't be able to see what's causing this.  If you'd like me to take a look, please provide me with FTP access via the Email link under my picture.

Ben

Offline

#30 2015-07-09 19:12:05

timmeh
Member
Registered: 2015-07-07
Posts: 2

Re: Albums not working

thanks ben... have sent it to you just now

Offline

Board footer

Powered by FluxBB