Kryptronic Software Support Forum

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.

#1 11-05-2008 11:22:25

gabba1
Member
Registered: 11-05-2008
Posts: 55

Cart shows up in browsers as HTML - after migration to new server!

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:

http://www.etherealview.com/extras/SiteError.jpg

Any insight will be greatly appreciated!

Offline

 

#2 11-05-2008 16:05:09

Quizno
Member
Registered: 06-02-2003
Posts: 447

Re: Cart shows up in browsers as HTML - after migration to new server!

This url does not work:

Code:

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:

Code:

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

 

#3 11-05-2008 16:52:48

bbac
Member
From: Bristol, UK
Registered: 08-25-2008
Posts: 141

Re: Cart shows up in browsers as HTML - after migration to new server!

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:

Code:

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

Code:

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)?:

Code:

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

 

#4 11-05-2008 16:55:51

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Cart shows up in browsers as HTML - after migration to new server!

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.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#5 11-05-2008 18:05:24

gabba1
Member
Registered: 11-05-2008
Posts: 55

Re: Cart shows up in browsers as HTML - after migration to new server!

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

 

#6 11-05-2008 18:50:20

Quizno
Member
Registered: 06-02-2003
Posts: 447

Re: Cart shows up in browsers as HTML - after migration to new server!

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

 

Board footer