07-27-2023, 12:33 AM
I am using PrestaShop 1.5 and trying to make this API (webservice) call:
example.com/api/order_histories?schema=blank
However it returns the following error:
>Fatal error: Allowed memory size of {some numbers} bytes exhausted (tried to allocate x bytes).
While invoking this URL:
works just fine.
So I gradually increased my php.ini `memory_limit` parameter. Initially it was set to 32M, so I tried to bumped it up to 64M, 128M, until all the way up to 1024M. I also tried to set it up to 2048M, but since I only have 1GB RAM, 2048M will pretty much crash the server.
Before I am looking further into the code, I just want to know whether anyone else experience this kind of problem with PrestaShop (1.5.4), and if yes what was/is the solution?
example.com/api/order_histories?schema=blank
However it returns the following error:
>Fatal error: Allowed memory size of {some numbers} bytes exhausted (tried to allocate x bytes).
While invoking this URL:
[To see links please register here]
works just fine.
So I gradually increased my php.ini `memory_limit` parameter. Initially it was set to 32M, so I tried to bumped it up to 64M, 128M, until all the way up to 1024M. I also tried to set it up to 2048M, but since I only have 1GB RAM, 2048M will pretty much crash the server.
Before I am looking further into the code, I just want to know whether anyone else experience this kind of problem with PrestaShop (1.5.4), and if yes what was/is the solution?