Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    England
    Posts
    82
    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  3. #3
    Join Date
    Jan 2007
    Location
    England
    Posts
    82
    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. v153 Moved To New Server, store Not Working
    By DK_Scully in forum General Questions
    Replies: 42
    Last Post: 19 Feb 2015, 06:54 PM
  2. Moved to a LINUX server and admin page comes up blank
    By bulpup in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 2 Apr 2013, 09:14 PM
  3. Replies: 4
    Last Post: 23 Jan 2011, 11:57 PM
  4. Replies: 2
    Last Post: 11 Feb 2009, 08:47 PM
  5. 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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR