Title: Php Error
Last modified: December 8, 2017

---

# Php Error

 *  [LaMpiR](https://wordpress.org/support/users/lampir/)
 * (@lampir)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-error-260/)
 * Hi.
 * I’ve installed it and I am getting this error:
 * Warning: A non-numeric value encountered in /homepages/41/xxx/htdocs/beag.co.
   at/wp-content/plugins/restricted-site-access/restricted_site_access.php on line
   235
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/41/xxx/htdocs/beag.co.at/wp-content/plugins/restricted-site-access/
   restricted_site_access.php:235) in /homepages/41/xxx/htdocs/beag.co.at/wp-includes/
   pluggable.php on line 1216
 * I’ve used the plugin before and any help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-260%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [esiddhi](https://wordpress.org/support/users/esiddhi/)
 * (@esiddhi)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-error-260/#post-9775723)
 * Yes, same problem here.
    Actually this error create a big php_error.log, you 
   need to delete if it is too big.
 * The problem is with some PHP 7.* versions
 * Solution: change the line 235 (edit manually) from restrited_site_access.php 
   to:
 * switch ( (int)$mask % 4 ) {
 * Anyway the author of the Plugin should update it 🙂 … it is a very nice and useful
   plugin.
 * [esiddhi.com](https://esiddhi.com)
    -  This reply was modified 8 years, 6 months ago by [esiddhi](https://wordpress.org/support/users/esiddhi/).
 *  [litbea](https://wordpress.org/support/users/litbea/)
 * (@litbea)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-error-260/#post-9957647)
 * Thanks esiddhi, it worked like a charm!
 *  [goncalovieirafigueiredo](https://wordpress.org/support/users/goncalovieirafigueiredo/)
 * (@goncalovieirafigueiredo)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-error-260/#post-9983607)
 * Unfortunately this did not resolve it for me.
 * The error is exactly the same. Also, it prevents me from previewing my site.
 * Can someone post a solution?
 * Thanks!
    -  This reply was modified 8 years, 4 months ago by [goncalovieirafigueiredo](https://wordpress.org/support/users/goncalovieirafigueiredo/).
 *  [goncalovieirafigueiredo](https://wordpress.org/support/users/goncalovieirafigueiredo/)
 * (@goncalovieirafigueiredo)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-error-260/#post-9983953)
 * I’m sorry, yes the solution provided by esiddhi works!
 * Thanks!!
 *  [Adam Silverstein](https://wordpress.org/support/users/adamsilverstein/)
 * (@adamsilverstein)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-260/#post-10041678)
 * This issue is resolved in the most recent version of the plugin.
 *  [esiddhi](https://wordpress.org/support/users/esiddhi/)
 * (@esiddhi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-260/#post-10041684)
 * Thanks 🙂 …. Great Plugin !!!

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

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

 * ![](https://ps.w.org/restricted-site-access/assets/icon-256x256.png?rev=2675243)
 * [Restricted Site Access](https://wordpress.org/plugins/restricted-site-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restricted-site-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restricted-site-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restricted-site-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restricted-site-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restricted-site-access/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [esiddhi](https://wordpress.org/support/users/esiddhi/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-260/#post-10041684)
 * Status: not resolved