Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    England
    Posts
    95
    Plugin Contributions
    0

    Default 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.
    Last edited by PhillipHarrison; 7 Dec 2008 at 05:44 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    58,459
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Moved server and admin my store error

    Quote Originally Posted by PhillipHarrison View Post
    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.

    Quote Originally Posted by PhillipHarrison View Post
    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: http://tutorials.zen-cart.com/index.php?article=82
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Jan 2007
    Location
    England
    Posts
    95
    Plugin Contributions
    0

    Default 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 :)

 

 

Similar Threads

  1. Moved to new server, can't access store by IP
    By vegascoug in forum General Questions
    Replies: 3
    Last Post: 8 Sep 2008, 03:15 PM
  2. Moved Server-Installed new Store-NO GO
    By phillpal in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 Apr 2008, 05:24 PM
  3. Moved Server, Strange Admin Errors...
    By ssdsarah in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 7 Jan 2008, 03:40 PM
  4. Moved to new server, now unable to get in to admin
    By dssprogrammer in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 21 Oct 2007, 03:29 PM
  5. Moved Zen to new server - small error
    By Syn in forum General Questions
    Replies: 2
    Last Post: 15 Jun 2007, 11:23 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
  •