You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Hey folks, our site has been hosted by a new company and they transferred the site over to their servers a few days ago. Now all of our shopping cart shows up as HTML code instead of how it used to appear. Any ideas on what they screwed up on, and how I fix it?
Here's how it looks:
Any insight will be greatly appreciated!
Offline
This url does not work:
http://64.111.26.45/cgi-bin/cp-app.cgi?usr=51F6625004&rnd=3515622&rrc=N&affl=&cip=&act=&aff=&pg=cat&ref=portringscat
But when I remove the number after "user=", it works:
http://64.111.26.45/cgi-bin/cp-app.cgi?usr=&rnd=3515622&rrc=N&affl=&cip=&act=&aff=&pg=cat&ref=portringscat
I don't know what that means, but hopefully it is a clue.
Last edited by Quizno (11-05-2008 16:07:36)
Offline
Your headers are wrong, in particular one set by dbi:mysql needs a newline at the end of it.
http://www.rockenwraps.com/cgi-bin/cp-a … ueensryche
gives the following header:
Date: Wed, 05 Nov 2008 21:37:01 GMT Server: Apache dbi: mysql(RaiseError=>1):host=mysql1.digipark.com;database=rockenw_ccp51Content-Type: text/html; charset=ISO-8859-1 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain 200 OK
The "Content-Type" seems to be added to the end of the dbi message. Therefore the "text/html" is missed and your webserver seems to stick a "text/plain" content type on it as a last resort. Maybe this is what has changed.
Using Quizno's fix works because it is the cookie header that is joined to the dbi message
Date: Wed, 05 Nov 2008 21:42:56 GMT Server: Apache dbi: mysql(RaiseError=>1):host=mysql1.digipark.com;database=rockenw_ccp51Set-Cookie: usr=51F7932891%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7Cnnn.nnn.nnn.nnn%7C%7C%7C; domain=.rockenwraps.com; path=/ccp51/cgi-bin; expires=Thu, 05-Nov-2009 21:42:56 GMT Keep-Alive: timeout=15, max=98 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1 200 OK
I don't know CCP51 but is there code similar to this (cut-n-paste from a google search)?:
use DBI; my $dbh = DBI->connect ( "dbi:mysql:host=localhost;port=3306", 'root', 'flowers', {RaiseError => 1, PrintError => 0});
If so you could try looking at how the dbi message is sent to the headers and stick a newline on the end of the error message.
Last edited by bbac (11-05-2008 16:59:19)
Offline
Check your cookie settings in the CCP admin. I can confirm the observation about the usr variable and that variable is used to retrieve the user cookie, so I'm thinking maybe your cookie settings are still on your domain name from the old site, right? But you're working under IP now since the DNS is not switched over yet? Just a hunch... have a look at the cookie settings and see if that fixes the problem. If not, maybe you just need to get the DNS switched over and get it live.
Offline
rachaelseven wrote:
Check your cookie settings in the CCP admin. I can confirm the observation about the usr variable and that variable is used to retrieve the user cookie, so I'm thinking maybe your cookie settings are still on your domain name from the old site, right? But you're working under IP now since the DNS is not switched over yet? Just a hunch... have a look at the cookie settings and see if that fixes the problem. If not, maybe you just need to get the DNS switched over and get it live.
Thanks folks...
I get the same type of response when I try to login to the CCP Admin as well. I can get into the server through FTP, however. Is the a way I can open a particular file, fix it, and re-save it back to the server? Because that is my only way in. Or, do I have to totally re-install the CCP software and re-build the entire cart?
Thanks.
Offline
I haven't run 5.1 for a while, but...
Under data/tables find settings.csv. The cookie domain setting and cookie path setting are found there.
Offline
Pages: 1