Title: Fatal error: Call to undefined function boolval()
Last modified: February 9, 2017

---

# Fatal error: Call to undefined function boolval()

 *  Resolved [renangmi](https://wordpress.org/support/users/renangmi/)
 * (@renangmi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/)
 * I got this error when trying to save a post with role restrictions:
 * Fatal error: Call to undefined function boolval() in /…/wp-content/plugins/role-
   content-restriction/class-role-content-restriction.php on line 157

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

 *  Plugin Author [Matt Watson](https://wordpress.org/support/users/mwtsn/)
 * (@mwtsn)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/#post-8787378)
 * Hi there [@renangmi](https://wordpress.org/support/users/renangmi/), what version
   of PHP are you running?
 *  Thread Starter [renangmi](https://wordpress.org/support/users/renangmi/)
 * (@renangmi)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/#post-8790174)
 * 5.4.45
 *  Plugin Author [Matt Watson](https://wordpress.org/support/users/mwtsn/)
 * (@mwtsn)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/#post-8790244)
 * Thats the issue [@renangmi](https://wordpress.org/support/users/renangmi/), this
   function only works with PHP 5.5+
 * [http://php.net/manual/en/function.boolval.php](http://php.net/manual/en/function.boolval.php)
 *  Thread Starter [renangmi](https://wordpress.org/support/users/renangmi/)
 * (@renangmi)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/#post-8791837)
 * Thank you!

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

The topic ‘Fatal error: Call to undefined function boolval()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/restrict-content-by-role_2774a0.svg)
 * [Restrict Content by Role](https://wordpress.org/plugins/restrict-content-by-role/)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-content-by-role/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-content-by-role/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-content-by-role/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-content-by-role/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [renangmi](https://wordpress.org/support/users/renangmi/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-boolval/#post-8791837)
 * Status: resolved