Title: PHP Error
Last modified: June 12, 2020

---

# PHP Error

 *  Resolved [pittbull](https://wordpress.org/support/users/pittbull/)
 * (@pittbull)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-395/)
 * I am getting this error:
    Notice: Object of class WP_Post could not be converted
   to int in /home/forest47/public_html/wp-content/plugins/events-manager/em-events.
   php on line 259
 * Any ideas about why this is happening?

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-395/#post-12986143)
 * Hi,
 * I haven’t seen this issue before, can you try to install and activate WP Safe
   Mode to narrow down the problem and see if this is a possible plugin or theme
   conflict? WP Safe Mode will virtually deactivate other plugins and revert back
   to the default theme you set. (see WP safe mode settings)
 * [https://wordpress.org/plugins/wp-safe-mode/](https://wordpress.org/plugins/wp-safe-mode/)
 *  Thread Starter [pittbull](https://wordpress.org/support/users/pittbull/)
 * (@pittbull)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-395/#post-12990525)
 * Unfortunately I had to get the website running so I took a different path. I 
   installed a copy of the site on another server and disabled all plugins. I continued
   to get the error regardless of which plugins were activated. I suspected this
   was related to the Wordfence plugin which was causing an error after an update.
   The Wordfence plugin would not activate because”it was generatring an error”.
   Despite un-installing Wordfence the PHP error persisted. I then installed Wordfence
   Assistant plugin and used it to remove all traces of Wordfence. Afterwards I 
   was able to activate Events Manager without any PHP error. I was also able to
   re-intall Wordfence without any further problems. I don’t know why it happened
   but it is working now.

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

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

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pittbull](https://wordpress.org/support/users/pittbull/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-395/#post-12990525)
 * Status: resolved