[FX.php List] [OFF] MPDF geeking after a server config file rebuild

Leo R. Lundgren leo at finalresort.org
Wed Dec 4 14:18:04 MST 2013


A more sane approach would probably be to figure out why $thing is not behaving the way you expect, and then act accordingly. Instead of just trying tweaks and buttons.

Try to isolate the matter by making sure you have full logging on (E_ALL | E_STRICT), and if nothing turns up (it's not uncommon in PHP), isolate the matter by simply going into the source code that runs during the request and either step it using xdebug or use dummy debugging (i.e. add an error_log() here, one there, etc, to narrow down the area of the problem). After not too many steps you should be able to tell at which point in the source code the problem happens.

Regards, Leo


4 dec 2013 kl. 22.11 skrev Bob Patin:

> Well, I spoke too soon; it doesn’t stall out anymore, but the PDF doesn’t get generated.
> 
> I’m wondering if it’s the file_size limit or something like that; I may bump them too…
> 
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> FileMaker 9, 10, 11 & 12 Certified Developer
> http://www.longtermsolutions.com
> -
> iChat: bobpatin at me.com
> Twitter: bobpatin
>> FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> 
> On Dec 4, 2013, at 3:00 PM, Dale Bengston <dale.bengston at gmail.com> wrote:
> 
>> Hey Bob,
>> 
>> You can up the memory in the script itself. Add to the top of your PDF-making script:
>> 
>> 	ini_set('memory_limit’,’64M');
>> 
>> …replace 64 with your desired memory amount.
>> 
>> There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time.
>> 
>> Dale
>> 
>> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window.
>> 
>> On Dec 4, 2013, at 2:53 PM, Bob Patin <bob at patin.com> wrote:
>> 
>>> Hey Dale,
>>> 
>>> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I’ll just modify it there.
>>> 
>>> Is restarting web good enough for picking up PHP changes?
>>> 
>>> Thanks,
>>> 
>>> Bp
>>> 
>>> Bob Patin
>>> Longterm Solutions
>>> bob at longtermsolutions.com
>>> 615-333-6858
>>> FileMaker 9, 10, 11 & 12 Certified Developer
>>> http://www.longtermsolutions.com
>>> -
>>> iChat: bobpatin at me.com
>>> Twitter: bobpatin
>>>>>> FileMaker Consulting 
>>> FileMaker Hosting for all versions of FileMaker
>>> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>>> 
>>> On Dec 4, 2013, at 2:37 PM, Dale Bengston <dale.bengston at gmail.com> wrote:
>>> 
>>>> Hi Bob,
>>>> 
>>>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory.
>>>> 
>>>> Hope this helps,
>>>> Dale
>>> 
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



-|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/89ebe96e/attachment-0001.html


More information about the FX.php_List mailing list