Title: Fatal PHP error
Last modified: October 21, 2016

---

# Fatal PHP error

 *  Resolved [seoidau](https://wordpress.org/support/users/seoidau/)
 * (@seoidau)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-php-error-9/)
 * Hi
 * Developed a site locally with Xampp and the plugin worked fantastically.
 * However sent the site live (deployed by [Duplicator](https://en-au.wordpress.org/plugins/duplicator/))
   and this plugin took down my site with the following error:
 * `Fatal error: Can't use method return value in write context in /home/nordicwareau/
   public_html/wp-content/plugins/giftable-for-woocommerce/public/Public.php on 
   line 232`
 * Deactivated the plugin via FTP and the site works as intended. Now, if I go to
   reinstall the plugin then the public side fails with the above error whilst the
   admin side still functions with no signs of problems.
 * Your plugin is the only one I can find that allows me to do what I need (free
   gift with a product _category_ purchase), so I’m hoping a resolution for this
   quickly. Thanks in advance. 🙂
    -  This topic was modified 9 years, 7 months ago by [seoidau](https://wordpress.org/support/users/seoidau/).

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

 *  Plugin Author [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * (@decomteam)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-php-error-9/#post-8337615)
 * Could you confirm:
    – PHP version ? (minimal PHP version required is 5.6+) – 
   WP version – WC version – Theme you are using
 *  Thread Starter [seoidau](https://wordpress.org/support/users/seoidau/)
 * (@seoidau)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-9/#post-8365610)
 * Ooooh, the ol’ PHP version chestnut…
 * Sorry, really pushed for time I didn’t notice there was a difference in PHP versions
   where I was editing locally versus deploying. It was 5.4.35 live and now updated
   to 5.6.27 and it works fantastically once again.
 * Thank-you for your help. 🙂
 *  Plugin Author [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * (@decomteam)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-9/#post-8366448)
 * Yeah, PHP required version is ** 5.6>**
 * Glad you got it resolved.

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

The topic ‘Fatal PHP error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/giftable-for-woocommerce_a7699a.svg)
 * [Giftable for WooCommerce](https://wordpress.org/plugins/giftable-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/giftable-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/giftable-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/giftable-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/giftable-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/giftable-for-woocommerce/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-9/#post-8366448)
 * Status: resolved