Home › Forums › Bugs and Troubleshooting › installation problems
Tagged: Mac OSX, MAMP, pdftk, php version
- This topic has 6 replies, 2 voices, and was last updated 9 years, 4 months ago by admin.
-
AuthorPosts
-
Michael HauserGuest
I installed the plugin v1.6.0.13 on my local development machine: Mac OSX v10.10.1, MAMP v3.3, WP v4.2.2, PHP v5.2.17, Formidable Pro v2.0.10 (activated and licensed). I installed pdftk and tested it from the command line. I get the following at the top of the Formidable PRO2PDF admin screen:
Folder __DIR__/fields should be writable. Please change its permissions to 777. Formidable PRO2PDF requires Formidable Forms plugin installed and activated. Please install it. You can generate only 1 PDF forms, because your server has to have pdftk installed for PDF generation. Please install it. Alternatively, you can activate Formidable PRO2PDF if you want to use more forms.
Suggestions? Thanks.
adminKeymasterChecking on this, will update you soon.
Chris JonesGuestThis happens because
@shell_exec("which pdftk");
returns NULL.pdftk installs to
/usr/local/bin
but MAMP looks in/usr/bin
This worked for me:
sudo ln -s /usr/local/bin/pdftk /usr/bin/pdftk
Chris JonesGuestThat removed the pdftk warning but I’m having further issues. I’ve started noting them down here:
https://wordpress.org/support/topic/cannot-map-to-pdf-form-fields
adminKeymasterThere’s a problem with PHP version. PHP should be at least 5.3, some functions of the plugin don’t work with 5.2.17. We’ve added an information message about PHP version in a recent release.
To update PHP go to: http://php-osx.liip.ch/
NOTE: Users do not need to install PDFTK with the PRO version of the plugin.
Chris JonesGuestThis may be the solution for Michael (original author) but I just wanted to mention that I’m on PHP 5.6 so this may not be the only cause.
This issue with MAMP and shell_exec is quite common:
Other possible solutions are:
http://stackoverflow.com/questions/10640045/php-shell-exec-only-works-for-certain-commands
http://stackoverflow.com/questions/11036895/why-cant-i-execute-ffmpeg-using-shell-exec-in-a-mamp-environment
http://stackoverflow.com/questions/7163497/resolved-mamp-php-cant-exec-convert-after-homebrew-imagemagick-installadminKeymasterFormatting options and the select-box of PDF fields are only available when using the PRO version of the plugin or the free version with PDFtk through our server. Running PDFtk on your server will only provide a text field which requires you to enter the field ID as it appears in the uploaded PDF.
Indeed, the executable is installed here: /usr/local/bin/ so for MAMP and creating a symbolic link via
sudo ln -s /usr/local/bin/pdftk /usr/bin/pdftk
may be necessary.While we are happy to continue providing standard support to install PDFtk and PRO2PDF on Linux, we are unable to provide any support for the Mac OSX – as it’s always missing a byte.
PDFtk development team only explains how to install the plugin on Linux here… http://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/
-
AuthorPosts