Forums / Built-in Shipping and Payment Modules / "Go to checkout" button leads to a dead page

"Go to checkout" button leads to a dead page

Locked

Started by owen_fowler on 20 Jan 2009, 5:16 PM · Views: 2,539

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
20 Jan 2009, 5:16 PM
#1
owen_fowler avatar

owen_fowler

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

"Go to checkout" button leads to a dead page

v1.3.8a
New installation

Hello from a needy newbie.

When I add a sample product, indicate I want to buy one, and then click "Go to checkout", I get the "Internet Explorer cannot display the webpage" page.

I have:

  1. installed v1.3.8a
  2. created a custom template
  3. installed a module to accept quick book merchant services payments

I did not check the functionality of the "go to checkout" buttom before I installed the QBMS module.

Thanks!

20 Jan 2009, 5:30 PM
#2
owen_fowler avatar

owen_fowler

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Oh- in addition to what I wrote before, I should mention that I am using a shared hosting service (steadfast.net) and a shared ssl certificate. The checkout URL that is dead is:
"https://pelle.nozonenet.comhttps//wholesale.pelleactivewear.com/catalog/index.php?main_page=checkout_shipping&zenid=eu1q1r1166phqs5jm9gs61mvq2[/url]"

20 Jan 2009, 5:46 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,701
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

https://www.zen-cart.com/tutorials/index.php?article=14

Review the steps for changing your configure files.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 Jan 2009, 4:12 AM
#4
owen_fowler avatar

owen_fowler

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

I still have issues.

The changes you mention were not supposed to be necessary because at installation I chose SSL enabled.

However, I have decided not to use a shared certificate, so I got a cert for my page and a dedicated IP. This means the settings would be different anyway.

I did what the tutorial instructed, but the URL that is entered into the address bar when the "go to checkout" buttom is pressed is all wrong:

"https://wholesale.pelleactivewear.comhttps//wholesale.pelleactivewear.com/catalog/index.php?main_page=checkout_shipping"

You will note there are actually to URLs here smooshed together, and the second is missing a ":". So, if I manually enter the second after adding the ":", I get to checkout, but the styles and graphics are all missing!

Here are what I beleive are the relevant sections of my configure.php files:

