Header error in error_log
Hi,
I see this error in my error_log file realted to anspress functions. How can it be solved?
[19-Feb-2016 14:37:45 UTC] PHP Warning: Illegal string offset 'file' in /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/class-user.php on line 482 [19-Feb-2016 14:37:45 UTC] PHP Warning: Illegal string offset 'small_file' in /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/class-user.php on line 486 [19-Feb-2016 14:37:45 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/class-user.php:482) in /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/functions.php on line 869 [19-Feb-2016 14:37:45 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/class-user.php:482) in /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/functions.php on line 872 [19-Feb-2016 14:37:45 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/class-user.php:482) in /home/kin0co/public_html/wp-content/plugins/anspress-question-answer/includes/functions.php on line 877
NijatR commented
Nope, PHP 5.4.45.
Rahul Aryan commented
Yep.. I mean that. You should change it to 5.6 or above.
Which version of PHP are you using? PHP 4.x?