• Resolved Anderson Narciso

    (@andersonnarciso)


    Hi guys!

    I’m getting a fatal error on my site when using Directorist. Here’s the error message:

    PHP Fatal error: Uncaught Error: Call to undefined function Directorist\is_plan_allowed_category() in /wp-content/plugins/directorist/includes/model/ListingForm.php on line 407

    It happens when I try to access the add listing form. I noticed the function is_plan_allowed_category() is being called, but it doesn’t seem to exist anymore, or is not loaded. I checked my plugins and I’m not using the Fee Manager or any paid plan add-ons.

    Can you please clarify:

    • Is this function only available when the Fee Manager add-on is active?
    • Should the core plugin check if the function exists before calling it?
    • What is the recommended way to fix this error without breaking listing category functionality?

    Temporary workaround:
    I created a dummy function in my theme functions.php to prevent the fatal error, but I’d prefer an official solution:

    if ( ! function_exists( 'is_plan_allowed_category' ) ) { function is_plan_allowed_category( $fm_plan ) { return array(); } }

    Any guidance would be appreciated!
    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hello @andersonnarciso

    Thank you for reaching out.

    It looks like you’re using both the Directorist Pricing Plan and the WooCommerce Pricing Plan at the same time. These two do not work together, so please use only one.

    Deactivate the Pricing Plan extension you don’t want to use, and also make sure to turn off any Directorist extensions you’re not using or don’t plan to use.

    If this doesn’t solve the issue, feel free to contact our support channel here – https://prnt.sc/cKSW-z2RTXrs. We’ll check your site and help you find a solution.

    Kind regards,

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error: Call to Undefined Function is_plan_allowed_category()’ is closed to new replies.