Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Modules - Edit details not displaying

Modules - Edit details not displaying

Locked

Views: 1,614

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Apr 2009, 4:43 AM
#1
madmickc avatar

madmickc

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Modules - Edit details not displaying

Hope I have put this in the right area .

Under any of my modules (Shipping, Payment, Order Total) if I click on edit for any of the modules under these I do not get the edit options. Instead the 1st 2 columns widen so as only 4 columns are on the screen (no there is not a scroll to scroll across).

This only happens on my testing server and not on my live shop. I have done a full copy of the live store to my testing server, droppped and recreated the tables in the database so in theory everything is the same.

Any help appreciated.

25 Apr 2009, 5:59 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Modules - Edit details not displaying

That's symptomatic of a PHP error occurring.

Use the Debug Logging utility mentioned in this article, and install it on the admin side, then see what shows in the logs when the problem occurs again: https://www.zen-cart.com/tutorials/index.php?article=82

25 Apr 2009, 7:34 AM
#3
madmickc avatar

madmickc

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Modules - Edit details not displaying

And the error is:

25-Apr-2009 17:32:08] PHP Fatal error: Call to undefined function cfg_select_option() in C:\Inetpub\wwwroot\ScrappyBitz\store\admin\modules.php(282) : eval()'d code on line 1

I attempted to edit Zone Rates

25 Apr 2009, 7:41 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Modules - Edit details not displaying

madmickc:

Call to undefined function cfg_select_option()
When you copied your live site to your dev workspace, you went into your raw .sql backup file and did a search-and-replace for "zen_" to attempt to remove the "zen_"prefix from all the tablenames.
However, that also broke all the function names and several other things that start with "zen_".
Thus, you corrupted your database.

If you want to use that approach, make sure you ONLY replace the table names, not field names or data inside field records.

You'll need to re-import your data with a good backup, not an incorrectly-mangled one.

25 Apr 2009, 8:01 AM
#5
madmickc avatar

madmickc

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Modules - Edit details not displaying

Cool. That is exactly what I have done. Off to fix the database problem now. From reading other threads I thought it was a DB problem but for the life of me I couldn't figure out what it was as everything else was OK.

Thanks again.

25 Apr 2009, 8:11 AM
#6
madmickc avatar

madmickc

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Modules - Edit details not displaying

Thank you again DrByte.

Worked a treat :clap::clap::clap:

Now to play with some shipping modules.