Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default when I click "install" for 2checkout, I get error message

    when i try to install 2checkout payment module
    I get a blank page saying "WARNING: An Error occurred, please refresh the page and try again."
    i tried uploading fresh copy 5 times, cleared browser cache, same probs
    Zen Cart v1.5.1/v1.5.0
    help please!

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: when I click "install" for 2checkout, I get error message

    Quote Originally Posted by maria82g View Post
    when i try to install 2checkout payment module
    I get a blank page saying "WARNING: An Error occurred, please refresh the page and try again."
    i tried uploading fresh copy 5 times, cleared browser cache, same probs
    Zen Cart v1.5.1/v1.5.0
    help please!
    Did you check your /logs folder? You may find a clue there.

  3. #3
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: when I click "install" for 2checkout, I get error message

    this is the log


    "[21-Mar-2014 20:49:37 UTC] PHP Fatal error: 1050:Table '2checkout' already exists :: CREATE TABLE 2checkout (
    `2co_id` int(11) NOT NULL auto_increment,
    `start_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `finish_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `status` varchar(50) collate latin1_general_ci NOT NULL default '',
    `amount` float NOT NULL default '0',
    `2co_order_id` int(11) NOT NULL default '0',
    `session_id` varchar(50) collate latin1_general_ci NOT NULL default '',
    PRIMARY KEY (`2co_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; in /hermes/bosoraweb188/b1526/ipg.mgdezignscom/printables/includes/classes/db/mysql/query_factory.php on line 120
    "

  4. #4
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: when I click "install" for 2checkout, I get error message

    ok got it! deleted the table, was able to install! working now!!
    Note: always check error log!
    Thanks!!!!!!!!!!!1

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: when I click "install" for 2checkout, I get error message

    Quote Originally Posted by maria82g View Post
    ok got it! deleted the table, was able to install! working now!!
    Note: always check error log!
    Thanks!!!!!!!!!!!1
    Yep, the error log is the best thing in ZC since sliced bread - invaluable tool.

  6. #6
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: when I click "install" for 2checkout, I get error message

    sorry to bug you again but now I am not having any error code, in fact after successful purchase (i did 3 test purchase) i see payment in my paypal, i get emails from my zencart and 2co but the orders do not appear in my admin?

  7. #7
    Join Date
    Dec 2014
    Posts
    1
    Plugin Contributions
    0

    Default Re: when I click "install" for 2checkout, I get error message

    Quote Originally Posted by maria82g View Post
    this is the log


    "[21-Mar-2014 20:49:37 UTC] PHP Fatal error: 1050:Table '2checkout' already exists :: CREATE TABLE 2checkout (
    `2co_id` int(11) NOT NULL auto_increment,
    `start_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `finish_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `status` varchar(50) collate latin1_general_ci NOT NULL default '',
    `amount` float NOT NULL default '0',
    `2co_order_id` int(11) NOT NULL default '0',
    `session_id` varchar(50) collate latin1_general_ci NOT NULL default '',
    PRIMARY KEY (`2co_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; in /hermes/bosoraweb188/b1526/ipg.mgdezignscom/printables/includes/classes/db/mysql/query_factory.php on line 120
    "

    Please provide me with details on how you fixed this issue, I'm having the same problem with installing another payment gateway called 'simple pay'. I do not know what table to delete and where to delete it from. Please help, I'm not very good with PHP and coding in general.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: when I click "install" for 2checkout, I get error message

    Quote Originally Posted by deri3 View Post
    Please provide me with details on how you fixed this issue, I'm having the same problem with installing another payment gateway called 'simple pay'. I do not know what table to delete and where to delete it from. Please help, I'm not very good with PHP and coding in general.
    It's VERY DANGEROUS for me to tell you this, because this will DELETE any data already in the table, which means it could delete important history if you've been using the module previously. So, YOU HAVE BEEN WARNED.

    If the error says "Fatal error: 1050:Table '2checkout' already exists " then the tablename is "2checkout", so you would go into phpMyAdmin, find the table named "2checkout" and check the box next to it, and choose "drop" from the menu. Or you could click the "SQL" tab and type "DROP TABLE 2checkout;" and click Go. The table will be instantly gone, WITH NO WAY TO GET ITS DATA BACK.
    Then you can proceed with installing the module again.
    .

    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.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: when I click "install" for 2checkout, I get error message

    Why not in the install "script" just skip that line/section instead of potentially deleting the entire table?

    I don't know if the command to create the table is in a file or pasted into the install sql patches.

    Worst case, if going to go into phpmyadmin and look around, then could see if the table is setup to be equivalent or better than what is necessary.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: when I click "install" for 2checkout, I get error message

    Quote Originally Posted by DrByte View Post
    It's VERY DANGEROUS for me to tell you this, because this will DELETE any data already in the table, which means it could delete important history if you've been using the module previously. So, YOU HAVE BEEN WARNED.

    If the error says "Fatal error: 1050:Table '2checkout' already exists " then the tablename is "2checkout", so you would go into phpMyAdmin, find the table named "2checkout" and check the box next to it, and choose "drop" from the menu. Or you could click the "SQL" tab and type "DROP TABLE 2checkout;" and click Go. The table will be instantly gone, WITH NO WAY TO GET ITS DATA BACK.
    Then you can proceed with installing the module again.
    FWIW, if/when I'm ever in this situation I'll *never* delete the table. I simply rename it. This way, after the install script has done its job without error it is usually a matter of copying the data from the renamed table to the newly created table (assuming that there is data that needs to be recovered).

    This method also avoids the need for MC12345678's suggestion to edit any scripts to 'skip' the line that is trying to insert the duplicate table... AND it allows comparison between the old and new table structures for any differences.
    Just my 2cents worth.

    Cheers
    RodG

 

 

Similar Threads

  1. Replies: 1
    Last Post: 30 Oct 2013, 08:26 PM
  2. Replies: 16
    Last Post: 21 Apr 2010, 07:38 PM
  3. Error when i click on the "Home" Link
    By Natural Tone in forum Installing on a Windows Server
    Replies: 5
    Last Post: 10 Dec 2009, 11:01 PM
  4. click confirm - get an error "cannot open page" main_page=fec_confirmation ???
    By trucurrent in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 2 Jul 2009, 10:05 PM
  5. Database error when click on "Checkout"
    By san_san in forum General Questions
    Replies: 2
    Last Post: 23 May 2006, 06:30 AM

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