CreatePDF not working
3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 6, 2022 (RSS)
By depdesign - June 3, 2022
Hi All,
Recently the CreatePDF plugin is now giving the following error on two different sites using the same plugin and setup.
Site 1:
sh: /home/XXXXXX/public_html/cmsb/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-0.12.5-1.centos7.x86_64: Permission denied
Error executing wkhtmltopdf! (Exit code: 126)
Site 2:
/home/XXXXXX/public_html/cmsb/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-0.12.5-1.centos6.x86_64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory Error executing wkhtmltopdf! (Exit code: 127)
I'm not sure if it's an ini issue on the server, a server update that caused this, or if the plugin requires an update.
Any help would greatly be appreciated.
Dan
By Dave - June 3, 2022
Hi Dan,
The first thing I'd try is logging in with FTP and checking the permissions on this file:
/public_html/cmsb/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-0.12.5-1.centos7.x86_64
Try setting the file permissions to 0755. It needs read and execute set to it can be run.
Let me know if that works.
interactivetools.com
By depdesign - June 6, 2022
That did the trick. Strange how it was working until recently, not sure how the permissions were changed.