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.
Pages: 1
My cart systems seems to have stopped working. Here is a screen shot of the error.
I made sure the cart, publisher, and gallery programs are up to date. I still have the same issue.
I click on the cart and then this error pops up - The gallery sent an invalid price option. Please contact the photographer for further assistance.
I hope someone can help.
Brian
Offline
Can you provide a url to a misbehaving gallery and also make sure guest access to ttg-be is enabled?
you screen shot didn't make it. see this on posting images to the forum: http://community.theturninggate.net/top … our-posts/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Here is the link.
http://www.btaylorphoto.com/client/clie … n-kressel/
user is Kressel and password is kr7823
Offline
Hi Brian, it appears to be a bit of an odd problem. Requests made to index.php files on your server get redirected to / in the current directory. In the case of the cart, the JavaScript calls to http://www.btaylorphoto.com/ttg-be/cart/index.php are redirected to http://www.btaylorphoto.com/ttg-be/cart/, causing the scripts to break.
Have you added any redirects in your own .htaccess files, or are you aware of such a setting for your host?
Offline
Ben,
Thanks I'll check in to that.
Brian
Offline
could this be the problem ?
RewriteEngine On
#remove index.php from the url
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
#Add www if does not exist
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Offline
Hi Brian, that would be it.
Commenting out these two lines like this should fix it:
#RewriteCond %{THE_REQUEST} ^.*/index.php
#RewriteRule ^(.*)index.php$ /$1 [R=301,L]
Is that code you had added yourself?
Offline
I think is something an SEO company did.
So i'll take out those 2 lines and try it again
thanks so much
Brian
Offline
Hi Brian,
These lines will allow you to keep the behaviour of redirecting index.php to / for all URLs *other* than those in ttg-be:
RewriteEngine On
#remove index.php from the url
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteCond %{THE_REQUEST} !^.*/ttg-be/index.php
RewriteCond %{THE_REQUEST} !^.*/ttg-be/.*/index.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
Offline
Pages: 1