osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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; Hey what do I know. I have not been able to get that error no matter what I try, so ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack (3) Thread Tools
  1 links from elsewhere to this Post. Click to view. #11  
Old 08-17-2007, 11:28 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Hey what do I know. I have not been able to get that error no matter what I try, so I just assumed it was fixed in SVN.

If you post more detail as to how and where you get this error, maybe I can track it down. I just re-read this entire thread, and have no idea even where you get this error.

Is it in the admin panel? In the catalog? When you add an author? Add an article? What?

I don't think I get the error because I am testing on mysql 4.1 not 5x...

Note: I just tested on mysq 5.0.27 and I finally tracked down a place where I can get the error... It is only when I click the 'All articles' link in the articles infobox on the catalog side... Mindtwist, your fix is what is needed. The mod was coded on an older version of mysql and it is definitely a compatibility issue.

I also found another issue with the authors box in the SVN and JPF's package with the author's box (parse error).
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #12  
Old 08-17-2007, 01:25 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

This might be a stupid question, but what does SVN mean?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 08-17-2007, 02:17 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

SVN is short for Subversion Repository. It is where we keep all the development code so you can grab the latest files whenever you want.

Subversion is a version control system for tracking software changes and keeping everything organized. Our repository is here:

oscmax2 - Google Code

It makes it super easy to do upgrades, etc, as you just need to update your files with the new ones using an SVN client like TortoiseSVN.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 04-11-2008, 06:12 PM
New Member
 
Join Date: Apr 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
felisanator is on a distinguished road
Question Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Ok -- so how do we fix this? I simply created a 'test" article and then activated the box using the infobox admin.

Once done, I changed the box to the left side of the store.

Then when I click the link to read the article, it says:
Quote:
Tester heading title Using reusable cloth menstrual pads can save you time, money, your health and the EARTH!
1054 - Unknown column 'a.authors_id' in 'on clause'

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

[TEP STOP]
and the bottom of the store is gone.

When I click on the "All articles" it happens.
When I click on the actual test article it happens.

I am working on a clean install of oscmax. on apache server
Quote:
Server OS: FreeBSD 5.3-SECURITY Database: MySQL 5.0.45-log Server Date: 04/11/2008 21:09:01 Datebase Date: 04/11/2008 21:09:01 Server Up Time:
HTTP Server: Apache PHP Version: 5.2.5 (Zend: 2.2.0) osCMax v2.0 RC3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 04-11-2008, 06:17 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Did you create an author and assign that author to the article? Try that and let me know...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 04-11-2008, 06:36 PM
New Member
 
Join Date: Apr 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
felisanator is on a distinguished road
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Hmm...

I created a new author.

However, there is nowhere on the article itself to assign an author??

Also, something really weird.

I went ahead and generated another articles as Test2 and it doesn't show up at all. I assigned it to the "top" -- nothing showed.
I assigned it to the "test" catagory -- nothing showed

And here is the error that is showing:
Quote:
1054 - Unknown column 'a.authors_id' in 'on clause'

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

[TEP STOP]


Thanks for trying to help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 04-11-2008, 07:04 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

The issue is a mysql5 compatibility thing...

I think I have fixed it. Use the attached file to replace the articles.tpl.php file in the /templates/fallback/content/ directory

Note, there are a couple of other files that need to be fixed... I am zipping them now and will post in about an hour.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.

Last edited by michael_s; 04-11-2008 at 07:17 PM. Reason: removed partial fix attachement. Full fix 2 posts below.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to michael_s For This Useful Post:
felisanator (04-11-2008)
  #18  
Old 04-11-2008, 07:07 PM
New Member
 
Join Date: Apr 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
felisanator is on a distinguished road
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Thanks, I'm going to try and do that now -- I appreciate you sharing your Friday night with me!
I'll post with results!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 04-11-2008, 07:15 PM
New Member
 
Join Date: Apr 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
felisanator is on a distinguished road
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Last edit on this file shows: 8/9/07

I uploaded it to the content directory you specified, but no changes were made. I guess I should take your advice and download that file comparison utility.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 04-11-2008, 07:16 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: 1054 - Unknown column 'a.authors_id' in 'on clause'

Here is the full fix. I just tested it and it looks to be working great. The first file I posted, the All Articles link was still failing. This updated file should get it working 100%
Attached Files
File Type: zip articles.tpl.zip (3.5 KB, 28 views)
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.

Last edited by michael_s; 04-11-2008 at 07:23 PM. Reason: Added the correct zip file with fixes!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/oscmax-v2-customization-mods/6535-1054-unknown-column-authors_id-clause.html

Posted By For Type Date
Plesk - Linux Tools This thread Refback 07-27-2008 09:25 PM
unknown column on in clause : column, unknown, 1054 This thread Refback 07-18-2008 08:18 AM
Help W/ Mysql Error On Cart.php - CubeCart Forums This thread Refback 03-20-2008 04:05 PM

Similar Threads

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


All times are GMT -8. The time now is 02:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax