osCmax v2.5 User Manual
Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

1054 - Unknown column 'a.authors_id' in 'on clause'

This is a discussion on 1054 - Unknown column 'a.authors_id' in 'on clause' within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; run that one by me again? I just downloaded it again and the same zip file with the same size ...

      
  1. #21
    New Member
    Join Date
    Apr 2008
    Posts
    19
    Rep Power
    0


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    run that one by me again? I just downloaded it again and the same zip file with the same size and date (only one file articles.tpl.php 8/9/07) ...with no changes to the server after upload.

  2. #22
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Sorry about that, I have several installs of osCMax (6) and I zipped the wrong file twice...

    I fixed it. The new zip contains the fixed file dated 4-11-08 It is 2 posts up in my previous post.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #23
    New Member
    Join Date
    Apr 2008
    Posts
    19
    Rep Power
    0


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Thanks for that! The store isn't broken anymore. but when I assign the articles to the top category (as I don't want to categorize any of the articles at this time).
    It says that there are no articles
    All Articles
    Current Articles There are currently no articles listed.
    So...I found that I can disable the link to "all articles" That way the articles still show under the "articles" heading.

  4. #24
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Yes, that is a limitation of the mod. Articles must be put in a category.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #25
    Active Member MindTwist's Avatar
    Join Date
    Jun 2007
    Location
    Barcelona, Spain
    Posts
    409
    Rep Power
    7


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    heh I am almost afraid to touch anything over here now since my articles are working ok...

  6. #26
    New Member
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0


    Lightbulb Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Hello,

    I had the exact problem and I downloaded your patch, and that fixed everything wonderfully,

    EXCEPT for when I click the New Articles link I get the error:

    1054 - Unknown column 'a.authors_id' in 'on clause'

    select count(*) as total from articles a, articles_to_topics a2t left join topics_description td on a2t.topics_id = td.topics_id left join authors au on a.authors_id = au.authors_id, articles_description ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '1' and td.language_id = '1' and a.articles_date_added > SUBDATE(now( ), INTERVAL '30' DAY)

    [TEP STOP]

    New Articles



    Please advise a fix to that part.

    I think another code fix is needed for the articles_new.tpl.php

    All help is greatly appreciated.

    Thank you.

  7. #27
    New Member
    Join Date
    Oct 2008
    Location
    Atlanta, Georgia
    Posts
    21
    Rep Power
    0


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    I am also having the same problem after the fix above. Everything seems to work fine except for articles_new.php.

    Quote Originally Posted by Microtekblue View Post
    Hello,

    I had the exact problem and I downloaded your patch, and that fixed everything wonderfully,

    EXCEPT for when I click the New Articles link I get the error:

    1054 - Unknown column 'a.authors_id' in 'on clause'

    select count(*) as total from articles a, articles_to_topics a2t left join topics_description td on a2t.topics_id = td.topics_id left join authors au on a.authors_id = au.authors_id, articles_description ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '1' and td.language_id = '1' and a.articles_date_added > SUBDATE(now( ), INTERVAL '30' DAY)

    [TEP STOP]

    New Articles



    Please advise a fix to that part.

    I think another code fix is needed for the articles_new.tpl.php

    All help is greatly appreciated.

    Thank you.

  8. #28
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    To fix the new articles issue, edit articles_new.tpl.php in the fallback/content directory and change line 17 from this :

    PHP Code:
      $articles_new_query_raw "select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " TABLE_ARTICLES " a, " TABLE_ARTICLES_TO_TOPICS " a2t left join " TABLE_TOPICS_DESCRIPTION " td on a2t.topics_id = td.topics_id left join " TABLE_AUTHORS " au on a.authors_id = au.authors_id, " TABLE_ARTICLES_DESCRIPTION " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id "' and td.language_id = '" . (int)$languages_id "' and a.articles_date_added > SUBDATE(now( ), INTERVAL '" NEW_ARTICLES_DAYS_DISPLAY "' DAY) order by a.articles_date_added desc, ad.articles_name"
    to this:
    PHP Code:
      $articles_new_query_raw "select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from ((" TABLE_ARTICLES " a, " TABLE_ARTICLES_TO_TOPICS " a2t) left join " TABLE_TOPICS_DESCRIPTION " td on a2t.topics_id = td.topics_id) left join " TABLE_AUTHORS " au on a.authors_id = au.authors_id, " TABLE_ARTICLES_DESCRIPTION " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id "' and td.language_id = '" . (int)$languages_id "' and a.articles_date_added > SUBDATE(now( ), INTERVAL '" NEW_ARTICLES_DAYS_DISPLAY "' DAY) order by a.articles_date_added desc, ad.articles_name"
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #29
    Lurker
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Hello,

    i'm new here. I'm also experiencing the same problem. Except that you can see it on whatever page you're on. I' ve also downloaded your articles file. Thing is that it doesn't change anything. Btw i'm not using the fallback template. Can anybody help me any further?..

  10. #30
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

    Did you also do the above code edit?

    It doesn't matter if you are not using the fallback template. All templates use the fallback/content templates unless there is one present in the active content directory. If your template has its own content files, make sure you replace yours with the new ones...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Error: 1054 - Unknown column
    By islander in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-27-2006, 11:31 AM
  2. 1054 - Unknown column 'p.vendors_product_price'
    By RoyceK in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-12-2006, 08:22 PM
  3. 1054 - Unknown column when restock product
    By DigitalPimp in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 07-25-2005, 02:57 PM
  4. 1054 - Unknown column 'popt.products_options_type
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 03-08-2004, 01:47 AM
  5. 1054 - Unknown column - Help, please !
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-27-2002, 11:48 AM

Bookmarks

Posting Permissions

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