Title: ERROR while viewing an event
Last modified: June 7, 2018

---

# ERROR while viewing an event

 *  Resolved [mhoney](https://wordpress.org/support/users/mhoney/)
 * (@mhoney)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-while-viewing-an-event/)
 * Hello, when I click on event for details I get this error
 * Fatal error: Can’t use function return value in write context in /xxx/xxx/public_html/
   xxx/wp-content/plugins/simple-event-calendar/resources/views/frontend/event/show.
   php on line 16
 * Help!!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [grandwp](https://wordpress.org/support/users/grandwp/)
 * (@grandwp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-while-viewing-an-event/#post-10377810)
 * Dear [@mhoney](https://wordpress.org/support/users/mhoney/)
 * To fix the issue, please, update the PHP version you have now or
    replace this
   line of the code
 * `if(!empty(get_adjacent_post(false,'',true))){`
 * with this line
 *     ```
       $adjacentPost = get_adjacent_post(false,'',true);
       if(!empty($adjacentPost )){
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘ERROR while viewing an event’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-event-calendar_bb9cad.svg)
 * [Simple Event Calendar - Responsive Event Calendar for Wordpress](https://wordpress.org/plugins/simple-event-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-event-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-event-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [grandwp](https://wordpress.org/support/users/grandwp/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/error-while-viewing-an-event/#post-10377810)
 * Status: resolved