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.
Asked
Active
Viewed 83 times
0
-
Check the `memory_limit` option in your php.ini – Ivnhal Aug 29 '18 at 18:52
-
tnx @IvnH how much it should be? – hamidi Aug 29 '18 at 18:55
-
Can you give me some more hand plz – hamidi Aug 29 '18 at 18:58
-
Set like this: memory_limit = 256M; – Ivnhal Aug 29 '18 at 18:58
-
i can not find php.ini on my folder where can i find it bro – hamidi Aug 29 '18 at 18:59
-
[How to locate the php.ini file (xampp)](https://stackoverflow.com/questions/6185319/how-to-locate-the-php-ini-file-xampp) – Ivnhal Aug 29 '18 at 19:01
-
I found the file but there is no memory_limit ,should i add that? – hamidi Aug 29 '18 at 19:03
-
add the memory_limit and restart your web server after you've done that. – unixmiah Aug 29 '18 at 19:04
1 Answers
0
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

unixmiah
- 3,081
- 1
- 12
- 26