A
A
Ambal892017-09-11 16:32:16
PHP
Ambal89, 2017-09-11 16:32:16

What to do with PHP Fatal error: Allowed memory size exhausted?

Good day, comrades! Please tell me, I ran into a problem, before that there was no such thing. I made a site on opencart 2.3, everything opens perfectly on the local computer, quickly and without problems. I started transferring to hosting - problems started, namely:
The site constantly crashes, and the error log gives
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33072 bytes) in /home/c/cw1709/public_html/system/library /image.php on line 26
Judging by what was written, I concluded that there was not enough memory because of the huge stupid pictures (the client insisted that they be huge and without loss of quality) that weighed from 2 to 8 meters. I started to shrink pictures, shrunk everything to 150kb-800kb. In theory, this is already a real size. The site has a total of 140 products, each with one picture. The site began to work better, but sometimes it still crashes with this error. I wrote to the hoster with a request to increase the memory_limit memory - he said that he should not roll his lips. How to get out of this situation? only 140 items, what if there were 5000?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sanych, 2017-09-11
@mountpoint

try changing memory_limit via htaccess. If it doesn't work, fuck the hoster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question