I read all the suggestions online but none of them working for me .The problem I'm having is when I'm trying to upload an image on WordPress it gives HTTP error. I did change the ('WP_MEMORY_LIMIT', '2000M'); but still did not work. I am running with xampp.
change it globaly in php.ini
(in xampp located in '\xampp\php\php.ini
'):
memory_limit = 256M // search for this "memory_limit" and adjust it by your needs.
if there is no memory_limit in your php.ini file add it and restart xampp/web server