Title: secure.php error, line: 20
Last modified: August 21, 2016

---

# secure.php error, line: 20

 *  [eggproject](https://wordpress.org/support/users/eggproject/)
 * (@eggproject)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/securephp-error-line-20/)
 * Better version: 3.4.9
 * My log:
    [18-Apr-2013 13:07:45 UTC] PHP Notice: unserialize(): Error at offset
   0 of 42 bytes in /var/www/XXXX/r3whi3r/plugins/better-wp-security/inc/secure.
   php on line 20 [18-Apr-2013 13:07:48 UTC] PHP Notice: unserialize(): Error at
   offset 0 of 42 bytes in /var/www/XXXX/r3whi3r/plugins/better-wp-security/inc/
   secure.php on line 20 [18-Apr-2013 13:07:48 UTC] PHP Notice: unserialize(): Error
   at offset 0 of 30 bytes in /var/www/XXXX/r3whi3r/plugins/better-wp-security/inc/
   secure.php on line 20 [18-Apr-2013 13:07:51 UTC] PHP Notice: unserialize(): Error
   at offset 0 of 45 bytes in /var/www/XXXX/r3whi3r/plugins/better-wp-security/inc/
   secure.php on line 20
 * this code:
 *     ```
       if ( $data) {
       				$unserialized_data = unserialize( $data );
       				if ( isset( $unserialized_data['iwp_action'] ) ) {
       					$iwp_action = $unserialized_data['iwp_action'];
       				}
       ```
   
 * …. my bugfix:
 *     ```
       if ( !empty($data) ) {
       				$unserialized_data = maybe_unserialize( $data );
       				if ( isset( $unserialized_data['iwp_action'] ) ) {
       					$iwp_action = $unserialized_data['iwp_action'];
       				}
       			}
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 * 🙂
 * [http://wordpress.org/extend/plugins/better-wp-security/](http://wordpress.org/extend/plugins/better-wp-security/)

The topic ‘secure.php error, line: 20’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [eggproject](https://wordpress.org/support/users/eggproject/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/securephp-error-line-20/)
 * Status: not resolved