Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2014
    Location
    United States
    Posts
    59
    Plugin Contributions
    0

    application error Need help undoing this SQL change

    How would i Undo this

    Code:
    # Add the following to your database via Zen Cart Admin.
    
    # NOTE...IF YOU USE A DATABASE PREFIX YOU MUST ADD IT INTO THESE TABLE UPDATES - FOR EXAMPLE:
    
    # If your db prefix is zen_, then change 
    # CREATE TABLE `free_gifts` ( 
    # to 
    # CREATE TABLE `zen_free_gifts` (
    
    
    
    
    CREATE TABLE `free_gifts` (
      `gift_id` tinyint(4) NOT NULL auto_increment,
      `threshold` mediumint(9) NOT NULL default '0',
      `products_id` mediumint(9) NOT NULL default '0',
      PRIMARY KEY  (`gift_id`)
    ) TYPE=MyISAM;
    
    insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values (1200, 'Gifts Image Width', 'GIFTS_IMAGE_WIDTH', '90', 'The pixel width of heading images', '4', '25', now(), now(), NULL, NULL);
    insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values (1201, 'Gifts Image Height', 'GIFTS_IMAGE_HEIGHT', '100', 'The pixel height of heading images', '4', '26', now(), now(), NULL, NULL);
    ALTER TABLE `products` ADD `products_carrot` tinyint(1) default '0' AFTER `products_status` ;

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Need help undoing this SQL change

    It should be the line below:
    Code:
    DROP TABLE `free_gifts`;
    DELETE FROM configuration WHERE configuration_key= GIFTS_IMAGE_WIDTH;
    DELETE FROM configuration WHERE configuration_key= GIFTS_IMAGE_HEIGHT;
    ALTER TABLE products DROP products_carrot;

  3. #3
    Join Date
    Jun 2014
    Location
    United States
    Posts
    59
    Plugin Contributions
    0

    Default Re: Need help undoing this SQL change

    it's saying no SQL database found, maybe it didn't install yet but I'm still getting an error for some reason
    this is what i tried to install: http://www.zen-cart.com/downloads.php?do=file&id=802

    I tried running the SQL thing then it showed up an error so i decided to upload the files.

    after i uploaded the files I tried it again and now it's saying WARNING: An Error occurred, please refresh the page and try again.

    And the admin page wouldnt even load.

    I deleted the new files from carrot and put my old ones back on and now my admin page don't work but why not my store page? WARNING: An Error occurred, please refresh the page and try again.

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Need help undoing this SQL change

    to instal you will need to change
    HTML Code:
    TYPE=MyISAM
    to
    HTML Code:
    ENGINE=MyISAM
    "Type=" is deprecated, will give an error

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

    Default Re: Need help undoing this SQL change

    Quote Originally Posted by StoreOwner View Post
    Careful reminder: That plugin is designed for a much older version of Zen Cart. It will require many alterations to be used on v1.5.x
    Installing it as-is will corrupt many core files, and also dump obsolete code into your site.
    .
    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
    Jun 2014
    Location
    United States
    Posts
    59
    Plugin Contributions
    0

    Default Re: Need help undoing this SQL change

    Thanks for the replies, Design75 your help with the mysql install fixed my issue now I ran into one other and i think it will work after this.

    when i overwrite admin\includes\functions\general.php it doesn't let me load the admin page


    also would like to say:
    Thanks for the information DrByte and for making zen cart possible.

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Need help undoing this SQL change

    Quote Originally Posted by StoreOwner View Post
    Thanks for the replies, Design75 your help with the mysql install fixed my issue now I ran into one other and i think it will work after this.

    when i overwrite admin\includes\functions\general.php it doesn't let me load the admin page


    also would like to say:
    Thanks for the information DrByte and for making zen cart possible.
    I am no familiar with the mod you are trying to install , but drByte already said it is ancient. So I expect it lies in the fact it needs to be updated to work with new Zen cart versions.
    Did you just overwrite the file, or merge it to add the stuff for the new mod? Otherwise you might have ended up with the wrong version of general.php, which would explain why you can not load your admin.

  8. #8
    Join Date
    Jun 2014
    Location
    United States
    Posts
    59
    Plugin Contributions
    0

    Default Re: Need help undoing this SQL change

    Quote Originally Posted by Design75 View Post
    I am no familiar with the mod you are trying to install , but drByte already said it is ancient. So I expect it lies in the fact it needs to be updated to work with new Zen cart versions.
    Did you just overwrite the file, or merge it to add the stuff for the new mod? Otherwise you might have ended up with the wrong version of general.php, which would explain why you can not load your admin.
    renamed the old with _old.php

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Need help undoing this SQL change

    Quote Originally Posted by StoreOwner View Post
    renamed the old with _old.php
    First off, renaming files in ZC should never still end with .php.
    Second, for the purpose of the site loading the code, this type of renaming is the same as replacing the file. The code content of the changes made to this version of the file applicable to make this plugin function need to be carried over to the version for your store or incorporated otherwise. It's been a while since I've looked for a possible new compare utility, but winmerge and beyond compare are two applications that come to mind to help with this type of merge which should be verified with any installation.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jun 2014
    Location
    United States
    Posts
    59
    Plugin Contributions
    0

    Default Re: Need help undoing this SQL change

    im having an issue now, i installed it like you said but now when users go to 2nd checkout page and try to confirm it, it brings them back to the first 1...

    i tried:
    DROP TABLE `free_gifts`;
    DELETE FROM configuration WHERE configuration_key= GIFTS_IMAGE_WIDTH;
    DELETE FROM configuration WHERE configuration_key= GIFTS_IMAGE_HEIGHT;
    ALTER TABLE products DROP products_carrot;

    "Uknown Table"

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 8 Jan 2014, 06:25 PM
  2. Need help to SQL change the Product Add Date
    By explorer1979 in forum General Questions
    Replies: 2
    Last Post: 1 Sep 2012, 03:22 PM
  3. SQL Help - Need To Change Product Type
    By robinstl in forum General Questions
    Replies: 5
    Last Post: 16 Dec 2008, 02:45 AM
  4. Need help to change this TEXT seems a unique problem
    By Shadow in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 22 Aug 2007, 03:43 PM
  5. Need help to change this TEXT seems a unique problem
    By Shadow in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 10 Aug 2007, 02:08 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