Python error After WordPress migration


I am getting “white screen of death” on wp-login page (500 error) just a letter “e” appearing all pages (backend & front end) I tired to debug it and getting following output from log:

SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes';

'utf-8' codec can't decode byte 0xb2 in position 6630: invalid start byte

Seems to be Python error?

P.S:Front end is working fine Though


@rdhingra2 Maybe take a look at Is the LC_ALLenvironment variable set (correctly)?


@rdhingra2 @ddelaey

I guess this issue comes up with MacOS users while they connect to servers.

I am not sure about this, but what i observed is that happens with Mac users. can you confirm?


@ddelaey Tried your hack but did not fix this issue still getting following error

'utf-8' codec can't decode byte 0xb2 in position 6122: invalid start byte

@harshadyeola I am on windows/ bootcam installed mac machine and using putty & Notepad ++ for editing.

P.S: Cant login to back end still getting 500 internal error after login in


Issue is solved my installation was hacked (wp-include) with eval ( basecode … You can close this thread.



Hello @rdhingra2

I hope your query is resolved. I am closing this support topic for now.

Feel free to create a new support topic if you have any queries further. :slight_smile: