Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1

    Default Dynamic Filter SQL INSTALL Error

    Hello, few days ago I instaled the new Zencart 1.5.6 and started to migrate the plugins that I need and on the second (Dynamic Filter) I get error when using install SQL module in admin:

    PHP Code:
    [25-Jan-2019 10:53:40 Europe/SofiaRequest URI: /adm/sqlpatch.php?action=executeIP address
    #1  trigger_error() called at [/home/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/adm/sqlpatch.php:295]
    #5  executeSql() called at [/home/adm/sqlpatch.php:739]
    [25-Jan-2019 10:53:40 Europe/SofiaPHP Fatal error:  1064:You have an error in your SQL syntaxcheck the manual that corresponds to your MariaDB server version for the right syntax to use near '), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the pric' at line 1 :: INSERT INTO configuration VALUES (NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on All Products Page', 'FILTER_ALL', 'Yes', 'Enable the filter on all products page?', @cid, '20', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on New Products Page', 'FILTER_NEW', 'Yes', 'Enable the filter on new products page?', @cid, '30', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Featured Products Page', 'FILTER_FEATURED', 'Yes', 'Enable the filter on featured products page?', @cid, '40', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Specials Page', 'FILTER_SPECIALS', 'Yes', 'Enable the filter on specials page?', @cid, '50', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Search Page', 'FILTER_SEARCH', 'Yes', 'Enable the filter on advanced search page?', @cid, '60', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Filter Style', 'FILTER_STYLE', 'Link', 'How are the filters to be applied?<br /><br /><strong>Link</strong> - Each option is a linkOnly one filter can be applied at a time.<br /><strong>Dropdown (Single)</strong> - Each option is part of a drop down list; Only one filter can be applied at a time.<br /><strong>Dropdown (Multi)</strong> - Each option is part of a drop down list; Multiple filters can be applied at a time.<br /><strong>Checkbox (Single)</strong> - Each option is a checkboxOnly one filter can be applied at a time.<br /><strong>Checkbox (Multi)</strong> - Each option is a checkboxMultiple filters can be applied at a time.', @cid, '70', now(), now(), NULL, "zen_cfg_select_option(array('Link', 'Dropdown Single', 'Dropdown Multi', 'Checkbox Single', 'Checkbox Multi'),NULL,"), (NULL, 'Disabled Options Method', 'FILTER_METHOD', 'Greyed', 'How are the unavailable filter options to be disabled?<br /><br /><strong>Greyed</strong> - Grey out the unavailable options.<br /><strong>Hidden</strong> - Hide the unavailable options.', @cid, '80', now(), now(), NULL, "zen_cfg_select_option(array('Greyed', 'Hidden'),NULL,"), (NULL, 'Options Box Style', 'FILTER_OPTIONS_STYLE', 'Scroll', 'Which style of box should be used when the maximum number of options has been reached?<br /><br /><strong>Scroll</strong> - Scroll box.<br /><strong>Expand</strong> - Expanding box with More/Less link.<br /><br /><strong>NoteThis option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '90', now(), now(), NULL, "zen_cfg_select_option(array('Scroll', 'Expand'),NULL,"), (NULL, 'Maximum Number of Options', 'FILTER_MAX_OPTIONS', '9', 'What is the maximum number of options to be displayed before scroll bar/More link is visible?<br /><br /><strong>NoteThis option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL,NULL,), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the price filter?', @cid, '105', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,NULL,"), (NULL, 'Maximum Number of Price Ranges', 'FILTER_MAX_RANGES', '5', 'What is the maximum number of price range groups?<br /><br /><strong>NoteThis can be overridden by the Maximum Price Range parameter</strong>', @cid, '110', now(), now(), NULL, NULL,NULL,), (NULL, 'Minimum Price Range', 'FILTER_MIN_PRICE', '10', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '120', now(), now(), NULL, NULL,NULL,), (NULL, 'Maximum Price Range', 'FILTER_MAX_PRICE', '25', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '130', now(), now(), NULL, NULL,NULL,), (NULL, 'Include Options', 'FILTER_OPTIONS_INCLUDE', '', 'Enter the list of option IDs to be included in the filterseparated by commas (i.e1,2,3)<br />Only the option numbers listed here will appear in the filter.<br />Leave blank to deactivate.', @cid, '140', now(), now(), NULL, NULL,NULL,), (NULL, 'Exclude Options', 'FILTER_OPTIONS_EXCLUDE', '', 'Enter the list of option IDs to be excluded from the filterseparated by commas (i.e1,2,3)<br />The option numbers listed here will <strong>not</strongappear in the filter.<br />Leave blank to deactivate.', @cid, '150', now(), now(), NULL, NULL,NULL,), (NULL, 'Google Event Tracking', 'FILTER_GOOGLE_TRACKING', 'No', 'Use Google Event Tracking?<br /><br /><strong>No</strong> - Do not use Google Event Tracking<br /><strong>ga.js</strong> - Use traditional ga.js Google Event Tracking method<br /><strong>Asynchronous</strong> - Use new asynchronous Google Event Tracking method<br /><br /><strong>NoteRequires Google Analytics Code</strong>', @cid, '160', now(), now(), NULL, "zen_cfg_select_option(array('No', 'ga.js', 'Asynchronous'),NULL,"); ==> (as called by) /home/magpybbe/test.magprom.net/adm/sqlpatch.php on line 295 <== in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 171 
    In general that means there are more columns needed for the instalation of configuration keys. I dont know what exactly should be done so i just aded "NULL," at the end of the defect rows and uploaded that directly in to db with the help of phpMyadmin.

    This somehow resulted in an almost working Dynamic FIlter (everything works) exept that all the text of attributes for example apears as: SOMETHING_SOMETHING_ATTRIBUTES.

    Every help is wellcomed and maybe will be of help to others.
    My most recent work: magprom.net

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Dynamic Filter SQL INSTALL Error

    Quote Originally Posted by perfumbg View Post
    Hello, few days ago I instaled the new Zencart 1.5.6 and started to migrate the plugins that I need and on the second (Dynamic Filter) I get error when using install SQL module in admin:

    PHP Code:
    [25-Jan-2019 10:53:40 Europe/SofiaRequest URI: /adm/sqlpatch.php?action=executeIP address
    #1  trigger_error() called at [/home/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/adm/sqlpatch.php:295]
    #5  executeSql() called at [/home/adm/sqlpatch.php:739]
    [25-Jan-2019 10:53:40 Europe/SofiaPHP Fatal error:  1064:You have an error in your SQL syntaxcheck the manual that corresponds to your MariaDB server version for the right syntax to use near '), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the pric' at line 1 :: INSERT INTO configuration VALUES (NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on All Products Page', 'FILTER_ALL', 'Yes', 'Enable the filter on all products page?', @cid, '20', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on New Products Page', 'FILTER_NEW', 'Yes', 'Enable the filter on new products page?', @cid, '30', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Featured Products Page', 'FILTER_FEATURED', 'Yes', 'Enable the filter on featured products page?', @cid, '40', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Specials Page', 'FILTER_SPECIALS', 'Yes', 'Enable the filter on specials page?', @cid, '50', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Enable on Search Page', 'FILTER_SEARCH', 'Yes', 'Enable the filter on advanced search page?', @cid, '60', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"), (NULL, 'Filter Style', 'FILTER_STYLE', 'Link', 'How are the filters to be applied?<br /><br /><strong>Link</strong> - Each option is a linkOnly one filter can be applied at a time.<br /><strong>Dropdown (Single)</strong> - Each option is part of a drop down list; Only one filter can be applied at a time.<br /><strong>Dropdown (Multi)</strong> - Each option is part of a drop down list; Multiple filters can be applied at a time.<br /><strong>Checkbox (Single)</strong> - Each option is a checkboxOnly one filter can be applied at a time.<br /><strong>Checkbox (Multi)</strong> - Each option is a checkboxMultiple filters can be applied at a time.', @cid, '70', now(), now(), NULL, "zen_cfg_select_option(array('Link', 'Dropdown Single', 'Dropdown Multi', 'Checkbox Single', 'Checkbox Multi'),NULL,"), (NULL, 'Disabled Options Method', 'FILTER_METHOD', 'Greyed', 'How are the unavailable filter options to be disabled?<br /><br /><strong>Greyed</strong> - Grey out the unavailable options.<br /><strong>Hidden</strong> - Hide the unavailable options.', @cid, '80', now(), now(), NULL, "zen_cfg_select_option(array('Greyed', 'Hidden'),NULL,"), (NULL, 'Options Box Style', 'FILTER_OPTIONS_STYLE', 'Scroll', 'Which style of box should be used when the maximum number of options has been reached?<br /><br /><strong>Scroll</strong> - Scroll box.<br /><strong>Expand</strong> - Expanding box with More/Less link.<br /><br /><strong>NoteThis option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '90', now(), now(), NULL, "zen_cfg_select_option(array('Scroll', 'Expand'),NULL,"), (NULL, 'Maximum Number of Options', 'FILTER_MAX_OPTIONS', '9', 'What is the maximum number of options to be displayed before scroll bar/More link is visible?<br /><br /><strong>NoteThis option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL,NULL,), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the price filter?', @cid, '105', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,NULL,"), (NULL, 'Maximum Number of Price Ranges', 'FILTER_MAX_RANGES', '5', 'What is the maximum number of price range groups?<br /><br /><strong>NoteThis can be overridden by the Maximum Price Range parameter</strong>', @cid, '110', now(), now(), NULL, NULL,NULL,), (NULL, 'Minimum Price Range', 'FILTER_MIN_PRICE', '10', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '120', now(), now(), NULL, NULL,NULL,), (NULL, 'Maximum Price Range', 'FILTER_MAX_PRICE', '25', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '130', now(), now(), NULL, NULL,NULL,), (NULL, 'Include Options', 'FILTER_OPTIONS_INCLUDE', '', 'Enter the list of option IDs to be included in the filterseparated by commas (i.e1,2,3)<br />Only the option numbers listed here will appear in the filter.<br />Leave blank to deactivate.', @cid, '140', now(), now(), NULL, NULL,NULL,), (NULL, 'Exclude Options', 'FILTER_OPTIONS_EXCLUDE', '', 'Enter the list of option IDs to be excluded from the filterseparated by commas (i.e1,2,3)<br />The option numbers listed here will <strong>not</strongappear in the filter.<br />Leave blank to deactivate.', @cid, '150', now(), now(), NULL, NULL,NULL,), (NULL, 'Google Event Tracking', 'FILTER_GOOGLE_TRACKING', 'No', 'Use Google Event Tracking?<br /><br /><strong>No</strong> - Do not use Google Event Tracking<br /><strong>ga.js</strong> - Use traditional ga.js Google Event Tracking method<br /><strong>Asynchronous</strong> - Use new asynchronous Google Event Tracking method<br /><br /><strong>NoteRequires Google Analytics Code</strong>', @cid, '160', now(), now(), NULL, "zen_cfg_select_option(array('No', 'ga.js', 'Asynchronous'),NULL,"); ==> (as called by) /home/magpybbe/test.magprom.net/adm/sqlpatch.php on line 295 <== in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 171 
    In general that means there are more columns needed for the instalation of configuration keys. I dont know what exactly should be done so i just aded "NULL," at the end of the defect rows and uploaded that directly in to db with the help of phpMyadmin.

    This somehow resulted in an almost working Dynamic FIlter (everything works) exept that all the text of attributes for example apears as: SOMETHING_SOMETHING_ATTRIBUTES.

    Every help is wellcomed and maybe will be of help to others.
    It looks like in this section, there are too many parameters based on the "unusual" quoting from the previous sections:
    Code:
    only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL,NULL,), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE',
    Should be like:
    Code:
    only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE',
    Having only two NULL parameters after the latest now().
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3

    Default Re: Dynamic Filter SQL INSTALL Error

    Quote Originally Posted by mc12345678 View Post
    It looks like in this section, there are too many parameters based on the "unusual"...


    Yes you are right, but that is because I uploaded the wrong log file, in reality (when i try to install the original install.sql) its very similar error, you can see it below:

    HTML Code:
    [23-Jan-2019 13:49:38 Europe/Sofia] Request URI: /adm/sqlpatch.php?action=execute, IP address: 
    #1  trigger_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/magpybbe/test.magprom.net/adm/sqlpatch.php:295]
    #5  executeSql() called at [/home/magpybbe/test.magprom.net/adm/sqlpatch.php:739]
    [23-Jan-2019 13:49:38 Europe/Sofia] PHP Fatal error:  1136:Column count doesn't match value count at row 1 :: INSERT INTO configuration VALUES (NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Enable on All Products Page', 'FILTER_ALL', 'Yes', 'Enable the filter on all products page?', @cid, '20', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Enable on New Products Page', 'FILTER_NEW', 'Yes', 'Enable the filter on new products page?', @cid, '30', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Enable on Featured Products Page', 'FILTER_FEATURED', 'Yes', 'Enable the filter on featured products page?', @cid, '40', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Enable on Specials Page', 'FILTER_SPECIALS', 'Yes', 'Enable the filter on specials page?', @cid, '50', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Enable on Search Page', 'FILTER_SEARCH', 'Yes', 'Enable the filter on advanced search page?', @cid, '60', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Filter Style', 'FILTER_STYLE', 'Link', 'How are the filters to be applied?<br /><br /><strong>Link</strong> - Each option is a link; Only one filter can be applied at a time.<br /><strong>Dropdown (Single)</strong> - Each option is part of a drop down list; Only one filter can be applied at a time.<br /><strong>Dropdown (Multi)</strong> - Each option is part of a drop down list; Multiple filters can be applied at a time.<br /><strong>Checkbox (Single)</strong> - Each option is a checkbox; Only one filter can be applied at a time.<br /><strong>Checkbox (Multi)</strong> - Each option is a checkbox; Multiple filters can be applied at a time.', @cid, '70', now(), now(), NULL, "zen_cfg_select_option(array('Link', 'Dropdown - Single', 'Dropdown - Multi', 'Checkbox - Single', 'Checkbox - Multi'),"), (NULL, 'Disabled Options Method', 'FILTER_METHOD', 'Greyed', 'How are the unavailable filter options to be disabled?<br /><br /><strong>Greyed</strong> - Grey out the unavailable options.<br /><strong>Hidden</strong> - Hide the unavailable options.', @cid, '80', now(), now(), NULL, "zen_cfg_select_option(array('Greyed', 'Hidden'),"), (NULL, 'Options Box Style', 'FILTER_OPTIONS_STYLE', 'Scroll', 'Which style of box should be used when the maximum number of options has been reached?<br /><br /><strong>Scroll</strong> - Scroll box.<br /><strong>Expand</strong> - Expanding box with More/Less link.<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '90', now(), now(), NULL, "zen_cfg_select_option(array('Scroll', 'Expand'),"), (NULL, 'Maximum Number of Options', 'FILTER_MAX_OPTIONS', '9', 'What is the maximum number of options to be displayed before scroll bar/More link is visible?<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL), (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the price filter?', @cid, '105', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"), (NULL, 'Maximum Number of Price Ranges', 'FILTER_MAX_RANGES', '5', 'What is the maximum number of price range groups?<br /><br /><strong>Note: This can be overridden by the Maximum Price Range parameter</strong>', @cid, '110', now(), now(), NULL, NULL), (NULL, 'Minimum Price Range', 'FILTER_MIN_PRICE', '10', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '120', now(), now(), NULL, NULL), (NULL, 'Maximum Price Range', 'FILTER_MAX_PRICE', '25', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '130', now(), now(), NULL, NULL), (NULL, 'Include Options', 'FILTER_OPTIONS_INCLUDE', '', 'Enter the list of option IDs to be included in the filter, separated by commas (i.e. 1,2,3)<br />Only the option numbers listed here will appear in the filter.<br />Leave blank to deactivate.', @cid, '140', now(), now(), NULL, NULL), (NULL, 'Exclude Options', 'FILTER_OPTIONS_EXCLUDE', '', 'Enter the list of option IDs to be excluded from the filter, separated by commas (i.e. 1,2,3)<br />The option numbers listed here will <strong>not</strong> appear in the filter.<br />Leave blank to deactivate.', @cid, '150', now(), now(), NULL, NULL), (NULL, 'Google Event Tracking', 'FILTER_GOOGLE_TRACKING', 'No', 'Use Google Event Tracking?<br /><br /><strong>No</strong> - Do not use Google Event Tracking<br /><strong>ga.js</strong> - Use traditional ga.js Google Event Tracking method<br /><strong>Asynchronous</strong> - Use new asynchronous Google Event Tracking method<br /><br /><strong>Note: Requires Google Analytics Code</strong>', @cid, '160', now(), now(), NULL, "zen_cfg_select_option(array('No', 'ga.js', 'Asynchronous'),"); ==> (as called by) /home/magpybbe/test.magprom.net/adm/sqlpatch.php on line 295 <== in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 171
    My most recent work: magprom.net

  4. #4

    Default Re: Dynamic Filter SQL INSTALL Error

    Also I have tried to import old v1.5.5 configuration and configuration group in the new db of v1.5.6.

    That gived 17 errors (in short there should be one more column wich is missing and that is why i aded one more ",NULL," at the end)
    When I aded that ",NULL," the module worked exept the part i mentioned above.

    There is something more that needs to be aded and its obvious not ,NULL, but i dont know what, maybe "1" or "0" or something elese i dont know what ,

    Thank you for your help!
    My most recent work: magprom.net

  5. #5

    Default Re: Dynamic Filter SQL INSTALL Error

    I checked the configuration table there is one more column "val_function" but even after i add that missing NULL nothing hapes when i try to install it from admin side...
    My most recent work: magprom.net

  6. #6

    Default Re: Dynamic Filter SQL INSTALL Error

    I have found what should be done.
    Here is working install.sql

    HTML Code:
    SELECT @cid:=configuration_group_id
    FROM configuration_group
    WHERE configuration_group_title= 'Dynamic Filter';
    DELETE FROM configuration WHERE configuration_group_id = @cid;
    DELETE FROM configuration_group WHERE configuration_group_id = @cid;
    INSERT INTO configuration_group VALUES (NULL, 'Dynamic Filter', 'Dynamic Filter Settings', '1', '1');
    SET @cid=last_insert_id();
    UPDATE configuration_group SET sort_order = @cid WHERE configuration_group_id = @cid;
    
    INSERT INTO configuration VALUES
      (NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Enable on All Products Page', 'FILTER_ALL', 'Yes', 'Enable the filter on all products page?', @cid, '20', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Enable on New Products Page', 'FILTER_NEW', 'Yes', 'Enable the filter on new products page?', @cid, '30', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Enable on Featured Products Page', 'FILTER_FEATURED', 'Yes', 'Enable the filter on featured products page?', @cid, '40', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Enable on Specials Page', 'FILTER_SPECIALS', 'Yes', 'Enable the filter on specials page?', @cid, '50', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Enable on Search Page', 'FILTER_SEARCH', 'Yes', 'Enable the filter on advanced search page?', @cid, '60', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Filter Style', 'FILTER_STYLE', 'Link', 'How are the filters to be applied?<br /><br /><strong>Link</strong> - Each option is a link; Only one filter can be applied at a time.<br /><strong>Dropdown (Single)</strong> - Each option is part of a drop down list; Only one filter can be applied at a time.<br /><strong>Dropdown (Multi)</strong> - Each option is part of a drop down list; Multiple filters can be applied at a time.<br /><strong>Checkbox (Single)</strong> - Each option is a checkbox; Only one filter can be applied at a time.<br /><strong>Checkbox (Multi)</strong> - Each option is a checkbox; Multiple filters can be applied at a time.', @cid, '70', now(), now(), NULL, "zen_cfg_select_option(array('Link', 'Dropdown - Single', 'Dropdown - Multi', 'Checkbox - Single', 'Checkbox - Multi'),",NULL),
      (NULL, 'Disabled Options Method', 'FILTER_METHOD', 'Greyed', 'How are the unavailable filter options to be disabled?<br /><br /><strong>Greyed</strong> - Grey out the unavailable options.<br /><strong>Hidden</strong> - Hide the unavailable options.', @cid, '80', now(), now(), NULL, "zen_cfg_select_option(array('Greyed', 'Hidden'),",NULL),
      (NULL, 'Options Box Style', 'FILTER_OPTIONS_STYLE', 'Scroll', 'Which style of box should be used when the maximum number of options has been reached?<br /><br /><strong>Scroll</strong> - Scroll box.<br /><strong>Expand</strong> - Expanding box with More/Less link.<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '90', now(), now(), NULL, "zen_cfg_select_option(array('Scroll', 'Expand'),",NULL),
      (NULL, 'Maximum Number of Options', 'FILTER_MAX_OPTIONS', '9', 'What is the maximum number of options to be displayed before scroll bar/More link is visible?<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL,NULL),
      (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the price filter?', @cid, '105', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),",NULL),
      (NULL, 'Maximum Number of Price Ranges', 'FILTER_MAX_RANGES', '5', 'What is the maximum number of price range groups?<br /><br /><strong>Note: This can be overridden by the Maximum Price Range parameter</strong>', @cid, '110', now(), now(), NULL, NULL,NULL),
      (NULL, 'Minimum Price Range', 'FILTER_MIN_PRICE', '10', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '120', now(), now(), NULL, NULL,NULL),
      (NULL, 'Maximum Price Range', 'FILTER_MAX_PRICE', '25', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '130', now(), now(), NULL, NULL,NULL),
      (NULL, 'Include Options', 'FILTER_OPTIONS_INCLUDE', '', 'Enter the list of option IDs to be included in the filter, separated by commas (i.e. 1,2,3)<br />Only the option numbers listed here will appear in the filter.<br />Leave blank to deactivate.', @cid, '140', now(), now(), NULL, NULL,NULL),
      (NULL, 'Exclude Options', 'FILTER_OPTIONS_EXCLUDE', '', 'Enter the list of option IDs to be excluded from the filter, separated by commas (i.e. 1,2,3)<br />The option numbers listed here will <strong>not</strong> appear in the filter.<br />Leave blank to deactivate.', @cid, '150', now(), now(), NULL, NULL,NULL),
      (NULL, 'Google Event Tracking', 'FILTER_GOOGLE_TRACKING', 'No', 'Use Google Event Tracking?<br /><br /><strong>No</strong> - Do not use Google Event Tracking<br /><strong>ga.js</strong> - Use traditional ga.js Google Event Tracking method<br /><strong>Asynchronous</strong> - Use new asynchronous Google Event Tracking method<br /><br /><strong>Note: Requires Google Analytics Code</strong>', @cid, '160', now(), now(), NULL, "zen_cfg_select_option(array('No', 'ga.js', 'Asynchronous'),",NULL);
    
    
    /*
    zencart 1.5 mods
    */
    DELETE FROM admin_pages WHERE page_key='configDynamicFilter';
    INSERT INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order) VALUES ('configDynamicFilter','BOX_CONFIGURATION_DYNAMIC_FILTER','FILENAME_CONFIGURATION',CONCAT('gID=',@cid), 'configuration', 'Y', @cid);
    My most recent work: magprom.net

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Dynamic Filter SQL INSTALL Error

    The best way to address the issue is to actually identify in the sql statement what field is to get what value in the list of parameters.

    So instead of just

    INSERT INTO configuration VALUES...

    Between the table name and the set of values should be the list of the fields.

    Ie.
    INSERT INTO configuration (configuration_id, .... ) VALUES (NULL, .... );

    Though really the configuration_id which is an auto incrementing value does not need to be there. In this way of assigning which field is to receive which value, it doesn't matter what else has been modified about the table as the code doesn't need the additional field(s) presumably.

    Also, I would recommend that the last modified date be left as NULL instead of now(), but that's just me I guess. Doesn't make sense for there to be a modified date at the point of insertion/addition.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8

    Default Re: Dynamic Filter SQL INSTALL Error

    It was late last night so I didnt have time to test the module, but it does not work.

    Now the install.sql works but there is something wrong.

    Only the price range apears, and there is no filter button, no link to configuration on admin page, but if I manualy tipe the number of config of Dynamic Filter it apears.

    If anybody installed this module corectly please help.
    My most recent work: magprom.net

  9. #9

    Default Re: Dynamic Filter SQL INSTALL Error

    Installed again with phpMyadmin and it works expet for the manufacturers filter when i Enable show manufacturers on Product Listing config i get this error:

    HTML Code:
    [28-Jan-2019 09:59:10 Europe/Sofia] Request URI: /kuhnenski, IP address: 94.190.193.162
    #1  trigger_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/magpybbe/test.magprom.net/includes/modules/responsive_classic/product_listing.php:75]
    #5  include(/home/magpybbe/test.magprom.net/includes/modules/responsive_classic/product_listing.php) called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/templates/tpl_modules_product_listing.php:11]
    #6  require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/templates/tpl_modules_product_listing.php) called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/templates/tpl_index_product_list.php:56]
    #7  require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/templates/tpl_index_product_list.php) called at [/home/magpybbe/test.magprom.net/includes/modules/pages/index/main_template_vars.php:232]
    #8  require(/home/magpybbe/test.magprom.net/includes/modules/pages/index/main_template_vars.php) called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php:163]
    #9  require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/magpybbe/test.magprom.net/index.php:97]
    [28-Jan-2019 09:59:10 Europe/Sofia] PHP Fatal error:  1054:Unknown column 'm.manufacturers_name' in 'field list' :: SELECT DISTINCT m.manufacturers_name, p.products_image, pd.products_name, p.products_quantity,  p.products_id, p.products_type, p.master_categories_id,        p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1,        s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price,        p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping,        p.products_qty_box_status FROM products p LEFT JOIN specials s on p.products_id = s.products_id LEFT JOIN products_description pd on p.products_id = pd.products_id JOIN products_to_categories p2c on p.products_id = p2c.products_id WHERE p.products_status = 1        and pd.language_id = '2'        and p2c.categories_id = '1851' GROUP BY p.products_id  order by p.products_sort_order, pd.products_name limit 10 ==> (as called by) /home/magpybbe/test.magprom.net/includes/modules/responsive_classic/product_listing.php on line 75 <== in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 171
    My most recent work: magprom.net

  10. #10

    Default Re: Dynamic Filter SQL INSTALL Error

    So i dont have manufacturers filter, this is the last remaining problem, there is no ERROR LOG but the manufacturers just dont apear in the filter options.

    Any gueses?
    My most recent work: magprom.net

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Dynamic filter
    By Dinoleix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Aug 2013, 10:23 AM
  2. v139h 1064 SQL error in product filter addon?
    By 4jDesigns in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 17 Jan 2013, 07:59 PM
  3. Replies: 2
    Last Post: 20 Dec 2012, 07:31 PM
  4. v138a Dynamic Filter
    By SoftCorpse in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 18 Jun 2012, 01:32 PM
  5. Error with new install 1.3.9d 1064 error in SQL syntax
    By Joseph M in forum Installing on a Linux/Unix Server
    Replies: 21
    Last Post: 28 Jun 2010, 06:36 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR