WP Calendar
[resolved] TinyMCE Error (3 posts)

  1. karks88
    Posted 3 years ago #

    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?


  2. kitchin
    Posted 3 years ago #

    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

  3. faebu
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic