Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default trying to run an SQL patch, doesn't work.

    i'm trying to install a module that requires an SQL file to be run.

    i copy and pasted all the SQL text into the box of the SQL upgrade form, and i got this message:

    Not Acceptable

    An appropriate representation of the requested resource /store/admin/sqlpatch.php could not be found on this server.

    any ideas?

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

    Default Re: trying to run an SQL patch, doesn't work.

    OK so we know that you are trying to run a sql patch for a module...

    How about the detail as to what module?
    What version of the module?
    What version of Zen Cart?
    What program you are using to open the file to copy from?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: trying to run an SQL patch, doesn't work.

    Quote Originally Posted by kobra View Post
    OK so we know that you are trying to run a sql patch for a module...

    How about the detail as to what module?
    What version of the module?
    What version of Zen Cart?
    What program you are using to open the file to copy from?
    using this: http://www.zen-cart.com/index.php?ma...products_id=77

    latest version

    zen cart version: 1.37
    i'm using notepad to open the SQL file. i just pasted the text into the box..

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

    Default Re: trying to run an SQL patch, doesn't work.

    I just ran this on a clean 1.3.7 install from the admin and pasted it from notepad
    and got this result:
    Code:
    Query Results:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows', 'Select the layout style:
    Each product can be listed in its own row (rows option) or products can be listed in multiple columns per row (columns option)', '8', '40', NULL, now(), NULL, 'zen_cfg_select_option(array("rows", "columns"),');
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Product Listing - Columns Per Row', 'PRODUCT_LISTING_COLUMNS_PER_ROW', '3', 'Select the number of columns of products to show in each row in the product listing. The default setting is 3.', '8', '41', NULL, now(), NULL, NULL);
    Or Success!!!

    You might try using the browse to the file and an upload over the paste and see if this is more successful for you...

    Alternatively, redownload the mod and try another copy of the file as there might have been a glitch when you downloaded it...it is not the file or the sql itself.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: trying to run an SQL patch, doesn't work.

    ok i tried redownloading it, still doesn't work

    i tried uploading the SQL file and this is what i got:
    1062 Duplicate entry 'PRODUCT_LISTING_LAYOUT_STYLE' for key 2
    in:
    [INSERT INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows', 'Select the layout style:
    Each product can be listed in its own row (rows option) or products can be listed in multiple columns per row (columns option)', '8', '40', NULL, now(), NULL, 'zen_cfg_select_option(array("rows", "columns"),');]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

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

    Default Re: trying to run an SQL patch, doesn't work.

    OK- duplicate entry so something got loaded & does not want to load again....

    Did you do a backup before this? If so restore this back to where you were and try again
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: trying to run an SQL patch, doesn't work.

    Quote Originally Posted by kobra View Post
    OK- duplicate entry so something got loaded & does not want to load again....

    Did you do a backup before this? If so restore this back to where you were and try again
    i got a backup from PHPmyadmin..

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

    Default Re: trying to run an SQL patch, doesn't work.

    You can also run this patch from phpmyadmin
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: trying to run an SQL patch, doesn't work.

    Quote Originally Posted by mohinder View Post
    Not Acceptable

    An appropriate representation of the requested resource /store/admin/sqlpatch.php could not be found on this server.
    This is a result of security settings on your hosting server being set to prevent you from running potentially dangerous SQL commands via web pages.

    The fastest way to work around this, if your hosting configuration doesn't object, is to edit the /admin/.htaccess file and insert just this line, at the end of the file:
    Code:
    SecFilterEngine off
    This bypassess all the security protections for any script running from your admin area.
    .

    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.

 

 

Similar Threads

  1. v150 Can't login to admin and sql password reset doesn't work
    By tips007 in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 04:13 PM
  2. v139h Upload SQL Patch via phpMyAdmin in MySQL INSTEAD OF Amin-Tools-Install AQL patch ????
    By shags38 in forum Customization from the Admin
    Replies: 11
    Last Post: 20 Aug 2012, 04:19 AM
  3. Replies: 2
    Last Post: 4 Jun 2010, 07:01 AM
  4. Trying to install SQL Patch for Admin Profiles mod
    By SaMortensen in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Oct 2008, 02:58 AM
  5. How do I run the stock_attribute.sql via Install SQL Patches in admin
    By vivaraquel in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Apr 2007, 01:55 AM

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