Results 1 to 5 of 5
  1. #1
    Join Date
    May 2010
    Location
    virginia,usa
    Posts
    3
    Plugin Contributions
    0

    cart error shipping module error: Cannot redeclare class authorizenet

    I'm using zencart 1.3.8(patched) hosted on siteground
    when i try to install Paypal i only see the following

    Cannot redeclare class authorizenet in /home/fivesist/public_html/includes/modules/payment/authorizenet.php on line 589

    i have not installed any payment modules and have tried a clean install but i still can't install Paypal

    any guidence would be a great help

  2. #2
    Join Date
    Jan 2004
    Posts
    66,449
    Plugin Contributions
    81

    Default Re: shipping module error: Cannot redeclare class authorizenet

    Sounds like you've got the wrong authorizenet.php file loaded in your /includes/languages/english/modules/payment folder. It should only have a bunch of define() statements in it, and should NOT have a class declaration in it.

    Go to Admin->Tools->Developers Toolkit
    Scroll down to the last section at the bottom of the page, and enter "authorizenet" (without the quotes) and choose "All Files" from the pulldown, and click the search button.
    Then report the results.

    references:
    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39
    .

    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.

  3. #3
    Join Date
    May 2010
    Location
    virginia,usa
    Posts
    3
    Plugin Contributions
    0

    Default Re: shipping module error: Cannot redeclare class authorizenet

    thanks for the reply
    i'm a newby tring to learn zen and php so i'm not quite sure what i'm looking for here are the results of the search,i see a reference to authurize net being in test mode but i have not installed any payment modules????? it found 47 pages , too large to attatch but i attached the files i think contain the problems??
    Attached Images Attached Images

  4. #4
    Join Date
    Jan 2004
    Posts
    66,449
    Plugin Contributions
    81

    Default Re: shipping module error: Cannot redeclare class authorizenet

    It seems you've copied files into the wrong folders for some unexplained reason.
    You need to re-upload your /includes/languages/english/modules/payment/authorizenet.php file.
    .

    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.

  5. #5
    Join Date
    May 2010
    Location
    virginia,usa
    Posts
    3
    Plugin Contributions
    0

    Default Re: shipping module error: Cannot redeclare class authorizenet

    Many THANKS I don't know how the files got screwed up but replacing the files in that location with files from my original download seems to have let me configure the payment module.
    testing now begins!!!

    Again Many Thanks

 

 

Similar Threads

  1. v151 Shipping Estimator Sidebox PHP Fatal error: Cannot redeclare class order on 1.5.1
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Apr 2014, 08:29 AM
  2. v151 Fatal error Cannot redeclare class
    By sasha21 in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2013, 03:21 AM
  3. Fatal error: Cannot redeclare class soapclient
    By srw134 in forum Addon Payment Modules
    Replies: 4
    Last Post: 1 Jun 2009, 06:54 PM
  4. shipping module issue: "Cannot redeclare class" ...
    By nakulien in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 26 May 2008, 07:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg