
Originally Posted by
Rob905
The error that I get when the sidebox is enabled is: 1054 Unknown column 'p.products_date_available' in 'where clause'
in:
[select p.faqs_id from faqs p where p.faqs_status = '1' and p.products_date_available >20090703235959 limit 1]
The SQL statement $order_by is malformed for how it's being used. $order_by has to do with reordering the FAQ list. I didn't keep this in my use of the mod so I removed it and fixed the SQL statements having to do with $order_by and all works.
Look to the includes/modules/ folder, search the files for $order_by and fix them.
old code includes/modules/faq_categories_tabs.php
Code:
$order_by = " order by c.sort_order, cd.faq_categories_name ";
$faq_categories_tab_query = "select c.faq_categories_id, cd.faq_categories_name from " .
TABLE_FAQ_CATEGORIES . " c, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd
where c.faq_categories_id=cd.faq_categories_id and c.parent_id= '0' and cd.language_id='" . $_SESSION['languages_id'] . "' and c.faq_categories_status='1'" .
$order_by;
new code
Code:
$faq_categories_tab_query = "select c.faq_categories_id, cd.faq_categories_name from "
. TABLE_FAQ_CATEGORIES . " c, "
. TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd
where c.faq_categories_id=cd.faq_categories_id
and c.parent_id= '0'
and cd.language_id='" . $_SESSION['languages_id'] . "'
and c.faq_categories_status='1'
order by c.sort_order, cd.faq_categories_name";
On the exmple above the c. and cd. is used, on most of the others, it's
order by fc.sort_order, fcd.faq_categories_name"
Search the includes/modules folder and includes\templates\YOUR_TEMPLATE\templates\ folder for $order_by call and you will find the problem files... I didn't use all the files that came with the mod so I can't say which one for sure. I also made many edits to the files to remove the tables so I can't post the files.
Once the SQL statements are reworked, the mod does work it's running on my site. I don't have the sidebox installed ether...