close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

checkout.php is missing... but it's not!

Thread began 12/20/2011 10:40 am by mrs | Last modified 1/05/2012 7:18 pm by mrs | 1403 views | 8 replies |

mrs

checkout.php is missing... but it's not!

Hi, I have just uploaded the site to a testing server for my client to approve, and during the process of testing checkout, I am getting a an error:

Not Found
The requested URL /checkout.php was not found on this server.

It's because the remote URL is changing from http:// to https:// however, it's not changing on the localhost.

What do I do to ensure this works properly? Do I have the ability to stop it going to a https path?

Thanks

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

to stop it from redirecting to the https server, edit the webassist/plugins/shopping_cart/checkout_form.php file, change lines 7 - 19:

php:
if (empty($_SERVER['HTTPS'])) {

  $testRedirect = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
  $c = curl_init();
  curl_setopt($c, CURLOPT_URL, $testRedirect);
  curl_setopt($c, CURLOPT_TIMEOUT, 90);
  curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 1);
  curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 1);
  $result = curl_exec($c);
  if ($result)  {
      header("location: ".$testRedirect);
      die();
  }
}



to:

php:
/*if (empty($_SERVER['HTTPS'])) {

  $testRedirect = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
  $c = curl_init();
  curl_setopt($c, CURLOPT_URL, $testRedirect);
  curl_setopt($c, CURLOPT_TIMEOUT, 90);
  curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 1);
  curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 1);
  $result = curl_exec($c);
  if ($result)  {
      header("location: ".$testRedirect);
      die();
  }
}*/
Sign in to reply to this post

mrs

Thank you Jason. That's worked a treat.

What are the consequences of not going through https? I am assuming I have to buy a SSL certificate with my hosts to ensure that the https works properly.

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

not using HTTPS means that checkout information is passed to the payment gateway insecurely.

If you are using one of the local checkout methods, meaning that the customer enters their credit card number on the checkout page of your site, it can pose a security risk.

if you are using one of the local checkout methods, you should have an ssl certificate installed.

Sign in to reply to this post

mrs

I am about to create an SSL package on my web server, and it's asking me to create a folder where all the secure files need to go. Although I have currently disabled it, I need SSL as this is going to be a busy site for a reputable and long established company.

The way PowerStore is set up means that I will be moving files from the top level of the domain to a sub-level. Is this going to break links to files and includes etc? I suspect it is, so how do I get around this issue?

Can I just move the files in DW's site panel and it will update links? If so, which files do I need to move into the SSL related folder?

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

no links should need to be changed.


the https address:
yoursite.com

will point to the new secure folder and the http address:
yoursite.com

will point to the files in the original location

Sign in to reply to this post

mrs

Sorry Jason, I'm not sure I understand that.

Are you saying that all I need to do is upload the site as normal to my http: directory, and I then simply need to upload certain pages to the https: folder (that I'll call 'securefiles') which as far as the web address bar is concerned, remains invisible?

Or, are you saying upload as normal to my http: directory, and the server deals with the https: request even though the pages that need to be secured don't actually sit in the folder 'securefiles'?

I am being asked to create a secured folder on my domain, then add required files to it. I assumed that I drop the required files here, but don't know what happens from there. Does the secured directory effectively become invisible as far as the web address bar is concerned? Is the only true evidence of a secured directory being present shown by the 's' in the https: regardless of the secured directory name?

If I have to place files in to the securefiles folder, which ones need to go in it. I assume that checkout.php is one, but are there any others?

Sorry for my ignorance, I have never had to set up https before. I have always redirected to the payment gateway rather than stay on the domain.

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

upload all the files to your site as per ussual, then upload them again into the secure folder. No links need to be changed, the server will send the correct page to the browser based on the url in the address bar using http or https

Sign in to reply to this post

mrs

Oh OK, I see. So, if I make a change to any file, I need to upload it twice meaning DW's put doesn't fully work. Never mind!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...