WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] Version 2.4.1 Warning: call_user_func_array() ... cimy_update_ExtraFields (8 posts)

  1. vtxyzzy
    Member
    Posted 1 year ago #

    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/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. vtxyzzy
    Member
    Posted 1 year ago #

    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?

  4. digitalskyline
    Member
    Posted 1 year ago #

    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,

  5. vtxyzzy
    Member
    Posted 1 year ago #

    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.

  6. digitalskyline
    Member
    Posted 1 year ago #

    Hello,

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

    Great plugin btw.

  7. Marco Cimmino
    Member
    Plugin Author

    Posted 1 year ago #

    Should be fixed in v2.4.2 sorry about this.

  8. vtxyzzy
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic