Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Default Warning: call_user_func(cfg_get_zone_name) ...

    Need some help please.

    Just updated Zen-Cart because hosting service upgraded php/mysql, which broke existing zen-cart

    All seems to work except...

    When in the admin section > Configuration > My Store, I get the following error directly below "My Store"


    Warning: call_user_func(cfg_get_zone_name) [function.call-user-func ]: First argument is expected to be a valid callback in /home/c0pcar/public_html/store/admin/includes/functions/general.php on line 1544


    ---------- Zen-Cart Information ----------
    Zen Cart 1.3.8
    Database Patch Level: 1.3.8
    v1.3.8 [2007-12-18 03:07:59] (Version Update 1.3.7->1.3.8)
    v1.3.7 [2007-12-18 03:07:29] (Version Update 1.3.6->1.3.7)
    v1.3.6 [2007-12-18 03:06:54] (Version Update 1.3.5->1.3.6)
    v1.3.5 [2007-12-18 03:06:35] (Version Update 1.3.0.2->1.3.5 )
    v1.3.0.2 [2007-12-18 03:03:28] (Version Update 1.3.0.1->1.3.0.2)
    v1.3.0.1 [2007-12-18 02:52:24] (Version Update 1.3.0->1.3.0.1)
    v1.3.0 [2007-12-18 02:51:28] (Version Update 1.2.7->1.3.0)
    v1.2.7 [2006-03-02 13:56:59] (Fresh Installation)

    Server OS: Linux 2.6.19.1.dn.p4
    Database: MySQL 5.0.27-standard
    Database Data Size: 822 kB
    Database Index Size: 522 kB

    HTTP Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a
    PHP Version: 5.2.5 (Zend: 2.2.0)
    PHP Memory Limit: 10M
    PHP Safe Mode: Off
    PHP File Uploads: On
    Max Size: 5M
    POST Max Size: 10M

  2. #2
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Warning: call_user_func(cfg_get_zone_name) ...

    follow-up .. more errors..

    admin section > Configuration > Customer Details
    Warning: call_user_func(get_country_name) [function.call-user-func]: First argument is expected to be a valid callback in /home/c0pcar/public_html/store/admin/includes/functions/general.php on line 1544

    admin section > Configuration > Shipping/Packaging
    Warning: call_user_func(get_country_name) [function.call-user-func]: First argument is expected to be a valid callback in /home/c0pcar/public_html/store/admin/includes/functions/general.php on line 1544

    admin section > Configuration > Product Listing > Display Multiple Products Qty Box Status and Set Button Location
    Fatal error: Call to undefined function cfg_select_option() in /home/c0pcar/public_html/store/admin/configuration.php(192) : eval()'d code on line 1

    admin section > Configuration > Stock > Products status in Catalog when out of stock should be set to
    Fatal error: Call to undefined function cfg_select_option() in /home/c0pcar/public_html/store/admin/configuration.php(192) : eval()'d code on line 1

  3. #3
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Warning: call_user_func(cfg_get_zone_name) ...

    More follow-up ...

    I'm no programmer, but the error message seems to indicate a function syntax mismatch.
    Should the call to function get_country_name really be zen_get_country_name ??


    admin section > Configuration > Shipping/Packaging
    Warning: call_user_func(get_country_name) [function.call-user-func]: First argument is expected to be a valid callback in /home/c0pcar/public_html/store/admin/includes/functions/general.php on line 1544

    Code:
    337  function zen_get_country_name($country_id) {
    338    global $db;
    339    $country = $db->Execute("select countries_name
    340                             from " . TABLE_COUNTRIES . "
    341                             where countries_id = '" . (int)$country_id . "'");
    342
    343    if ($country->RecordCount() < 1) {
    344      return $country_id;
    345    } else {
    346      return $country->fields['countries_name'];
    347    }
    348  }

    Code:
    General.php
    
    1542  function zen_call_function($function, $parameter, $object = '') {
    1543    if ($object == '') {
    1544      return call_user_func($function, $parameter);
    1545    } elseif (PHP_VERSION < 4) {
    1546      return call_user_method($function, $object, $parameter);
    1547    } else {
    1548      return call_user_func(array($object, $function), $parameter);
    1549    }
    1560  }

    Same question here.
    cfg_select_option -vs- zen_cfg_select_option

    admin section > Configuration > Product Listing > Display Multiple Products Qty Box Status and Set Button Location
    Fatal error: Call to undefined function cfg_select_option() in /home/c0pcar/public_html/store/admin/configuration.php(192) : eval()'d code on line 1

    Code:
    General.php
    Line #1011 : function zen_cfg_select_option($select_array, $key_value, $key = '') {

  4. #4
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Have a Drink Solved Re: Warning: call_user_func(cfg_get_zone_name) ...

    I found the error of my ways. In short, I had manually edited the backup.sql to have removed zen_ prefix from tables prior to importing db.

    This post helped me.
    http://www.zen-cart.com/forum/showth...valid+callback

    My solution consisted of:
    1. making another backup of my existing(old) database.
    2. create new empty DB for new install of Zen-Cart.
    3. edit the include/configure.php and admin/includes/configure.php
    4. go through the DB upgrade process using zc_install/index.php

    Since I was upgrading from 1.26 to 1.38, I had the step through this process one checkbox at a time, ivoking zc_install/index.php several times. Trying to upgrade with all checkboxes (applicable) enabled boomed horribly.

    However, my store is finally back in business thanks to this forum and it's members.

    Best Regards

  5. #5
    Join Date
    Dec 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: Solved Re: Warning: call_user_func(cfg_get_zone_name) ...

    Quote Originally Posted by 24jedi View Post
    I found the error of my ways. In short, I had manually edited the backup.sql to have removed zen_ prefix from tables prior to importing db.

    This post helped me.
    http://www.zen-cart.com/forum/showth...valid+callback

    My solution consisted of:
    1. making another backup of my existing(old) database.
    2. create new empty DB for new install of Zen-Cart.
    3. edit the include/configure.php and admin/includes/configure.php
    4. go through the DB upgrade process using zc_install/index.php

    Since I was upgrading from 1.26 to 1.38, I had the step through this process one checkbox at a time, ivoking zc_install/index.php several times. Trying to upgrade with all checkboxes (applicable) enabled boomed horribly.

    However, my store is finally back in business thanks to this forum and it's members.

    Best Regards
    Thanks for posting your process but I am completely new this is and this all sound greek to me. Are there any simpler instructions to resolve this problem? I am getting: call_user_func(UseRewardPointStateFunction) [function.call-user-func]: First argument is expected to be a valid callback in /public_html/store/admin/includes/functions/general.php on line 1544.

 

 

Similar Threads

  1. Replies: 8
    Last Post: 19 Sep 2012, 03:37 AM
  2. Replies: 1
    Last Post: 10 Dec 2010, 09:48 PM
  3. PHP Warning: call_user_func(zen_reset_cache_data_seo_urls)
    By 3601965 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 2 Nov 2010, 01:06 AM
  4. warning: call_user_func(zen_cfg_password_display
    By 100asa in forum General Questions
    Replies: 0
    Last Post: 14 Sep 2009, 07:20 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