Support » Plugin: Cimy User Extra Fields » Version 2.4.1 Warning: call_user_func_array() … cimy_update_ExtraFields

  • Resolved vtxyzzy

    (@vtxyzzy)


    I believe that cimy_user_extra_fields.php is missing the require for cimy_uef_profile.php, causing this error:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘cimy_update_ExtraFields’ was given in /home/content/26/8300626/html/waaa/family/wp-includes/plugin.php on line 406

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Marco Cimmino

    (@cimmo)

    Yea I did some scary changes in 2.4.1, can you tell me when and where you see this?

    I got the message when clicking ‘Register’ at the bottom of the registration screen. Unfortunately, I am unable to reproduce the error on a fresh install of WP and Cimy User Extra fields.

    I had disabled all plugins other than UEF and switched to the default Twenty Twelve theme to try to narrow down the cause, but still got the error. Here is the environment:

    WP 3.5.1
    UEF 2.4.1
    Several required fields for registration

    I did a grep for ‘cimy_update_ExtraFields’ in the plugin files and found 3 references:

    1. the function definition at line 522 of cimy_uef_profile.php
    2. a commented out add_action at line 563 of cimy_user_extra_fields.php
    3. an add_action(‘profile_update’…) at line 566 of c-u-e-f.php

    I made a guess that cimy_uef_profile.php was not getting loaded as I could not find a require for it. So, I added the require and the problem disappeared.

    Perhaps some other plugin did not clean up after itself when disabled?

    Hello,

    Have someone solved that problem ? Tryed everything i have found on internet.. nothing helps :/

    It shows when i click register after filling up the registration form..

    Best Regards,

    You can temporarily fix the problem by changing cimy_user_extra_fields.php at line 157 from this:

    require_once($cuef_plugin_dir.'/cimy_uef_functions.php');
    
    add_action('admin_init', 'cimy_uef_admin_init');

    to this:

    require_once($cuef_plugin_dir.'/cimy_uef_functions.php');
    require_once($cuef_plugin_dir.'/cimy_uef_profile.php');
    
    add_action('admin_init', 'cimy_uef_admin_init');

    Note that this is an emergency fix. It will be lost if you update Cimy User Extra Fields in the future.

    Hello,

    It is working! Thank you very much for quick help, many thanks!

    Great plugin btw.

    Plugin Author Marco Cimmino

    (@cimmo)

    Should be fixed in v2.4.2 sorry about this.

    Thanks for the quick response, Marco. You are the best!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Version 2.4.1 Warning: call_user_func_array() … cimy_update_ExtraFields’ is closed to new replies.