Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Article Manager MySQL 5 issue


Fredrik.r

Recommended Posts

Hi! Since the hosting company I'm using updated to MySQL 5 a few days ago there is an error in articles.php;

 

----------------------------

 

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 = '4' and td.language_id = '4'

 

[TEP STOP]

 

----------------------------

 

How can this be solved? Someone told me to add "as total,* from..." but there are several querys in that file and I am not sure which to correct or how to correct them.

 

Very thankful for help with this!

Link to comment
Share on other sites

Thank you. It seems that Article Manager 1.5 isn't compatible with MySQL 5. The queries in the thread you mentioned isn't the same as in Article Manager 1.5. Neither before or after the suggested changes.

Edited by Fredrik.r
Link to comment
Share on other sites

Try with this code instead. Note in the tips & tricks forum I posted the general explanation and how to fix things.

select count(*) as total from articles_to_topics a2t left join topics_description td on a2t.topics_id = td.topics_id, articles a 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 = '4' and td.language_id = '4'

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...