WordPress.org

Forums

Simply-VisiOn
[resolved] Perfect Visually, But Keeps Throwing Up Exceptions (3 posts)

  1. GhostReader
    Member
    Posted 11 months ago #

    This is my favorite theme and I really want to use it, but it keeps throwing up errors all over the place.

    When I go to add a post, it says this:
    "Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_category_transient_flusher' was given in /home/content/28/9370628/html/ninjauno/wp-includes/plugin.php on line 470"

    And then when I hit Publish, this happens:

    "Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_category_transient_flusher' was given in /home/content/28/9370628/html/ninjauno/wp-includes/plugin.php on line 470

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_category_transient_flusher' was given in /home/content/28/9370628/html/ninjauno/wp-includes/plugin.php on line 470

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/28/9370628/html/ninjauno/wp-includes/plugin.php:470) in /home/content/28/9370628/html/ninjauno/wp-admin/post.php on line 235

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/28/9370628/html/ninjauno/wp-includes/plugin.php:470) in /home/content/28/9370628/html/ninjauno/wp-includes/pluggable.php on line 1121"

    That's all the page says. It completely kicks me out of the dashboard.
    I thought it might be a problem with my WP install, but I tried the same with other themes on the same site and they all worked just fine.

  2. Modern WP Themes
    Member
    Theme Author

    Posted 11 months ago #

    Go to the theme directory and open this "/simply-vision/inc/template-tags.php" and replace the below code:- on line 232 and 233

    find this below code and

    add_action( 'edit_category', '_category_transient_flusher' );
    add_action( 'save_post', '_category_transient_flusher' );

    replace with this one

    add_action( 'edit_category', 'modernwpthemes_category_transient_flusher' );
    add_action( 'save_post', 'modernwpthemes_category_transient_flusher' );

    Hope it will work for you.

  3. andrezasv
    Member
    Posted 11 months ago #

    Modern WP Themes, you saved my life.

    Thank you very very very very much!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.