Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Edge Install "Unable to determine connection method on a link!"


GetSirius

Recommended Posts

Hello,

I just installed a fresh copy of " osCommerce Community Edition. Responsive using Bootstrap. " from https://github.com/gburton/osCommerce-234-bootstrap/archive/master.zip as was recommended to me. When I try to access any of the "INFORMATION" links I get the following error message:

Unable to determine connection method on a link!
Known methods: NONSSL SSL

This error also appears to happen if I try to add and item to the cart.

 

This is a non-SSL site and is set as such in the configure.php files, example from admin:

  define('HTTP_SERVER', 'http://www.quiltwithjudy.com');
  define('HTTPS_SERVER', 'http://www.quiltwithjudy.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/admindirectory');
  define('HTTPS_COOKIE_PATH', '/shop/admindirectory');
  define('HTTP_CATALOG_SERVER', 'http://www.quiltwithjudy.com');
  define('HTTPS_CATALOG_SERVER', 'http://www.quiltwithjudy.com');
  define('ENABLE_SSL_CATALOG', 'false');

Here is an example to try:

http://www.quiltwithjudy.com/shop/privacy.php

Can anyone tell me what the problem might be?

Thank you!

Link to comment
Share on other sites

You should post your complete configure.php from the store side which is the relevant one for this issue.

Just leave out the database details at the end of the file.

Link to comment
Share on other sites

<?php
  define('HTTP_SERVER', 'http://www.quiltwithjudy.com');
  define('HTTPS_SERVER', 'http://www.quiltwithjudy.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/');
  define('HTTPS_COOKIE_PATH', '/shop/');
  define('DIR_WS_HTTP_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

  define('DIR_FS_CATALOG', '/home/ekjsyt4f/public_html/shop/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', '---------');
  define('DB_SERVER_PASSWORD', '--------');
  define('DB_DATABASE', '--------');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Chicago');
?>

Link to comment
Share on other sites

It looks all good.

Meanwhile I'll do a test installation of the latest package, which php version are you running?

You executed the installation program on the server and you didn't modify anything?

Link to comment
Share on other sites

Tried installing two times. First time I had changed a few things using the admin section, this install is fresh, nothing at all done to change it.

Installed by uploading .zip file, expanded .zip on server, renamed directory to /shop, went to /shop and followed instructions.

First install was tested using php 5.6 and 7.0.30. Current install using php version 7.0.30

Link to comment
Share on other sites

I have the same error with the last package.

@burt, this seems to be a bug in the last package.

Link to comment
Share on other sites

It's the canonical header tag module:

admin=> modules=>header tags=> Canonical Header Links

swirch it off or remove it or use this one from the before last version:

ht_canonical.php

Link to comment
Share on other sites

in line 60 must be:

          $oscTemplate->addBlock('<link rel="canonical" href="' . tep_href_link($PHP_SELF, '', 'NONSSL', false) . '" />' . PHP_EOL, $this->group);

instead of:

          $oscTemplate->addBlock('<link rel="canonical" href="' . tep_href_link($PHP_SELF, 'NONSSL', false) . '" />' . PHP_EOL, $this->group);

here is the new fixed one:

 

ht_canonical.php

Link to comment
Share on other sites

9 hours ago, GetSirius said:

But not in admin, this file:

/catalog/includes/modules/header_tags/ht_canonical.php

Sorry, I do not understand. Please explain. 

Link to comment
Share on other sites

10 hours ago, raiwa said:

Sorry, I do not understand. Please explain. 

I see I did not fully understand your post below, to simply switch the Canonical Header Links off at admin=> modules=>header tags=> Canonical Header Links

My comment was location of ht_canonical.php, to make the change you offered.

Sorry for any misunderstanding, and a big thank you for helping me! 

21 hours ago, raiwa said:

It's the canonical header tag module:

admin=> modules=>header tags=> Canonical Header Links

swirch it off or remove it or use this one from the before last version:

ht_canonical.php

 

Link to comment
Share on other sites

you have to upload and replace it via ftp or do the code change in your CPanels file editor.

You can't do it in admin.

Use the last version I posted here:

21 hours ago, raiwa said:

in line 60 must be:


          $oscTemplate->addBlock('<link rel="canonical" href="' . tep_href_link($PHP_SELF, '', 'NONSSL', false) . '" />' . PHP_EOL, $this->group);

instead of:


          $oscTemplate->addBlock('<link rel="canonical" href="' . tep_href_link($PHP_SELF, 'NONSSL', false) . '" />' . PHP_EOL, $this->group);

here is the new fixed one:

 

ht_canonical.php

 

Link to comment
Share on other sites

I also recently installed latest EDGE version for some other unrelated testing and had the same issue reported here. I can confirm that the fix above by Rainer works.

cheers

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...