Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Edit button gone

    Quote Originally Posted by carlwhat View Post
    jake,
    not sure how your database got screwed up. assuming you ran the query correctly.

    i ran the following sql commands:

    Code:
    SELECT count(*)
    FROM `configuration`;
    
    SELECT count(*) FROM `configuration` WHERE `set_function` LIKE 'cfg_select_option%';
    
    SELECT count(*) FROM `configuration` WHERE `set_function` LIKE 'zen_cfg_select_option%';
    my counts are:

    919
    0
    425

    now your numbers can be different; but your problem is that the 2nd query should be 0. unless you have defined a function call cfg_select_option which does NOT look to be part of the ZC base package.

    best.
    Just ran it and my counts are;

    1298
    385
    28


    ?

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,848
    Plugin Contributions
    11

    Default Re: Edit button gone

    jake,
    you are a funny guy. i admire your resourcefulness.

    #1 - your database is screwed up. someone did that. someone with access to your database. perhaps you accidentally did it; or someone before you. it does NOT strike me as a hacker. it does strike me as an admin making a mistake.
    #2 - perhaps this link will shed some light on the situation you are in:
    https://www.zen-cart.com/showthread....fter-upgrading
    #3 - great people over at stackoverflow. some of us here are even over there. your reputation of 1 suggests you are not an avid user of that site. and your question getting downvoted is indicative of that.
    #4 - you will have better odds of getting your problem resolved here on the ZC forum than there. but again, props to u for trying over there.

    now back to your problem at hand. your db is screwed up. hopefully you read the link i provided above and perhaps you understood it. the question to me is whether there are other zen_cfg_* functions that were replaced or not. you can compare the count my running this sql statement:

    Code:
    SELECT count(*) FROM `configuration` WHERE `set_function` LIKE 'cfg_%';
    you can compare to the count of 385 to see if there are other problems. again, this total should be 0.

    if there are more functions that got removed in the database, then i would suggest to you to fix the database. not an easy process, although doable for sure. that is probably the ideal method. if it is just this one function that is screwed up in the database, ie the above query came up with 385, then you can create a file here:

    /YOUR_ADMIN/includes/extra_datafiles/admin_mods.php

    with the following code:
    PHP Code:
    function cfg_select_option($select_array$key_value$key '') {
        return 
    zen_cfg_select_option($select_array$key_value$key);

    good luck.
    Last edited by carlwhat; 2 Mar 2018 at 04:44 PM.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,848
    Plugin Contributions
    11

    Default Re: Edit button gone

    ok, 1 last thing. i'm guessing that the problem is not related to only zen_cfg_select_option, but also to any zen_cfg_* function.

    you can try the following 2 mysql commands. the first 1 will make a copy of your configuration table, the 2nd one will replace any problem set functions with hopefully the correct one. please note that mysql commands come with no warranty of any kind, and really run the risk of losing data. so ensure you have a good backup.

    Code:
    CREATE TABLE configuration_bkp AS (SELECT * FROM configuration);
    
    UPDATE configuration
    SET set_function = REPLACE(set_function, 'cfg', 'zen_cfg')
    WHERE `set_function` LIKE 'cfg_%';
    i have tested both of these mysql commands, but again, use with caution.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Unable to edit categories - edit button missing!
    By ontoit in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 Aug 2016, 06:36 AM
  2. Replies: 6
    Last Post: 5 Nov 2010, 06:58 PM
  3. Upgrade button gone - zc_install
    By amylynpace in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 22 Sep 2010, 08:12 PM
  4. edit capabilities gone from shipping module
    By wotnow in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 25 Apr 2010, 05:12 AM
  5. Shopping gone after edit of Shopping_cart.php file
    By pritchb in forum General Questions
    Replies: 4
    Last Post: 4 Jan 2010, 06:40 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