Zen Cart Logo
Forums / Customization from the Admin / cannot edit in admin panel

cannot edit in admin panel

Views: 6,219

Results 1 to 20 of 44
04 Jun 2013, 02:08
#1
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

cannot edit in admin panel

Changed hosting companies and now I cannot edit in the admin panel. For example, go to modules/shipping and highlight table rate and click edit and the box that had the edit button in it is gone and the rest of the screen expands to the right. I don't know what I did. I have looked thru the FAQ's and sections of the forum but cannot find anything. If I type "cannot edit in admin panel" in the search bar, what I get back for a search result is "cannot, edit, in, admin, panel" and it searches for articles with each individual word in it and the results are not what I wanted. I am a great cabinet maker but struggle with my website, but that's how I learn.:blush:

04 Jun 2013, 03:28
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: cannot edit in admin panel

Changed hosting companies
How did you upload your ZenCart files??

04 Jun 2013, 04:17
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

Sounds like a bak up file/copy is in your directory:
/includes/modules/shipping

this is an auto loading directory ...

What debug error message do you see in:
/logs

04 Jun 2013, 16:22
#4
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

I had my computer guy do it and he is out of town. I was going to try and fix it myself but I will wait for him. This might get me in more trouble than I want if I try it myself. Thanks for the feedback.

04 Jun 2013, 16:25
#5
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

It's not only the shipping module, but even in the configure dropdown.:dontgetit

04 Jun 2013, 16:47
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

Could you perhaps post a screen shot?

Are you getting any debug logs in /logs

05 Jun 2013, 05:48
#7
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

Attachment 12614Attachment 12615
Where do you find the debug logs. Remember, I am not computer savvy. Hope the images show up.

05 Jun 2013, 06:04
#8
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

This is what I found.
[04-Jun-2013 23:43:52 America/Denver] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mmb_get_zone_class_title' not found or invalid function name in /home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php on line 1706
Thanks for your help.

05 Jun 2013, 14:13
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

In the Tools ... Developers Tool Kit ... in the bottom input box, can you do a search on:
function mmb_get_zone_class_title

and select Catalog/Admin ... then click search ...

What comes up?

Next, do a search on:
zen_get_zone_class_title

and select Catalog/Admin ... then click search ...

What comes up?

05 Jun 2013, 14:20
#10
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

There is another thread that addresses this issue but I cannot figure out the end result. The debug log about 100 entries in it in the last few days. I opened the admin panel this morning and went to modules/shipping/table rate and then clicked edit. These are the three debug logs that I got:

[05-Jun-2013 07:57:13 America/Denver] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mmb_get_tax_class_title' not found or invalid function name in /home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php on line 1706
[05-Jun-2013 07:57:13 America/Denver] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mmb_get_zone_class_title' not found or invalid function name in /home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php on line 1706

[05-Jun-2013 07:57:17 America/Denver] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mmb_get_tax_class_title' not found or invalid function name in /home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php on line 1706
[05-Jun-2013 07:57:17 America/Denver] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mmb_get_zone_class_title' not found or invalid function name in /home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php on line 1706

[05-Jun-2013 07:57:20 America/Denver] PHP Fatal error: Call to undefined function mmb_cfg_select_option() in /home2/fettaffe/public_html/zencart/zenadmin/modules.php(315) : eval()'d code on line 1

The only other thing I remember doing was at the top of the screen in the admin panel there was a yellow highlighted text that said the files were over so many days old so to back them up. I clicked the text and it took me to the admin activity log manager to review or export logs and I did that. Don't know if that had anything to do with it.

05 Jun 2013, 14:29
#11
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

Error: No matching Configuration Keys were found ... function mmb_get_zone_class_title

2nd search for zen_get_zone_class_title:

/home2/fettaffe/public_html/zencart/includes/modules/payment/authorizenet.php

Line #521 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUTHORIZENET_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/authorizenet_aim.php

Line #487 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUTHORIZENET_AIM_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/authorizenet_echeck.php

