secure.php 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 20this 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.]
🙂
- The topic ‘secure.php error, line: 20’ is closed to new replies.