I have a page that needs to load several dynamically generated images. Everything works fine 90% of the time, but sometimes some of the images are not generated (I just get the missing image icon instead). Since most of the times it works, and the missing images are not always the same, I think that maybe it has something to do with the server not having enough resources. Are there any ways I can prevent this from happening (and make sure the images get generated)?
A:
I would try upping the memory limits and timeouts of PHP and restart your web server. In particular, look at memory_limit and max_execution_time.
Also in that configuration file, look at output_buffering, which controls how much of the output can be built up in memory before sending. This can sometimes affect how much can be output before the headers.
I assume you've already looked at your log files, but I would recommend writing out debugging around the image generation statements to see if they're returning or not.
dj_segfault
2010-02-24 21:13:34
That seems to solve the problem, thank you for your help.
A. M.
2010-02-26 11:13:28
Just out of curiousity, which was the solution?
dj_segfault
2010-02-26 15:10:49
Increasing the value of memory_limit.
A. M.
2010-03-03 12:16:18