Author Topic: Can't register users, view images or checkout with SSL  (Read 8738 times)

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Can't register users, view images or checkout with SSL
« on: August 28, 2008, 20:33:59 pm »
When SSL is used, I can't register users.  When it's not used, I can register successfully, but their billing info is not saved, so when you click on "Checkout" in the cart, you are redirected to the billing info entry page, which even after re-entering this data, it's still not stored and the problem repeats.

Also, the secure URL is not appearing either in the user account area or in the checkout process, as it should.

When going through checkout using a user who's billing data was entered in the store admin area instead of the front-end, you can successfully hit the "Checkout" button, and select the billing address, but then when you hit Next to go to the Shipping Method page, you are redirected to the store front instead.

Site: http://www.thecaptainscoffee.com/
Joomla! 1.5.6
VirtueMart 1.1.2

Using a Network Solutions hosting plan and their shared SSL Certificate (until we get our own certificate).  I've checked the secure URL info from Network Solutions, and it's correct in VM: [https://secure.[hostnamehere].com/www.thecaptainscoffee.com/]
Network Solutions says that you have to place all of your secure files inside the /htdocs folder, so I've placed the entire Joomla/VM installation inside /htdocs.  I would think that this would let me move in and out of SSL usage easily, but so far SSL is dead in the water.

If I make VirtueMart's secure URL the regular http (non-secure) URL of the regular site, checkout goes smoothly.  So, the problem MUST be with SSL.  Network Solutions was unable to help me because they don't make VirtueMart.

Any help will save my bacon.

Joseph
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5

Soeren

  • Administrator
  • Sr. Member
  • *
  • Posts: 3106
  • VirtueMart Starter
    • virtuemart.net
Re: Can't register users, view images or checkout with SSL
« Reply #1 on: September 01, 2008, 13:46:07 pm »
Hi,
using SSL with Joomla! in an environment where you have a separate folder for https documents is complicated, because Joomla!+VirtueMart are loaded through a central index.php file. In the earlier days on the internet, where sites consited of separate HTML files, you could simply place the files, which should be available via https only in a separate folder, but with Joomla! it's not possible. You will have to copy your complete Joomla! installation into the https directory...
I hope that webhosts understand that running a joomla! installation with SSL and a separate https directory is not the "modern" way to handle this.

ciao, sören
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Re: Can't register users, view images or checkout with SSL
« Reply #2 on: September 01, 2008, 16:26:27 pm »
Hey, thanks for the reply, Soeren.  I must not have communicated clearly in my original post, what with the fact that I was freaking out when I wrote it!  LOL  The Joomla! and VirtueMart installations are already installed inside the secure folder on the host server.  The "/htdocs" folder that I mentioned is the one that Network Solutions (my hosting provider) designates as able to use SSL.  So, since the entire site is already installed in the secure-able folder, I would think that all I'd have to do is enter the secure URL in VirtueMart and be done, but it's not working, as the previous post points out.

Here's another thing: the tech support people at Network Solutions, through whom we're using a shared SSL connection, said that any absolute URLs within the secure pages will kill the SSL connection.  So, every image, link, etc. has to be a relative URL to use the SSL connection.  Does anybody know if the cart and user account pages have any absolute URL's in them?  I don't even know where to look to find out!  If somebody could tell me where to look to find out, that would be great!

Any other ideas?

Joseph
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Re: Can't register users, view images or checkout with SSL
« Reply #3 on: September 02, 2008, 04:30:36 am »
Again, for the sake of clarity, the /htdocs folder of my site IS the secure folder for the site, and it's where the site's files would go whether or not they were to be secured.

When SSL is engaged in VM, every time a browser tries to access a secured section of the site, they are instead redirected to a blank page with a non-secure URL, and from then on, that person can't browse any of the site's pages until they log out of VM.
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Re: Can't register users, view images or checkout with SSL
« Reply #4 on: September 02, 2008, 04:32:21 am »
I just found somebody else with a similar, but slightly different problem, so I'm going to link the two topics for future reference.

http://forum.virtuemart.net/index.php?topic=45234.0
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5

arana

  • Jr. Member
  • **
  • Posts: 89
Re: Can't register users, view images or checkout with SSL
« Reply #5 on: September 03, 2008, 01:38:48 am »
in my case i just crated a symlink in my private_html pointing to my public_html and all is good (no need to have 2 copies)

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Re: Can't register users, view images or checkout with SSL
« Reply #6 on: September 03, 2008, 05:26:43 am »
What's a symlink?
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5

arana

  • Jr. Member
  • **
  • Posts: 89
Re: Can't register users, view images or checkout with SSL
« Reply #7 on: September 04, 2008, 00:49:54 am »
a symbolic link, i dont know if your provider will allow it, but it basically consists of removing your htdocs directory, and crating a suymbolic link named htdocs that will actually point to your unsecure directory, that way if you use https you use your certificate but the content is the same, then you let VM decide when to go secure (admin and checkout for example)

without having to keep 2 copies of the pages

teratyke

  • Beginner
  • *
  • Posts: 2
Re: Can't register users, view images or checkout with SSL
« Reply #8 on: October 01, 2008, 17:34:08 pm »
Not sure if this is related, but it may help you. I had an error where users were redirected to the frontpage after registering (and registration didn't take place).
In the virtuemart settings I had a different URL entered in the secure url field - for my configuration it should have been the same as I am not using SSL. I'd missed the www. off. However, the fault was being caused by a redirect in my .htaccess file. Whenever virtuemart tried to redirect to the secure url page .htaccess directed the user elsewhere.

I don't think this is the case for you, but I though I would post here as my fault led me to this thread, and it could help someone out in the future...
Rob

trendsettingdesign

  • Jr. Member
  • **
  • Posts: 59
    • The Captain's Coffee
Re: Can't register users, view images or checkout with SSL
« Reply #9 on: October 01, 2008, 18:09:25 pm »
Thanks for the reply.  It seems like I've now fixed it, though not on purpose!  When my customer got a dedicated SSL Certificate, and we installed it, this issue was solved.  Perhaps VirtueMart can't deal with shared SSL URLs.
Joomla! 1.5.6
VirtueMart 1.1.2
PHP 5