Order API - php failing

General ShopSite user discussion
Post Reply
clearlighter
Posts: 1
Joined: Fri Nov 03, 2006 1:41 am

Order API - php failing

Post by clearlighter »

Hi,

Pardon my newness to ShopSite Order API. I tried the custom-dump.pl script from the Online help page, and it works. I'm trying to send the Order API to a php program. I set up a test.php as the order API.

But, it gives me an Internal Server Error. And I set the php file to 755 already. FYI this is not a windows server, its unix/freebsd with apache.

There is a 'script.error_log' that has the following:
<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit
<a href="http://php.net/install.windows">the manual page</a>.</p>
Anybody ever see this before? Thanks much.
Regards,
David Didato

Integrated Media for Marketing and Communications
http://www.clearlightpictures.com
http://www.frognet.com
dgray
Posts: 54
Joined: Fri Sep 08, 2006 9:06 am

Post by dgray »

Hi David

I'm using php for the order API under Apache (at pair.com) and was able to do this after reading the excellent post here from Michael Wong. http://support.shopsite.com/forums/view ... ht=php+api

Have you looked at this post?
kirbyglad
Posts: 10
Joined: Mon Dec 07, 2009 2:21 pm
Location: Orem, Utah

A stupid question

Post by kirbyglad »

OK, here is a real stupid question, but when you say the custom-dump.cgi works, how do you know? What is it supposed to do and how can you tell if it is doing it?

The documentation is scanty.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

custom-dump.cgi just spits all of the parameters passed to it to the screen. When you finalize an order you will see everything at the top of the thankyou.cgi screen that shows the receipt.
Post Reply