Title: Testing plugin &#8211; PHP error
Last modified: February 20, 2023

---

# Testing plugin – PHP error

 *  [jesmadsen](https://wordpress.org/support/users/jesmadsen/)
 * (@jesmadsen)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/testing-plugin-php-error/)
 * Just testing your plugin on a temp site and got this error.
   Got error ‘PHP message:
   PHP Fatal error:  Uncaught Error: Call to a member function format() on bool 
   in wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/frontend/class-wphb-
   rooms-controller.php:75
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftesting-plugin-php-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Testing plugin – PHP error’ is closed to new replies.

 * ![](https://ps.w.org/wp-hotel-booking/assets/icon-256x256.png?rev=2442679)
 * [WP Hotel Booking](https://wordpress.org/plugins/wp-hotel-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hotel-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotel-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotel-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotel-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotel-booking/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jesmadsen](https://wordpress.org/support/users/jesmadsen/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/testing-plugin-php-error/)
 * Status: not resolved