Title: error / fix in php log
Last modified: April 3, 2020

---

# error / fix in php log

 *  Resolved [JJNW](https://wordpress.org/support/users/jjnw/)
 * (@jjnw)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-fix-in-php-log/)
 * Illegal string offset ‘restrictions’ in C:\wamp64\www\website\wp-content\plugins\
   content-control\classes\Options.php on line 106
 * So I added on line 105 $options = array(); and error stopped.
 * Think this is okay?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-fix-in-php-log/#post-12668827)
 * [@jjnw](https://wordpress.org/support/users/jjnw/) – That would likely prevent
   it from loading the saved settings from your database.
 * Try this instead:
 * Change line #100: [https://github.com/JunglePlugins/Content-Control/blob/master/classes/Options.php#L100](https://github.com/JunglePlugins/Content-Control/blob/master/classes/Options.php#L100)
 * To
 * `$options = (array) get_option( static:: $_prefix . 'settings', array() );`
 * get_option’s second parameter is what to return if no value exists already. And(
   array) forces it to be an array.
 * Will open an issue to patch that in the plugin, thanks for the report.

Viewing 1 replies (of 1 total)

The topic ‘error / fix in php log’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/error-fix-in-php-log/#post-12668827)
 * Status: resolved