Line #498 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/cod.php

Line #111 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_COD_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/freecharger.php

Line #112 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_FREECHARGER_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/linkpoint_api.php

Line #681 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone (restrict to)', 'MODULE_PAYMENT_LINKPOINT_API_ZONE', '0', 'If you want only customers from a particular zone to be able to use this payment module, select that zone here.', '6', 121, 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/moneyorder.php

Line #109 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_MONEYORDER_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/paypal.php

Line #495 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPAL_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '4', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/paypaldp.php

Line #1047 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPALDP_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '25', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/payment/paypalwpp.php

Line #589 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPALWPP_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '25', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/flat.php

Line #83 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_FLAT_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/freeoptions.php

Line #229 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_FREEOPTIONS_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/freeshipper.php

Line #83 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_FREESHIPPER_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/item.php

Line #87 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_ITEM_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/perweightunit.php

Line #147 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_PERWEIGHTUNIT_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/storepickup.php

Line #128 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_STOREPICKUP_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/includes/modules/shipping/table.php

Line #188 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_TABLE_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");

/home2/fettaffe/public_html/zencart/zenadmin/includes/functions/general.php

Line #1711 : function zen_get_zone_class_title($zone_class_id) {

Match Lines found: 18

I also noticed that in the configuration/shipping packaging screen that the country of origin is blank and when I click edit to enter the country, the edit screen also disappears.

05 Jun 2013, 14:37
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

Could you also do a search on just:
mmb_get_zone_class_title

It almost sounds like something is trying to use:
mmb_get_zone_class_title

vs using:
zen_get_zone_class_title

05 Jun 2013, 14:47
#13
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

Here is the link to the other thread that I found. I would need help with the sql part of the answer.

http://www.zen-cart.com/forum/showthread.php?t=164099

05 Jun 2013, 14:57
#14
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

Here is what I get highlighted in yellow:
Searching 892 files ... for: mmb_get_zone_class_title
Match Lines found: 0
Error: No matching Configuration Keys were found ... mmb_get_zone_class_title

05 Jun 2013, 15:14
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

Let's try one more thing ...

Go to your phpMyAdmin for the database that you are using and in the SQL run this:

SELECT * FROM configuration WHERE use_function LIKE '%get_zone_class_title%';

NOTE: check if you are using database prefixes such as zen_ and if so, you would need to run:

SELECT * FROM [B]zen_[/B]configuration WHERE use_function LIKE '%get_zone_class_title%';

What comes up that has the:
mmb_get_zone_class_title

in it?

Then try to see if anything else is using the mmb_

SELECT * FROM configuration WHERE use_function LIKE '%mmb%';
05 Jun 2013, 15:29
#16
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

I don't know how to get to phpMyAdmin. 40 years of woodworking, 0 years of trying to figure zencart problems:dontgetit

05 Jun 2013, 15:42
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

You should be able to find phpMyAdmin in the Control Panel for your domain ...

Once there, find the database that you use for your data, the one named in:
/includes/configure.php

If you have trouble finding phpMyAdmin, contact your hosting provider for additional details ...

05 Jun 2013, 16:31
#18
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

I found the area you wanted me to go to with the help of bluehost but when I ran this in the sql--SELECT * FROM configuration WHERE use_function LIKE '%get_zone_class_title%';-- I got this message--#1146 - Table 'fettaffe_zen1.configuration' doesn't exist.
I also do not see--mmb_get_zone_class_title-- in the list of mmb files.
I have to get to work so I will check back at the end of the day. Thank you so much for your continued help.

06 Jun 2013, 16:02
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: cannot edit in admin panel

When you look at your database in phpMyAdmin, do you see the table:
configuration

or do you see the table:
something_configuration

08 Jun 2013, 14:06
#20
dave_l avatar

dave_l

New Zenner

Join Date:
May 2012
Posts:
34
Plugin Contributions:
0

Re: cannot edit in admin panel

In my database I see mmb_configuration, there is also a mmb_configuration_groups.