Wordpress website keeps on redirecting to login page after I enter correct login credentials. When I input the wrong credentials, it shows an error stating that the credentials are not correct. So I enabled the debug mode to see what appears as the error message and the following errors are being produced whenever I try to access wp-admin with debug mode enabled. When I disable debug mode, the login page does appear.
Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /xd1/homes/hash/22/80/a28022/88/82/u108288/XXX.co.zw/www/wp-content/plugins/anps_theme_plugin/plugin-updates/plugin-update-checker.php on line 833
Warning: Cannot modify header information - headers already sent by (output started at /xd1/homes/hash/22/80/a28022/88/82/u108288/XXX.co.zw/www/wp-content/plugins/anps_theme_plugin/plugin-updates/plugin-update-checker.php:833) in /xd1/homes/hash/22/80/a28022/88/82/u108288/XXX.co.zw/www/wp-includes/pluggable.php on line 1265
Warning: Cannot modify header information - headers already sent by (output started at /xd1/homes/hash/22/80/a28022/88/82/u108288/XXX.co.zw/www/wp-content/plugins/anps_theme_plugin/plugin-updates/plugin-update-checker.php:833) in /xd1/homes/hash/22/80/a28022/88/82/u108288/XXX.co.zw/www/wp-includes/pluggable.php on line 1268 ```