Zen Cart Logo
Forums / General Questions / Unable to determine connection method on a link!

Unable to determine connection method on a link!

Views: 2,172

Results 1 to 14 of 14
25 Feb 2011, 2:39 PM
#1
shalesey avatar

shalesey

New Zenner

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

Unable to determine connection method on a link!

I get the below error every time my customer hits the "index.php?main_page=checkout_process" page. I've recently moved my install from another hosting. Every time the customer checks out they receive the error. No matter which payment module they use.

Error!

Unable to determine connection method on a link!

Known methods: NONSSL SSL

25 Feb 2011, 2:43 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Unable to determine connection method on a link!

Where is you cart?

post like this to prevent it from being indexed to this forum

zen-cart dot com

25 Feb 2011, 2:50 PM
#3
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

www greyheron dot co dot uk

25 Feb 2011, 3:36 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Unable to determine connection method on a link!

Well I tried and did not get the error you posted about
Might be that I am not UK based

25 Feb 2011, 3:42 PM
#5
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

But you didn't place an order. It's right at the end of the order process.

25 Feb 2011, 3:55 PM
#6
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

It's when you hit the "confirm" order button on offline processing.

25 Feb 2011, 8:06 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Unable to determine connection method on a link!

I tried but got the "We are not delivering to your region" message

25 Feb 2011, 11:39 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Unable to determine connection method on a link!

Post your /includes/configure.php file contents, without the database password.
And a list of all the addons you've installed, as well as any customizations you've made related to checkout.

28 Feb 2011, 9:13 AM
#9
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

Removed database passwords and usernames. I have magic zoom, worldpay (currently switched off as I thought that was the issue), google analytics (it was not working before google)and aweber side box.

I'm not sure when the problem started but I think it pretty much coincides with the moving of host.

I moved another site from the same old host to the same new and had no problems but the other site is configured a bit differently.

I thought it might be something to do with the addressing of the site files. The old host was /home/greyhero/ and the new one home2/greyhero/ , so I searched the files using the dev tool looking for greyhero instances. I couldn't find any incorrect.

<?php
/**
 * @package Configuration Settings circa 1.3.9
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * File Built by zc_install on 2011-02-23 09:38:56
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.greyheron.co.uk');
  define('HTTPS_SERVER', 'https://www.greyheron.co.uk');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/catalog/');
  define('DIR_WS_HTTPS_CATALOG', '/catalog/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home2/greyhero/public_html/catalog/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', '');
  define('DB_SERVER_PASSWORD', '');
  define('DB_DATABASE', '');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home2/greyhero/public_html/catalog/cache');

// EOF
28 Feb 2011, 3:13 PM
#11
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

Found these in the database, could it have anything to do with it?

INSERT INTO `whos_online` (`customer_id`, `full_name`, `session_id`, `ip_address`, `time_entry`, `time_last_click`, `last_page_url`, `host_address`, `user_agent`) VALUES
(0, '¥Guest', '46bfd156a6e983565c2dcc1ded728a4f', '81.147.159.163', '1298552070', '1298552070', '/~greyhero/catalog/index.php?main_page=products_all', 'host81-147-159-163.range81-147.btcentralplus.com', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13'),
(0, '¥Guest', 'cc4b2c0aad423a21f499c8812eb63b1f', '81.147.159.163', '1298552000', '1298552000', '/~greyhero/catalog/index.php?main_page=products_new', 'host81-147-159-163.range81-147.btcentralplus.com', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13'),
(0, '¥Guest', '38aef8561c9266073659ca168b21b946', '81.147.159.163', '1298552017', '1298552017', '/~greyhero/catalog/index.php?main_page=products_new', 'host81-147-159-163.range81-147.btcentralplus.com', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13');
28 Feb 2011, 10:53 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Unable to determine connection method on a link!

Those "/~greyhero/catalog/" references suggest that your visitors are surfing on a URL that contains "/~greyhero/catalog/", which would be typical if you had your site set up with a shared SSL certificate and had ENABLE_SSL set to true.

28 Feb 2011, 10:54 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Unable to determine connection method on a link!

Your configure.php file content shows nothing out of the ordinary.

Time to roll up your sleeves and find out all the ways in which your site is different from a brand new clean install: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

1 Mar 2011, 9:34 AM
#14
shalesey avatar

shalesey

New Zenner

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

Re: Unable to determine connection method on a link!

I have no idea what it was but I remember last time I upgraded I messed up my sites customisations because I hadn't used override files correctly. So I moved all the customisation to override files.

So I figured to narrow my search down i'd just re up the entire fileset over the top and if that didn't fix it i'd compare the overrides.

Re upping the entire fileset fixed the issue. Therefore I suspect some of the files became corrupt when I backed up the old site.

Anyway, it's fixed, so happy days.