If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Moved server and admin my store error

Moved server and admin my store error

Locked

Started by phillipharrison on 7 Dec 2008, 4:39 PM · Views: 1,180

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Dec 2008, 4:39 PM
#1
phillipharrison avatar

phillipharrison

New Zenner

Join Date:
Jan 2007
Location:
England
Posts:
83
Plugin Contributions:
0

Moved server and admin my store error

Hello,

Moved a zencart shop from a shared hosting onto a dedicated server. Took some doing to be honest but all looks good apart from 1 thing

In the configuration My Store, the county field is blank so that page has an error:

Warning: call_user_func(get_country_name) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/****.com/admin/includes/functions/general.php on line 2986

Warning: call_user_func(cfg_get_zone_name) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/****.com/admin/includes/functions/general.php on line 2986

Field in the database for country and zone seem fine. Any ideas?

[edit]
Also found that when adding a new item to the new place, when you try to look at that item on the shop front it brings up a blank page.

8 Dec 2008, 12:52 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Moved server and admin my store error

PhillipHarrison:

Warning: call_user_func(get_country_name) [function.call-user-func]: First argument is expected to be a valid callback in ...Since the function is actually "zen_get_country_name", that error tells me that you did a mass find-and-replace of "zen_" in your database backup .sql script before uploading, presumably to change table prefixes.
It would be more appropriate to search and replace on "TABLE zen_" and "INTO zen_" instead of just "zen_".

You'll want to redo your database import after fixing the data.

PhillipHarrison:

Also found that when adding a new item to the new place, when you try to look at that item on the shop front it brings up a blank page.
Blank pages are the result of syntax errors. See the debug util in step 2a: https://www.zen-cart.com/tutorials/index.php?article=82

.
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.

9 Dec 2008, 8:35 AM
#3
phillipharrison avatar

phillipharrison

New Zenner

Join Date:
Jan 2007
Location:
England
Posts:
83
Plugin Contributions:
0

Re: Moved server and admin my store error

Hi DrByte,

Yes, sorry i should of updated this thread.

I realised thats exactly what i did and made the appropriate fixes. Also with the transfer had lots of corrupted files.

Strangely, when downloading from the old server, lots of files received a blank line at the bottom of the file. No idea how that happens but a pain removing them all.

All sorted :)