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-08-21 23:04:12

btaylorphoto
Member
Registered: 2015-03-04
Posts: 36

The gallery sent an invalid price option.

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

#2 2015-08-21 23:07:18

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

Re: The gallery sent an invalid price option.

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

#3 2015-08-21 23:12:59

btaylorphoto
Member
Registered: 2015-03-04
Posts: 36

Re: The gallery sent an invalid price option.

Offline

#4 2015-08-21 23:20:44

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

Re: The gallery sent an invalid price option.

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

#5 2015-08-21 23:24:35

btaylorphoto
Member
Registered: 2015-03-04
Posts: 36

Re: The gallery sent an invalid price option.

Ben,
Thanks I'll check in to that.

Brian

Offline

#6 2015-08-21 23:27:26

btaylorphoto
Member
Registered: 2015-03-04
Posts: 36

Re: The gallery sent an invalid price option.

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

#7 2015-08-21 23:37:29

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

Re: The gallery sent an invalid price option.

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

#8 2015-08-21 23:39:16

btaylorphoto
Member
Registered: 2015-03-04
Posts: 36

Re: The gallery sent an invalid price option.

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

#9 2015-08-22 08:08:45

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

Re: The gallery sent an invalid price option.

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

Board footer

Powered by FluxBB