Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    In you Tools ... Server Info ... you should see something like:
    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8
    v1.3.8 [2009-07-21 10:35:09] (Fresh Installation)
    v1.3.8 [2009-07-21 10:35:09] (Fresh Installation)
    What do you see?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    Hi thanks for your help with this!

    Zen Cart 1.3.8a

    Patch: 1::

    Database Patch Level: 1.3.8

    v1.3.8 [2009-06-29 19:27:17] (Version Update 1.3.7->1.3.8)
    v1.3.7 [2009-06-29 19:27:11] (Version Update 1.3.6->1.3.7)
    v1.3.6 [2009-06-29 19:27:00] (Version Update 1.3.5->1.3.6)
    v1.3.5 [2006-09-16 20:18:05] (Fresh Installation)

    Any further help much appreciated!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    When you fixed your files from the Hacker issues ... are you sure you didn't down grade any of the files on your site?

    For example, if you go to Tools ... Developers Tool Kit ... and in the bottom input box put:
    zen_order_id

    then search on the Catalog/Admin ... what comes up?

    And on the files listed, what do their version ID lines at the top of those files, on the server, read?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    I have no recolection of doing such a thing... Here are my results...

    catalog/admin/includes/languages/english/paypal.php
    Line #29 : define('TEXT_SORT_ZEN_ORDER_ID_DESC', 'Order ID (high - low), PayPal Order Received');

    Line #30 : define('TEXT_SORT_ZEN_ORDER_ID', 'Order ID (low - high), PayPal Order Received');

    catalog/admin/paypal.php
    Line #14 : array('id' => '2', 'text' => TEXT_SORT_ZEN_ORDER_ID_DESC),

    Line #15 : array('id' => '3', 'text'=> TEXT_SORT_ZEN_ORDER_ID),

    catalog/includes/modules/payment/linkpoint_api.php
    Line #531 : if ($sniffer->field_exists(TABLE_LINKPOINT_API, 'zen_order_id')) $db->Execute("ALTER TABLE " . TABLE_LINKPOINT_API . " CHANGE COLUMN zen_order_id order_id int(11) NOT NULL default '0'");

    Line #601 : if ($sniffer->field_exists(TABLE_LINKPOINT_API, 'zen_order_id')) $db->Execute("ALTER TABLE " . TABLE_LINKPOINT_API . " CHANGE COLUMN zen_order_id order_id int(11) NOT NULL default '0'");

    catalog/includes/modules/payment/paypal.php
    Line #449 : if ($sniffer->field_exists(TABLE_PAYPAL, 'zen_order_id')) $db->Execute("ALTER TABLE " . TABLE_PAYPAL . " CHANGE COLUMN zen_order_id order_id int(11) NOT NULL default '0'");

    Line #626 : $db->Execute("ALTER TABLE " . TABLE_PAYPAL . " CHANGE zen_order_id order_id int(11) NOT NULL default '0'");

    catalog/includes/modules/payment/paypaldp.php

    Line #1631 : $db->Execute("ALTER TABLE " . TABLE_PAYPAL . " CHANGE zen_order_id order_id int(11) NOT NULL default '0'");

    catalog/includes/modules/payment/paypalwpp.php
    Line #2952 : $db->Execute("ALTER TABLE " . TABLE_PAYPAL . " CHANGE zen_order_id order_id int(11) NOT NULL default '0'");
    catalog/includes/modules/payment/securehosting.php
    Line #145 : $sql = "select * from " . TABLE_PAYPAL . " where zen_order_id = '" . $zf_order_id . "' LIMIT 1";

    Line #155 : $sql = "INSERT INTO " . TABLE_PAYPAL . " (zen_order_id,txn_id,payment_date,payer_id,reason_code) VALUES ('".$insert_id."','".$_GET['transactionreference']."','".$_GET['transactiondate']." ".$_GET['transactiontime']."','".$_GET['cv2avsresult']."','Success')";
    doh.... i hope this means something to you!!

    tHANKS!
    Last edited by dctarbuck; 19 Aug 2009 at 07:53 AM.

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    Your file:
    catalog/includes/modules/payment/securehosting.php

    looks to be using older commands for the old structure to the database table:
    paypal

    If you look, in phpMyAdmin, at the table structure for:
    paypal

    you will see the field zen_order_id has been changed to the new field name:
    order_id

    You need to fix your payment module:
    catalog/includes/modules/payment/securehosting.php

    to use the new field name ...
    order_id

    where you see the references to the old field name:
    zen_order_id
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #16
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    Ok Thankyou i will try that later!

  7. #17
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    Ajeh, you are a complete legend!! That worked perfedtly and now its all up and running....



    Thanks Very very very very much


    Dan

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Please Help SQL error ... Repair in process after Hack! NO

    Sorry it took a bit to work this out, but I had to know more about what was really wrong before telling you a solution to this or risk breaking other things ...

    Thanks for the update that this is now working once you updated your Payment Module ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 SQL Error Please help!
    By manu_sag in forum General Questions
    Replies: 1
    Last Post: 1 Apr 2012, 09:48 AM
  2. Payment process error, help please
    By anikin in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2011, 03:21 PM
  3. SQL Error Help Please
    By jmp04 in forum General Questions
    Replies: 5
    Last Post: 30 Jan 2011, 07:20 PM
  4. Sessions - errors - after SQL query - please help
    By JohneeMac in forum General Questions
    Replies: 1
    Last Post: 23 Sep 2006, 02:25 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