Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error in Bookings page while using memberpress plugin #710

@rashedripon

Description

@rashedripon

An error message on the bookings page:

**Warning: Missing argument 2 for MeprAppCtrl::cleanup_list_table_month_dropdown(), called in /home1/raysthel/public_html/tenseats/wp-includes/class-wp-hook.php on line 288 and defined in /home1/raysthel/public_html/tenseats/wp-content/plugins/memberpress/app/controllers/MeprAppCtrl.php on line 932

Notice: Undefined variable: post_type in /home1/raysthel/public_html/tenseats/wp-content/plugins/memberpress/app/controllers/MeprAppCtrl.php on line 934**

Reply from the memberpress team:

The error is caused by this line in Dokan plugin: https://plugins.trac.wordpress.org/browser/dokan-lite/tags/2.9.26/includes/functions.php#L2243

It should have two parameters, the second being a post type. However Dokan is invoking the filter with only one argument.

WordPress docs on the hook showing two parameters is found here: https://developer.wordpress.org/reference/hooks/months_dropdown_results/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions