IMPORTANT UPDATE: Please DOWNLOAD and update the Formidable PRO2PDF to the Latest Version!

installation problems

Home Forums Bugs and Troubleshooting installation problems

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1087 Reply
    Michael Hauser
    Guest

    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.

    #1091 Reply
    admin
    Keymaster

    Checking on this, will update you soon.

    #1134 Reply
    Chris Jones
    Guest

    This 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

    #1135 Reply
    Chris Jones
    Guest

    That 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

    #1138 Reply
    admin
    Keymaster

    There’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.

    #1141 Reply
    Chris Jones
    Guest

    This 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-install

    #1195 Reply
    admin
    Keymaster

    Formatting 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/

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Reply #1134 in installation problems
Your information: