• Resolved Venutius

    (@venutius)


    When I try to save a page when BP Simple Events is loaded, I’m getting several instances of the following error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘pp_hide_events_meta_fields’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 300

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘pp_hide_events_meta_fields’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 300

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shanebp

    (@shanebp)

    Thanks for this report.
    It happens when saving Posts or Pages.
    It is caused by an incorrect function name in a filter hook.

    The solution…

    In this file: buddypress-simple-events\inc\pp-events-functions.php
    Change: add_filter( 'is_protected_meta', 'pp_hide_events_meta_fields', 10, 2 );
    To: add_filter( 'is_protected_meta', 'pp_events_hide_meta_fields', 10, 2 );

    I will push up a new release with this fix later today.

    Thread Starter Venutius

    (@venutius)

    Thanks, I’ll give it a go.

    Thread Starter Venutius

    (@venutius)

    Yep that worked, thanks again for the quick response.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error’s when saving page’ is closed to new replies.