Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Anyone have a fix for this FAQ addon error?

    I tried to re-install the latest version of the FAQ module on my 1.3.8a cart and all seems to work OK in the admin section except when you try to view the FAQ that shows up in the sidebox you get a cart page with a blank area in the middle.

    Several questions have gone unaswered in this area so I was wondering if anyone is supporting this mod anymore or is there a better way and just toast this mod?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Anyone have a fix

    check for the reasons one gets a blank page
    https://www.zen-cart.com/tutorials/index.php?article=82

  3. #3
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Anyone have a fix

    Quote Originally Posted by kobra View Post
    check for the reasons one gets a blank page
    https://www.zen-cart.com/tutorials/index.php?article=82
    Thanks Cobra, that got the page displayed.
    Unfortunately I'm back to the original problem now of not being able to use the FAQ module because it kills the right column (where I'm currently displaying it) with some coding error message. :-(

    Does anyone work on this mod anymore, there seems to be lots of interest in it and I could use it on some of my other sites.

  4. #4
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Anyone have a fix

    Quote Originally Posted by kobra View Post
    check for the reasons one gets a blank page
    https://www.zen-cart.com/tutorials/index.php?article=82
    Quote Originally Posted by Rob905 View Post
    Thanks Cobra, that got the page displayed.
    Unfortunately I'm back to the original problem now of not being able to use the FAQ module because it kills the right column (where I'm currently displaying it) with some coding error message. :-(

    Does anyone work on this mod anymore, there seems to be lots of interest in it and I could use it on some of my other sites.
    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]

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Anyone have a fix

    Quote Originally Posted by Rob905 View Post
    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]
    As you've mentioned, it's related to something you've got wrong in the FAQ addon you're using.
    .

    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.

  6. #6
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Anyone have a fix

    Quote Originally Posted by DrByte View Post
    As you've mentioned, it's related to something you've got wrong in the FAQ addon you're using.
    Thanks.
    I've decided to pull the mod from the site cuz it's just not worth the agrivation anymore. Since no-one is supporting this mod anyway, I've decided to use the EZPage instead.

    Can I code regular HTML on the page so when some one clicks on the FAQ link it will jump to the tag on the page that gives the answer?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Anyone have a fix

    If you code the full anchor tag syntax, it should work.
    .

    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.

  8. #8
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Anyone have a fix

    Quote Originally Posted by DrByte View Post
    If you code the full anchor tag syntax, it should work.
    Thank you DrByte, I think that is the best way to go then for now.

  9. #9
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Anyone have a fix

    Quote Originally Posted by Rob905 View Post
    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...
    Dave
    Always forward thinking... Lost my mind!

  10. #10
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Anyone have a fix

    Quote Originally Posted by davewest View Post
    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 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...
    Thanks for the input but i've decided that I can't afford to re-install the site again because everytime I've tried to install this mod it kills the entire site when I try to fix it.
    I'm not a programmer so I'll use the EZPage way to create an FAQ.
    The mod should maybe be removed from the downloads until someone has one that actually works.

 

 

Similar Threads

  1. Does anyone know how to fix this:
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Feb 2009, 10:03 PM
  2. I have this Err & I have no idea how to fix it
    By bgurtz in forum General Questions
    Replies: 0
    Last Post: 17 Nov 2008, 03:57 AM
  3. Anyone else have a Connection Problem error this a.m.?
    By Elsshells in forum General Questions
    Replies: 1
    Last Post: 10 May 2008, 02:47 PM
  4. Replies: 48
    Last Post: 10 Sep 2007, 04:04 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