Fatal Error: Call to Undefined Function is_plan_allowed_category()
-
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 407It 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 themefunctions.phpto 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!
The topic ‘Fatal Error: Call to Undefined Function is_plan_allowed_category()’ is closed to new replies.