Unexpected character and syntax error on wp-includes/formatting.php


I am getting an error on my WordPress website after changing the server. it’s working on cPanel but not working on the AWS server.

I haven’t change anything in this file.

enter image description here

in progress 0
user9437856 1 year 2021-08-14T09:26:44-05:00 0 Answer 0 views 0

Answer ( 1 )


    I don’t know how I got this gray code on the formatting.php page. I found this code in more than 3 places.

    I download the latest version of WordPress again and updated the formatting.php and It’s starting working again.

Leave an answer