-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Strange Exception while generating PDF #27
Comments
it's look like wkhtmltopdf lib got a symbols for file name that can't processed. Try for test filename 111.jpg |
thx for your respond but the problem was the missing library files... I've now solved the above issue by coping the library files into the MAMP lib folder. After that everything looks fine but:
|
Ok I've fixed! If someone get's similar exception like me, you have to check your MAMP library files under: /Applications/MAMP/Library/lib/ So in the folder above are many libs missing for the wkhtmltopdf to run correctly... cp /usr/lib/* /Applications/MAMP/Library/lib/ Notice: That only works if you can run the wkhtmltopdf from the terminal successfully! |
@sensi, did You have any issues after copying everything from sur/lib to MAMP lib folder? I tried it but now my Apache won't even start, it doesn't even say anything is wrong in the Log. |
Ok, it seems that after following hints in this link (http://lists.macosforge.org/pipermail/macports-users/2010-November/022663.html) I've managed to come a buit further, but I'm stuck here:
|
hi ragulka, no in my case it works. But I think I had luck that it works. Because on my iMac with new OS Lion I had some issues with the wkhtml stuff. This tool needs some more requirements which are not installed in an default mamp installation. Best practice to use the wkhtmltopdf tool is, to run it on a linux installation. There I can install all required packages with yum or apt-get tool. You also can try to install a new lamp by hand on your mac. Or try the XAMP for Mac. But I've no experience if it works on XAMP installation. |
Hey @sensi, I solved this by switching from MAMP to the built-in PHP/Apache in OSX Lion |
Hi @ragulka I think about it, but I have to create a lot of vHosts and modify the php.ini files or disable some mod... That's all in one place and it's very comftable and fit into my workflow using MAMP. But you're right, if I install it on the build in PHP/Apache it will work without issues... |
I had the same error as described above. I could run wkhtmltopdf from the command line just fine, but from php, with proc_open, it just produced an error code 5. The Apache logfile stated the same error as above, not finding the required libraries. My command now looks something along this line:
This allows wkhtmltopdf to load the system libraries, and not the MAMP specific libraries, which apparently do not work with wkhtmltopdf too well. |
Thx @Kufi for your comment. Seems that works fine. |
I second @Kufi for the updated proc_open() command. Works like a charm now. |
We maybe should have a way to configure this array from bundle/snappy. Thanks for all the input by the way. |
closed by KnpLabs/KnpSnappyBundle@7540f32 and 2e6d2fb |
I've load the current wkhtmltopdf-0.9.9-OS-X.i368 from the developer page (http://code.google.com/p/wkhtmltopdf/) and install SnappyBundle as described at install guide.
Everything looks fine but when I try to generate an pdf throw the snappy bundle I got following error:
The text was updated successfully, but these errors were encountered: