Title: Error When Activating Plug
Last modified: November 18, 2020

---

# Error When Activating Plug

 *  Resolved [rbollas](https://wordpress.org/support/users/rbollas/)
 * (@rbollas)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-when-activating-plug/)
 * I’m having issues activating the plugin. When I try to activate it I get the 
   following error:
 * Fatal error: Can’t use method return value in write context in /home/rbollas/
   public/fibbrew.com/wp-content/plugins/motopress-hotel-booking-lite/includes/emails/
   abstract-email.php on line 156
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/rbollas/public/fibbrew.com/wp-includes/functions.php:4221) in /home/
   rbollas/public/fibbrew.com/wp-content/plugins/motopress-hotel-booking-lite/includes/
   libraries/wp-session-manager/class-wp-session.php on line 127

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

 *  Thread Starter [rbollas](https://wordpress.org/support/users/rbollas/)
 * (@rbollas)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-when-activating-plug/#post-13684424)
 * I upgraded my PHP version from 5.4 to 5.6 and the issue went away. You might 
   want to tag this plugin as not compatible with PHP 5.4.
 *  Plugin Support [arsengunner](https://wordpress.org/support/users/arsengunner/)
 * (@arsengunner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/error-when-activating-plug/#post-13687565)
 * Hello [@rbollas](https://wordpress.org/support/users/rbollas/)! Thank you for
   letting us know, I am glad that the issue has been resolved. Please note that
   both PHP 5.4 and 5.6 are outdated and no longer supported by most of hosting 
   providers, it is recommended to keep the PHP version up to date in order to avoid
   such kind of issues.
 * Regards,
    Arsen

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

The topic ‘Error When Activating Plug’ is closed to new replies.

 * ![](https://ps.w.org/motopress-hotel-booking-lite/assets/icon.svg?rev=3313467)
 * [MotoPress Hotel Booking](https://wordpress.org/plugins/motopress-hotel-booking-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/motopress-hotel-booking-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/motopress-hotel-booking-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/motopress-hotel-booking-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/motopress-hotel-booking-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/motopress-hotel-booking-lite/reviews/)

## Tags

 * [php 5.4](https://wordpress.org/support/topic-tag/php-5-4/)

 * 2 replies
 * 2 participants
 * Last reply from: [arsengunner](https://wordpress.org/support/users/arsengunner/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/error-when-activating-plug/#post-13687565)
 * Status: resolved