Support » Plugin: WP Calendar » [Plugin: WP Calendar] TinyMCE Error

  • Resolved karks88

    (@karks88)


    I use WP Calendar on several sites and love it! On one of my installs, I’m getting this error on the bottom of the screen whenever I add or edit an event:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_tiny_mce_preload_dialogs’ not found or invalid function name in /usr/www/users/ppjobs/papca/wp-includes/plugin.php on line 405

    I’ve tried updating my plugins, and even put a fresh install of 3.2.1 but the error is still there.

    Has anyone had this before? Is there a fix?

    http://wordpress.org/extend/plugins/wp-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • One possible fix is to change fsCalendarAdmin.php line 141:

    // mod, see: http://core.trac.wordpress.org/ticket/18001
    // add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs', 30 );
    // change to:
    add_action( 'admin_print_footer_scripts', 'wp_preload_dialogs', 30 );

    But if you turn on DEBUG in wp-config.php, it turns out all this tiny_mce stuff is deprecated anyway. Here are the warnings. Only the second one is caused by my possible fix:

    Notice: wp_tiny_mce is deprecated since version 3.3! Use wp_editor() instead.
    Notice: wp_preload_dialogs is deprecated since version 3.3! Use wp_editor() instead.

    See also: http://wordpress.org/support/topic/wp_tiny_mce-vs-wp_editor
    http://wordpress.org/support/topic/wordpress-33-breaks-wp_tiny_mce

    Plugin Author faebu

    (@faebu)

    new version using new functions if they are available (backward compatibility!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Calendar] TinyMCE Error’ is closed to new replies.