Does anyone know where the edit button has gone? When i click on the info button the box appears but whe i click on 'edit' nothing happens. Attachment 17715Attachment 17714
Thanks.
Printable View
Does anyone know where the edit button has gone? When i click on the info button the box appears but whe i click on 'edit' nothing happens. Attachment 17715Attachment 17714
Thanks.
You have partial white page, as you are also missing the footer. Check your log files for an debug file.
[27-Feb-2018 11:33:13 Europe/London] PHP Fatal error: Call to undefined function cfg_select_option() in /***/***/***/configuration.php(195) : eval()'d code on line 1
Would suggest also addressing the items in the posting tips to help identify how this issue arose.
Posting tips appear above the message box when replying to or initiating a post.
What version of Zen Cart are you using? 1.5.5
Has your site been upgraded? When? From what version(s)? Yes, a month a go from version 1.3 i think
If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?) Hosting company upgraded for us
What plugins/addons have you installed? When? If your problems are payment-related, what payment module(s) are you using? If it's shipping-related, which shipping module(s) are you using? Yes just the cateogrie restriction add on to hide prices.
If your problems are language-pack related (non-English), have you checked that all the language files are loaded and correct? Yes
HOW did you install Zen Cart? (upload via FTP and run zc_install, or a one-click install from your hosting company? (one-click installs might mean you don't have enough information about your site/server to make customizations easily)) N/A
What version of PHP and MySQL is your server using? (See Admin->Tools->Server Info) PHP Version 5.4.17 & MySQL 5.5.32
WHEN did the problem "start"? How does that compare with other events of your hosting company, changes you've made to your site files/addons, or your admin settings, etc? Since template was installed last Friday
Please post the contents of related "debug logs" generated by Zen Cart (wrap the content intags please!). [27-Feb-2018 11:32:54 Europe/London] PHP Fatal error: Call to undefined function cfg_select_option() in /web/sites/mas-uk.com/wwwroot/www/control/configuration.php(195) : eval()'d code on line 1Code:and
If this is your first store, have you tested all aspects of transactions before going live? No and Yes
In what ways is your site customized or different from a brand new uncustomized install?
Please post your site URL* so we can take a look at it. This is especially important if you're encountering display/layout problems, so the problem can be seen directly. - www.mas-uk.com
If you're encountering problems that could be related to your server or hosting company, include the name of your hosting company (not their URL).
HAVE YOU LOOKED IN THE FAQ AREA for answers to your question? (ie: a search for your error message or what you want to edit/change, etc)
Have you searched the FORUM for your error message or for answers to the question you're asking?
phpMyAdmin, run the following sql query and post the results:
SELECT * FROM `configuration` WHERE `set_function` LIKE 'cfg_select_option%';
it seems something is probably wrong in the database as the function that it calls should be zen_cfg_select_option not cfg_select_option.
best.
jake,
not sure how your database got screwed up. assuming you ran the query correctly.
i ran the following sql commands:
my counts are: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%';
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.
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:
you can compare to the count of 385 to see if there are other problems. again, this total should be 0.Code:SELECT count(*) FROM `configuration` WHERE `set_function` LIKE 'cfg_%';
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:
good luck.PHP Code:
function cfg_select_option($select_array, $key_value, $key = '') {
return zen_cfg_select_option($select_array, $key_value, $key);
}
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.
i have tested both of these mysql commands, but again, use with caution.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_%';
best.