Critical Error when trying to edit/add listing
-
Hello!
I have been testing out directory plugins for a couple days and settled on Directorist, but after a day or so of successful trying, it has stopped working.
When I try to save edits to an existing listing, I get “There has been a critical error on this website. Please check your site admin email box for instructions.”
When I click on “Add Listing” in the menu, the page does not load completely (it is just a text field and the above error message on the page)WordPress version 6.2.2
Active theme: Travel Agency Pro (version 2.2.6)
Current plugin: Directorist – Business Directory Plugin (version 7.6.1)
PHP version 7.4.33Error Details
=============
An error of type E_ERROR was caused in line 1001 of the file <site home directory>/wp-content/plugins/directorist/includes/helper-functions.php.
Error message: Uncaught Exception: DateInterval::__construct(): Unknown or bad format (P9999999999999999D) in <site home directory>/wp-content/plugins/directorist/includes/helper-functions.php:1001
Stack trace:
#0 <site home directory>/wp-content/plugins/directorist/includes/helper-functions.php(1001): DateInterval->__construct()
#1 <site home directory>/wp-content/plugins/directorist/includes/classes/class-metabox.php(426): calc_listing_expiry_date()
#2 <site home directory>/wp-includes/class-wp-hook.php(308): ATBDP_Metabox->save_post_meta()
#3 <site home directory>/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#4 <site home directory>/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 <site home directory>/wp-includes/post.php(4671): do_action(I cannot figure out what I may have done to cause this, and I’ve done some troubleshooting already with no luck.
1. I have tried disabling all plugins except for Directorist
2. I have tried uninstalling and reinstalling the plugin.
3. I’ve tried disabling my theme and running only the Twenty Twenty Three theme.
4. I’ve updated to the latest version of WordPress
I do have one suspicion, but it’s unlikely: When I previously added a location with a special character. “Pāhoa” in the location sections of the Directorist plugin, it did not display correctly and was instead “P?hoa”. I went in and manually changed the location to “Pahoa” and this vaguely feels like it may have been when I started having trouble. Should I try dropping my database tables for Directorist? That’s the only step I haven’t tried yet.
- The topic ‘Critical Error when trying to edit/add listing’ is closed to new replies.