include:
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://wholesale.pelleactivewear.com');
define('HTTPS_SERVER', 'https://wholesale.pelleactivewear.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

admin:
define('HTTP_SERVER', 'http://wholesale.pelleactivewear.com');
define('HTTPS_SERVER', 'https://wholesale.pelleactivewear.com');
define('HTTP_CATALOG_SERVER', 'http://wholesale.pelleactivewear.com');
define('HTTPS_CATALOG_SERVER', 'https://wholesale.pelleactivewear.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');

21 Jan 2009, 4:16 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Go to checkout" button leads to a dead page

After the ENABLE_SSL lines, there are some DIR_WS_XXXXX lines such as DIR_WS_CATALOG ... what did you do to those lines?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Jan 2009, 4:40 AM
#6
owen_fowler avatar

owen_fowler

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

I left those alone from install. Here is admin:
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', 'https://wholesale.pelleactivewear.com/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', 'https://wholesale.pelleactivewear.com/catalog/');

Here is includes:
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', 'https://wholesale.pelleactivewear.com/catalog/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

21 Jan 2009, 6:57 AM
#7
owen_fowler avatar

owen_fowler

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Well, enough struggling with this. I did a fresh install since I had not gotten that far anyway and now it works right. Thanks for trying to help!

Best,
Owen

21 Jan 2009, 8:48 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "Go to checkout" button leads to a dead page

If you look at the newly-built configure.php files, you'll see that the working ones don't have a URL on the DIR_WS lines ... only a path.

Following the pattern prevents the errors.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Feb 2009, 5:16 AM
#9
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

I think I have a similar issue...I read a lot, but can't figure it out. Clicking on Go To Checkout has this double link/path-

https://alexandergifts.cahttps//www.alexandergifts.ca/index.php?main_page=checkout

My admin/includes/configure is ```php

define('HTTP_SERVER', 'http://www.alexandergifts.ca');
define('HTTPS_SERVER', 'https://alexandergifts.ca');
define('HTTP_CATALOG_SERVER', 'http://www.alexandergifts.ca');
define('HTTPS_CATALOG_SERVER', 'https://alexandergifts.ca');

define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'true');


and includes/configure is 
```php
define('HTTP_SERVER', 'http://www.alexandergifts.ca');
  define('HTTPS_SERVER', 'https://alexandergifts.ca');

  define('ENABLE_SSL', 'true');

I just installed an SSL cert as per the tutorial and my host's instructions and that went fine...no error messages or anything, full padlock, etc. 1.38a. Any ideas, please?

Cheers,

Robbie

11 Feb 2009, 5:42 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Go to checkout" button leads to a dead page

You need to have these match your secure certificate:

define('HTTP_SERVER', 'http://www.alexandergifts.ca');
define('HTTPS_SERVER', 'https://alexandergifts.ca');

If the certificate is for: alexandergifts.ca

then they need to both match:

define('HTTP_SERVER', 'http://alexandergifts.ca');
define('HTTPS_SERVER', 'https://alexandergifts.ca');

If the certificate is for: https://www.alexandergifts.ca
then they need to both match:

define('HTTP_SERVER', 'http://www.alexandergifts.ca');
define('HTTPS_SERVER', 'https://www.alexandergifts.ca');

I believe you have your certificate for: alexandergifts.ca

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Feb 2009, 5:59 PM
#11
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Okay, I changed those to match (yes, it's without the www) and the problem persists and now the same thing happens when I try to log in to my admin. (And, yes, I changed the Read-Write properties of the configure files before uploading the changed ones.)

  1. Should all other references match (CATALOG_SERVER, HTTPS_ADMIN, etc.)? I tried a few combos, but to no avail.

  2. Yesterday I uploaded an .htacess file to the root directory in order to redirect visitors who type in https://whatever to http://. It was doing the opposite so I deleted it, though that may be the issue since I didn't even see the file on the root after FTPing it. So I made the file blank and uploaded that...and still don't see it.

Thanks a bunch,

Robbie

11 Feb 2009, 7:24 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Go to checkout" button leads to a dead page

Can you post, from the server, without your username and password the two files:
/includes/configure.php
/admin/includes/configure.php

so we can just fix everything in one shot for you? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Feb 2009, 1:30 AM
#13
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Much appreciated. I also replaced the name of my admin folder with xx and did not quote the top parts...@ ******...

includes/configure.

<?php

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://alexandergifts.ca');
  define('HTTPS_SERVER', 'https://alexandergifts.ca');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', 'https://alexandergifts.ca/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/.houston/alexgiftca/www.alexandergifts.ca/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'mysql.alexandergifts.ca');
  define('DB_SERVER_USERNAME', 'xx');
  define('DB_SERVER_PASSWORD', 'xx');
  define('DB_DATABASE', 'xx');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'database'); 
  define('DIR_FS_SQL_CACHE', '/home/.houston/alexgiftca/www.alexandergifts.ca/cache');

// EOF

admin/includes/configure

<?php
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   *
   * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
   */
  define('HTTP_SERVER', 'http://alexandergifts.ca');
  define('HTTPS_SERVER', 'https://alexandergifts.ca');
  define('HTTP_CATALOG_SERVER', 'http://alexandergifts.ca');
  define('HTTPS_CATALOG_SERVER', 'https://alexandergifts.ca');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/xx/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', 'https://alexandergifts.ca/xx/');
  define('DIR_WS_HTTPS_CATALOG', 'https://alexandergifts.ca/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home/.houston/alexgiftca/www.alexandergifts.ca/xx/');
  define('DIR_FS_CATALOG', '/home/.houston/alexgiftca/www.alexandergifts.ca/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'mysql.alexandergifts.ca');
  define('DB_SERVER_USERNAME', 'xx');
  define('DB_SERVER_PASSWORD', 'xx');
  define('DB_DATABASE', 'xx');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'database'); 
  define('DIR_FS_SQL_CACHE', '/home/.houston/alexgiftca/www.alexandergifts.ca/cache');

// EOF

Cheers,

Robbie

12 Feb 2009, 4:31 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Go to checkout" button leads to a dead page

This is incorrect:

define('DIR_WS_HTTPS_CATALOG', 'https://alexandergifts.ca/');

Should read:

define('DIR_WS_HTTPS_CATALOG', '/');

In the admin configure.php ...

This is incorrect:

define('DIR_WS_HTTPS_ADMIN', 'https://alexandergifts.ca/xx/');
define('DIR_WS_HTTPS_CATALOG', 'https://alexandergifts.ca/');

Should be:

define('DIR_WS_HTTPS_ADMIN', '/xx/');
define('DIR_WS_HTTPS_CATALOG', '/');

As to your home directories, those would have to be confirmed by your hosting company or may be listed for you on your Control Panel ...

Try fixing the peices I listed above ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Feb 2009, 5:35 AM
#15
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Thank you and merci beaucoup!!! Now I can sleep well tonight!

The site works and the admin works. Though, if you can spare another moment...

  1. I notice the admin automatically goes to the secure https:... Is that right?

  2. On the site after starting at www.alex..., every click and link goes to http://alex... I guess that's what I had to do because of the SSL cert being for http://alex?

Cheerios,

Robbie

12 Feb 2009, 2:13 PM
#16
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: "Go to checkout" button leads to a dead page

Now today the admin did not switch to the secure. Hm.

12 Feb 2009, 3:21 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Go to checkout" button leads to a dead page

At this time, only the Login is secure on the Admin ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!