Looking at the file that threw the fatal exception (dbo_mysql.php
) I presume that your call is retrieving data from the DataBase.
Also, looking at the memory limit, it shows 134217728 bytes, which is 128MB, so I think that whatever your API call is doing, is trying to fetch a lot of data which total surpasses the limit allocated per script.
For example, if the last script in the API call stack were to use 20MB
for its needs and then tires to fetch data from the DB worth 115MB
, your script would be trying to allocate 135MB
which is already 7MB
more than the limit and thus causing the Fatal Exception
.
So, I see a few things to check/do:
- That you are not retrieving unnecessary data, or in other words, retrieve only what you need.
- If you indeed need all that data, then
- Either increase the
memory_limit
value under your php.ini
file
Con: If your data keeps growing, you may need to keep updating this value for the only one script and exposing your self to memory leaks or running out of memory.
- Or I would recommend that you implement some sort of pagination (which will allow you to keep memory limits in check) and make your application more scalable.