Title: PHP Deprecated
Last modified: March 8, 2025

---

# PHP Deprecated

 *  Resolved [cscweb](https://wordpress.org/support/users/cscweb/)
 * (@cscweb)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-deprecated-75/)
 * I am getting tons of errors in WP_Debug_log, the most numerous being the last
   entry (PHP Warning):
 * [06-Mar-2025 22:44:12 UTC] PHP Deprecated: strtotime(): Passing null to parameter#
   1 ($datetime) of type string is deprecated in /var/www/html/ic/mywebsite.org/
   wp-content/plugins/business-directory-plugin/includes/models/class-listing.php
   on line 968
 * [08-Mar-2025 11:59:12 UTC] PHP Deprecated: str_replace(): Passing null to parameter#
   3 ($subject) of type array|string is deprecated in /var/www/html/ic/mywebsite.
   org/wp-content/plugins/business-directory-plugin/includes/class-dispatcher.php
   on line 204
 * [08-Mar-2025 17:04:50 UTC] PHP Warning: Attempt to read property “name” on null
   in /var/www/html/ic/mywebsite.org/wp-content/plugins/business-directory-plugin/
   includes/compatibility/class-cpt-compat-mode.php on line 166
 * What do I need to do to fix the errors?

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

 *  Plugin Support [Garret L](https://wordpress.org/support/users/garret1996/)
 * (@garret1996)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-deprecated-75/#post-18352995)
 * Hi [@cscweb](https://wordpress.org/support/users/cscweb/)
 * Thank you for reaching out to us.
 * I will have to share these with our developer to look into. In the meantime, 
   could you please let me know which version of PHP you are using?
 * Please let me know!
 * Best regards,
 *  Thread Starter [cscweb](https://wordpress.org/support/users/cscweb/)
 * (@cscweb)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-deprecated-75/#post-18353013)
 * PHP Version 8.2.27
 *  Thread Starter [cscweb](https://wordpress.org/support/users/cscweb/)
 * (@cscweb)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-deprecated-75/#post-18406537)
 * I see that you have marked this as resolved. I’m sorry but I missed the solution.
   I am still getting tons of these errors (along with others). Can you post the
   solution again? Now the facebook follow and twitter follow (now X) have stopped
   working. Thank you.
 *  Plugin Support [Garret L](https://wordpress.org/support/users/garret1996/)
 * (@garret1996)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-deprecated-75/#post-18406563)
 * Hi [@cscweb](https://wordpress.org/support/users/cscweb/)
 * Thanks for following up here.
 * A solution for this will be in the next update. We marked this as resolved so
   our team knows that a bug report was created and our developer is aware of the
   issue.
 * If you are having a new issue, please create a new ticket for that with a link
   to a listing with the issue.
 * Best regards,

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

The topic ‘PHP Deprecated’ is closed to new replies.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Garret L](https://wordpress.org/support/users/garret1996/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/php-deprecated-75/#post-18406563)
 * Status: resolved