Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Upgrading from 1.2 to 1.3.x / Fatal Error after Upgrade

Fatal Error after Upgrade

Locked

Started by portman on 22 Jun 2006, 6:38 PM · Views: 4,201

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Jun 2006, 6:38 PM
#1
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Fatal Error after Upgrade

DrByte:

(it's usually better to start "new problem" posts as new topics)

  1. Open Admin->Tools->Developers Toolkit
  2. Do a search (using bottom input field, and choosing ALL files from the dropdown) for http_client
  3. What does it tell you?

Problem:

PortMan:

I'm testing the upgrade. Now when I go to checkout, I get the following error:

Fatal error: Cannot redeclare class httpclient in /home/public_html/includes/classes/http_client.php on line 22

I did copy all the files in the patch set to the server and even recopied them.

Here is the output:

/home/public_html/includes/classes/http_client.php

Line #6 : * @copyright Portions Copyright 2001 Leo West <[email protected]> Net_HTTP_Client v0.6

Line #9 : * @version $Id: http_client.php 3047 2006-02-16 21:53:56Z wilt $

/home/public_html/includes/extra_datafiles/music_type_database_names.php

Line #6 : * @copyright Portions Copyright 2001 Leo West <[email protected]> Net_HTTP_Client v0.6

/home/public_html/includes/functions/functions_general.php

Line #747 : } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {

Line #748 : $ip = $_SERVER['HTTP_CLIENT_IP'];

Line #755 : } elseif (getenv('HTTP_CLIENT_IP')) {

Line #756 : $ip = getenv('HTTP_CLIENT_IP');

/home/public_html/includes/modules/pages/checkout_shipping/header_php.php

Line #10 : require(DIR_WS_CLASSES . 'http_client.php');

/home/public_html/includes/modules/pages/checkout_shipping/header_php_1.3.0.1.php

Line #10 : require(DIR_WS_CLASSES . 'http_client.php');

/home/public_html/includes/modules/pages/gv_send/header_php.php

Line #17 : require('includes/classes/http_client.php');

/home/public_html/includes/modules/shipping_estimator.php

Line #41 : require('includes/classes/http_client.php'); // shipping in basket

22 Jun 2006, 9:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal Error after Upgrade

If you open Admin->Configuration->Shipping/Packaging
and select "Shipping Estimator Display Settings for Shopping Cart"
and set it to 0 or 1, the error should go away.

At least, this may be a workaround for the time being.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jun 2006, 9:53 PM
#3
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Re: Fatal Error after Upgrade

It was set to 0 and I changed it to 1, but same error.

22 Jun 2006, 10:47 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal Error after Upgrade

/home/public_html/includes/modules/pages/checkout_shipping/header_php.php
/home/public_html/includes/modules/pages/checkout_shipping/header_php_1.3.0.1.php

You quoted 2 files ... one of them looks like an old version?
Can you rename the 1301 version to something else like old_header_php.hide
Nothing should be loading it, but it seems odd that the only place calling via checkout it is there...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Feb 2008, 7:46 AM
#5
mat123slade avatar

mat123slade

Zen Follower

Join Date:
Nov 2005
Location:
France - Limoges
Posts:
90
Plugin Contributions:
0

Re: Fatal Error after Upgrade

Thanks for the info. This helped me solving a problem I had when I installed the modules Stock by Attributes... I didn't understand why I didn't do any sales yesterday as I did not check my website after installing the module on my live shop... That was a crazy move I admit it.