Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    11
    Plugin Contributions
    0

    Default 1054 Unknown column 'zen_order_id' in 'where clause'

    I know this has been discussed...

    This is the problem im having

    1054 Unknown column 'zen_order_id' in 'where clause'
    in:
    [select * from zen_paypal where zen_order_id = 5 AND parent_txn_id = '' ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8

    PayPal Website Payments Pro (v1.3.8a)

    PayPal Express Checkout (v0.1b)

    PayPal IPN (Basic PayPal service)

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'zen_order_id' in 'where clause'

    First, you don't need all three PayPal modules installed, turn off the PayPal Standard (IPN)

    Next scroll down the page to the Similar Threads section . There should be a solution in one of them.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Feb 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'zen_order_id' in 'where clause'

    but the zen cart version is good, i went through all the similar posts just having trouble locating the solution, would you be able to help me...

    Quote Originally Posted by Kim View Post
    First, you don't need all three PayPal modules installed, turn off the PayPal Standard (IPN)

    Next scroll down the page to the Similar Threads section . There should be a solution in one of them.

  4. #4
    Join Date
    Feb 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'zen_order_id' in 'where clause'

    this fix worked...

    ALTER TABLE paypal CHANGE order_id zen_order_id int(11) unsigned NOT NULL default '0';

  5. #5
    Join Date
    Feb 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'zen_order_id' in 'where clause'

    the only problem im getting now is that it goes back to the original name...

    after i do this...it works then somehow it changes back...and i gotta run the SQL again...

    ALTER TABLE paypal CHANGE order_id zen_order_id int(11) unsigned NOT NULL default '0';

  6. #6
    Join Date
    Feb 2010
    Posts
    11
    Plugin Contributions
    0

    Default paypal fix

    well i run this query in SQL Patches...

    ALTER TABLE paypal CHANGE order_id zen_order_id int(11) unsigned NOT NULL default '0';

    but it seems to go back to what it was before....

    anyway to make it permenant...

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

    Default Re: 1054 Unknown column 'zen_order_id' in 'where clause'

    The PHP files and the database work together. But if you change one without changing the other, you are likely to run into problems ... as demonstrated in your discussion.

    In v1.3.8a, the field name is supposed to be order_id.
    In v1.3.7 and older, it was zen_order_id.

    So, the error you're getting proves that you're using some PHP files from v1.3.7 or older to run your site, but you've got a v1.3.8a database.
    And the reset that's undoing your "fix" is happening as a result of *some* of your PHP files correctly being 1.3.8a files.

    What you're reporting is a common occurrence for someone who has attempted an upgrade but missed one or more files, or someone who has attempted to install old patches to a newer version, or someone who has installed old addons to a newer version for which they are not compatible.

    They way to "make it permanent" is to fix your mismatched PHP files as they exist on your server.
    .

    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.

 

 

Similar Threads

  1. 1054 Unknown column 'zen_order_id' in 'where clause'
    By mtrantas in forum Built-in Shipping and Payment Modules
    Replies: 21
    Last Post: 19 Apr 2009, 02:18 PM
  2. 1054 Unknown column 'zen_order_id' in 'where clause'
    By Lyon in forum General Questions
    Replies: 1
    Last Post: 17 Feb 2009, 08:00 PM
  3. 1054 Unknown column 'zen_order_id' in 'where clause'
    By atomic_s in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 9 Feb 2009, 11:11 AM
  4. 1054 Unknown column 'zen_order_id' in 'where clause'
    By heerosferret in forum General Questions
    Replies: 2
    Last Post: 16 Jan 2009, 11:21 PM
  5. 1054 Unknown column 'p.zen_order_id' in 'where clause'
    By alamocdc in forum Basic Configuration
    Replies: 5
    Last Post: 23 Jul 2008, 02:18 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