Zen Cart Logo
Forums / General Questions / Enabling SSL Issues Yes I followed the Tutorial

Enabling SSL Issues Yes I followed the Tutorial

Locked

Views: 1,498

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
14 Oct 2008, 11:32 AM
#1
dadsattic avatar

dadsattic

New Zenner

Join Date:
Oct 2008
Posts:
5
Plugin Contributions:
0

Enabling SSL Issues Yes I followed the Tutorial

I am having issues with enabling SSL with Zen. I started a different post but there is another person on this thread that is having the same identical problem.

I followed the tutorial to a "T" here are my lines of code pasted from both files that I changed. Can't even log into store admin now;

admin/includes/configure.php

* 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', 'https://cesavings.com');

  define('HTTPS_SERVER', 'https://cesavings.com');

  define('HTTP_CATALOG_SERVER', 'https://cesavings.com');

  define('HTTPS_CATALOG_SERVER', 'https://cesavings.com');



  // secure webserver for catalog module and/or admin areas?

  define('ENABLE_SSL_CATALOG', 'true');

  define('ENABLE_SSL_ADMIN', 'true');

includes/configure.php

define('HTTP_SERVER', 'http://cesavings.com');

define('HTTPS_SERVER', 'https://cesavings.com');



// Use secure webserver for checkout procedure?

define('ENABLE_SSL', 'true');

Set file permissions on the server to 644 (rw-r--r--) uploaded both changed them back to 444 (r--r--r--).

Can't get to admin page gives me the following error;

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/c/e/s/cesavings/html/store/admin/includes/configure.php:183) in /home/content/c/e/s/cesavings/html/store/includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/c/e/s/cesavings/html/store/admin/includes/configure.php:183) in /home/content/c/e/s/cesavings/html/store/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/content/c/e/s/cesavings/html/store/admin/includes/configure.php:183) in /home/content/c/e/s/cesavings/html/store/admin/includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/content/c/e/s/cesavings/html/store/admin/includes/configure.php:183) in /home/content/c/e/s/cesavings/html/store/admin/includes/functions/general.php on line 21

In the store when you click add an item to the cart it goes to a blank white page with the session id appended to the URL.

I am using Dreamweaver to edit the PHP file. I have used both Dreamweaver and FileZilla to download and upload files to the server. I have a Premium Hosting plan with GoDaddy. You can reach my site via http://cesavings.com and https://cesavings.com. This is my second install of zen cart because of this problem.

I have emptied my cache, tried on three different computers and both Firefox and IE. :frusty:

Thank you in advance for any help.

Dennis

14 Oct 2008, 1:11 PM
#2
dadsattic avatar

dadsattic

New Zenner

Join Date:
Oct 2008
Posts:
5
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

OMG!:clap::clap::clap::clap::clap:

I figured it out!!! I think I read some place that some of the most common errors for PHP beginners are extra spaces, lines etc.

Some how two extra lines got added after the final ?>, maybe it is something Dreamweaver does because I did not add them there. Both files had those two extra lines at the end. Once I deleted the extra lines voila! I am so used to the HTML mentality that I didn't think to check for "extra" anything.

Thanks!:clap:

14 Oct 2008, 3:27 PM
#3
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

Dreamweaver is notorious for doing that - I would suggest a plain text editor for making changes to the php files.

7 Nov 2008, 12:50 AM
#4
mateogp avatar

mateogp

New Zenner

Join Date:
Sep 2007
Location:
Frankfort, Illinois, United States
Posts:
21
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

:frusty:I second this. I just spent hours trying to figure out why this was happening. I ended up going into the orginial ZIP File and reworking dist-configure.php to match my settings, uploaded and everything is good.

I think I just got an ulcer from hours this trouble shooting

I learned an important lesson today:
DONT USE ANYTHING BUT NOTEPAD TO EDIT PHP!!!!!

9 Nov 2008, 6:13 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Enabling SSL Issues Yes I followed the Tutorial

Thanks for the update that you got this working ... :smile:

However, be aware that there are numerous TEXT editors available that can work with the code files, it is just important that you are using a valid TEXT editor and not a word processor or something that will add extra characters and other messies to the code ...

php is kinda fussy like that ... :blink:

2 Dec 2008, 3:19 AM
#6
beyoyo2 avatar

beyoyo2

New Zenner

Join Date:
Jan 2008
Posts:
16
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

OMG... same thing! I removed the extra 2 lines at the end of both configure.php files... and MAGIC! It works!!!!! Maybe this should be part of the tutorial! >_<

2 Dec 2008, 5:23 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Enabling SSL Issues Yes I followed the Tutorial

If one were to go to the Tutorials/FAQs and enter a part of the error message such as:
headers already sent by

one would find references to these nasty little space(s) and blank line(s) that php hates when they appear after the closing php tag ?> at the end of the files listed in the error message ...

The error message looks nastier than it really is ... :smile:

2 Dec 2008, 1:59 PM
#8
bwallwy avatar

bwallwy

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

I am sorry if I have posted this in the wrong place. I am fairly new to this and appreciate any help at all.

I am attempting to enable SSL on my site.

I first tried to access my page using the link my host gave me but whenever i do it brings me to the "Hello. Thank you for loading Zen Cart™." setup page.

it is porbably something simple i have missed. Any ideas?

2 Dec 2008, 3:14 PM
#9
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Enabling SSL Issues Yes I followed the Tutorial

Your URL?