Zen Cart Logo
Forums / General Questions / configure.php misconfigured, the site works partially

configure.php misconfigured, the site works partially

Views: 1,059

Results 1 to 5 of 5
18 Feb 2013, 9:45 AM
#1
roekoe avatar

roekoe

New Zenner

Join Date:
Feb 2010
Posts:
38
Plugin Contributions:
0

configure.php misconfigured, the site works partially

Hello,
I’ve a problem which I can’t find a solution for. I my earlier thread I had some issues with a time out session during checkout. I solved this partially, but the result is that i have a configure.php which is in my opinion not configured the right way. When I configure the configure.php like it should, my site fails during checkout with the whooops session timed out error.
The situation:

  • ZC installed in: public_html/store
  • Configured through the admin panel from my hoster to start the site in store. So the webshop starts in the folder “store”. So when you visit the site through https://www.mysite.com, it starts in the folder “store”.

My configure.php is configured like this, which is wrong in my opinion.

define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'https://mysite-com.hostingcompany.com');
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/');

  1. I think de DIR_WS_CATALOG should be a “/” (without the store folder),
    define('DIR_WS_CATALOG', '/');
    because the site already starts in this folder. But when I configure it I get a “whoops session timed out” during the checkout. The site works just fine (without ssl) with 'DIR_WS_CATALOG', '/store/

  2. When I enable my ssl with the dir_ws_catalog configured with the “store” folder I get a blank screen after the payment is done and the customer returns to the shop again. I know what the problems is, because the address bar shows:
    https://mysite-com.hostingcompany.com/store/phppathtothephpfile
    When I remove the store (https://mysite-com.hostingcompany.com/phppathtothephpfile
    )from the path the customer returns to the zc screen that the order has succesfully been placed and paid.

I think when problem 1 is solved, problem 2 will automaticly been solved too.
The installed plugins:

  • zen-lightbox 1.6.4
  • pdf invoice 1.5
  • extra field custome sign on
  • contact info sidebox
  • admin login as customer
  • add more pages sidebox

•What version of Zen Cart are you using?
1.5.1
•Has your site been upgraded? When? From what version(s)?
No, new installation
•If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?)
•What plugins/addons have you installed? When?
see above
•HOW did you install Zen Cart? (upload via FTP and run zc_install, or a one-click install from your hosting company? (one-click installs might mean you don't have enough information about your site/server to make customizations easily))
manual installation
•What version of PHP and MySQL is your server using? (See Admin->Tools->Server Info)
php 5.3.3.7 mysql 5.1.66
•WHEN did the problem "start"? How does that compare with other events of your hosting company, changes you've made to your site files/addons, or your admin settings, etc?
Never been different
•If this is your first store, have you tested all aspects of transactions before going live?
•In what ways is your site customized or different from a brand new uncustomized install?
different template
•If you're encountering display/layout problems, post your site URL* so it can be seen in action.
•If you're encountering problems that could be related to your server or hosting company, include the name of your hosting company (not their URL).
•HAVE YOU LOOKED IN THE FAQ AREA for answers to your question? (ie: a search for your error message or what you want to edit/change, etc)
Yes, similar threads but unfortenately without a solution
•Have you searched the FORUM for your error message or for answers to the question you're asking?
Yes, none found

Regards,
Michael

18 Feb 2013, 2:09 PM
#2
terragirl avatar

terragirl

Zen Follower

Join Date:
Jun 2010
Location:
Austria
Posts:
123
Plugin Contributions:
0

Re: configure.php misconfigured, the site works partially

Based on your configure files, it looks like you're using a Shared SSL. Most Shared SSLs won't work with SEO URLs, so the first step is to ensure that any kind of URL rewriting is disabled.

If you do with to use URL rewriting, you will need a full SSL Certificate from your hosting provider.

18 Feb 2013, 7:13 PM
#3
roekoe avatar

roekoe

New Zenner

Join Date:
Feb 2010
Posts:
38
Plugin Contributions:
0

Re: configure.php misconfigured, the site works partially

Hello,

Ty for your response. My shared ssl certificate address from my hoster is:

https://mysite-com.hostingcompany.com

Which ends in the same folder as my non ssl webshop "store", this is configured by my hoster. When the customer pays with online banking the following blank page appears with ssl enabled:

https://mysite-com.hostingcompany.com/store/ideal_callback.php?trxid=0050001xxxxx9370&ec=ddc4xxxxxd8d02fd795d10a8e1cd2ab0

(ideal is a same method as paypal).

When i remove the folder "store" from the link the customer returns succesfully to the shop.
I think this is strange behavior because of that the https folder is set to "/" in the configure.php like the example in my first thread shows.

I'm not sure what you mean with SEO redirecting. I know what SEO is, but i can't think the link between this error and SEO.

18 Feb 2013, 8:43 PM
#4
terragirl avatar

terragirl

Zen Follower

Join Date:
Jun 2010
Location:
Austria
Posts:
123
Plugin Contributions:
0

Re: configure.php misconfigured, the site works partially

With SEO, I meant URL rewriting for SEO purposes such as rewriting URLs into search engine friendly format.

Session time out basically means the session cookie is having problems. Based on my experience, Shared SSLs and eCommerce sites rarely work together.

First step would be to contact your host to ensure that they have configure you correctly. And they should also be able to sort out the configure file for you as they are familiar with way their shared cert works.

19 Feb 2013, 7:44 PM
#5
roekoe avatar

roekoe

New Zenner

Join Date:
Feb 2010
Posts:
38
Plugin Contributions:
0

Re: configure.php misconfigured, the site works partially

Hello,

I think i have reasonable solution. I've copied the ZC folder "store" in de folder 'store". This creates a separate ssl folder. When i make a payment the customer will return in this folder and can continue or logout. Proberly not the best solution and i know i've to make the installation any plugin twice, but that's fine for now. I'll see how it goes in the future.

TY again for your assistance.