• After switching PHP from version 7.0 to version 7.1, pressing Submit button results in spinning arrows icon. The PDF is created and email is sent but configured page redirection does not occur. Turned on WordPress debug and see the following messages.

    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 1889
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 1889
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 1889
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 1889
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2006
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2006
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/Tag.php on line 2003
    [23-Jan-2019 00:09:25 Europe/London] PHP Warning: A non-numeric value encountered in /homepages/15/d703378703/htdocs/clickandbuilds/DesMoinesMetroPickleballclub/wp-content/plugins/send-pdf-for-contact-form-7/mpdf/mpdf.php on line 6387

    Reverted back to PHP version 7.0 and Submit button works correctly. Please update the plugin to work with PHP 7.1 and higher.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tt4ever

    (@tt4ever)

    The version of mPDF within ‘Send PDF for Contact Form 7’ version 0.6.9 is 6.1.0 dated 26/04/2016. Version 7.0.0 of mPDF is dated 19/10/2017 and it looks like mPDF is up to at least version 7.1.8.

    In searching for resolution, found https://github.com/mpdf/mpdf/issues/889 stating “Upgrade to mPDF 7. mPDF 6 will not have PHP 7.2 support.”. Since PHP 7.2 and 7.3 are currently the only versions in ‘Active Support’, it seems the only course of action is to get the latest mPDF into ‘Send PDF for Contact Form 7’.

    Thanks for your continued support of the plugin. If I can’t get up to at least PHP version 7.1, my hosting company will automatically start charging for PHP security support beginning February 1, 2019. I’m a volunteer supporting a web site for a non-profit, so we really don’t have the extra support money.

    Thanks,
    Tom

    Thread Starter tt4ever

    (@tt4ever)

    Florent,

    I was able to successfully upgrade mpdf within version 0.6.9 of
    plugin ‘Send PDF for Contact Form 7’.

    Will you make an official version upgrade of ‘Send PDF for Contact Form 7’
    that includes the latest mpdf? If so, I will be able to switch from
    PHP 7.0.33 to PHP 7.1.25.

    Thanks,
    Tom

    ——————–

    Look at all of #6 below to see the 5 lines of required coding changes to
    utilize version 7.1.x of mpdf.

    Otherwise, here are the high level steps I performed.

    1) Create an Xampp test environment (in Windows 10)
    2) Clone my production site with the Duplicator plugin
    3) Test version 0.6.9 of plugin ‘Send PDF for Contact Form 7’ on PHP version 7.0.33
    to confirm the environment is working.
    version 4.9.1 of ‘Contact Form 7’
    version 4.2.1 of ‘Contact Form 7 Signature Addon’
    version 0.6.9 of ‘Send PDF for Contact Form 7’
    version 6.1 of mpdf within ‘Send PDF for Contact Form 7’
    version 7.0.33 of PHP
    4) Install composer
    References: https://www.thecodedeveloper.com/install-composer-windows-xampp/
    https://www.hostinger.com/tutorials/how-to-install-composer
    5) Upgrade mpdf within plugin ‘Send PDF for Contact Form 7’.
    Version 7.1.9 of mpdf was installed.
    Version 6.1 of mpdf was removed.
    The before and after directory structures are as follows.
    Before (with version 6.1 of mpdf):
    C:.
    ├───classes
    ├───css
    ├───images
    ├───includes
    ├───js
    │ └───lib
    │ ├───addon
    │ │ ├───hint
    │ │ └───selection
    │ └───theme
    ├───languages
    ├───mpdf
    │ ├───classes
    │ ├───collations
    │ ├───font
    │ ├───graph_cache
    │ ├───iccprofiles
    │ ├───includes
    │ ├───patterns
    │ ├───qrcode
    │ │ └───data
    │ ├───tests
    │ │ └───data
    │ │ └───pdfs
    │ ├───tmp
    │ ├───ttfontdata
    │ ├───ttfonts
    │ ├───utils
    │ └───vendor
    │ ├───composer
    │ └───setasign
    │ └───fpdi
    │ └───filters
    └───views

    After (with version 7.1.9 of mpdf):
    C:.
    ├───classes
    ├───css
    ├───images
    ├───includes
    ├───js
    │ └───lib
    │ ├───addon
    │ │ ├───hint
    │ │ └───selection
    │ └───theme
    ├───languages
    ├───vendor
    │ ├───composer
    │ ├───mpdf
    │ │ └───mpdf
    │ │ ├───.github
    │ │ ├───data
    │ │ │ ├───collations
    │ │ │ ├───font
    │ │ │ ├───iccprofiles
    │ │ │ └───patterns
    │ │ ├───src
    │ │ │ ├───Barcode
    │ │ │ ├───Color
    │ │ │ ├───Config
    │ │ │ ├───Conversion
    │ │ │ ├───Css
    │ │ │ ├───Exception
    │ │ │ ├───Fonts
    │ │ │ ├───Gif
    │ │ │ ├───Image
    │ │ │ ├───Language
    │ │ │ ├───Log
    │ │ │ ├───Output
    │ │ │ ├───Pdf
    │ │ │ │ └───Protection
    │ │ │ ├───QrCode
    │ │ │ │ └───data
    │ │ │ ├───Shaper
    │ │ │ ├───Tag
    │ │ │ ├───Utils
    │ │ │ └───Writer
    │ │ ├───tmp
    │ │ │ └───ttfontdata
    │ │ └───ttfonts
    │ ├───myclabs
    │ │ └───deep-copy
    │ │ ├───doc
    │ │ ├───fixtures
    │ │ │ ├───f001
    │ │ │ ├───f002
    │ │ │ ├───f003
    │ │ │ ├───f004
    │ │ │ ├───f005
    │ │ │ ├───f006
    │ │ │ ├───f007
    │ │ │ └───f008
    │ │ └───src
    │ │ └───DeepCopy
    │ │ ├───Exception
    │ │ ├───Filter
    │ │ │ └───Doctrine
    │ │ ├───Matcher
    │ │ │ └───Doctrine
    │ │ ├───Reflection
    │ │ ├───TypeFilter
    │ │ │ ├───Date
    │ │ │ └───Spl
    │ │ └───TypeMatcher
    │ ├───paragonie
    │ │ └───random_compat
    │ │ ├───dist
    │ │ ├───lib
    │ │ └───other
    │ ├───psr
    │ │ └───log
    │ │ └───Psr
    │ │ └───Log
    │ │ └───Test
    │ └───setasign
    │ └───fpdi
    │ └───filters
    └───views

    6) Work through the ‘Send PDF for Contact Form 7’ required
    changes based on https://packagist.org/packages/mpdf/mpdf
    and the mpdf CHANGELOG.md.
    A) Identify the plugin require_once commands for autoload.php
    B) Identify the plugin object creation (new) statements involving mpdf.
    C) Identify the plugin config parameters used during mpdf object creation.
    6A)
    findstr /S /N /I “autoload.php” *.php
    classes\send-pdf.php:573: require WPCF7PDF_DIR . ‘/mpdf/vendor/autoload.php’;
    views\send-pdf-admin.php:188: require WPCF7PDF_DIR . ‘/mpdf/vendor/autoload.php’;
    So…
    o modify classes\send-pdf.php:573: from ‘/mpdf/vendor/autoload.php’ to ‘/vendor/autoload.php’
    o modify views\send-pdf-admin.pdf:188: from ‘/mpdf/vendor/autoload.php’ to ‘/vendor/autoload.php’
    6B)
    findstr /S /N /I /C:”new ” *.php | findstr “mpdf” | findstr /V /B “vendor”
    classes\send-pdf.php:577: $mpdf=new mPDF(‘utf-8’, $formatPdf);
    classes\send-pdf.php:579: $mpdf=new mPDF();
    views\send-pdf-admin.php:189: $mpdf=new mPDF(‘utf-8’, $formatPdf);
    So…
    o modify classes\send-pdf.php:577: from $mpdf=new mPDF( to $mpdf=new \Mpdf\Mpdf(
    o modify classes\send-pdf.php:579: from $mpdf=new mPDF( to $mpdf=new \Mpdf\Mpdf(
    o modify views\send-pdf-admin.php:189: from $mpdf=new mPDF( to $mpdf=new \Mpdf\Mpdf(
    6C)
    o modify classes\send-pdf.php:577: $mpdf=new \Mpdf\Mpdf([ mode => ‘utf-8’, format => $formatPdf ]);
    o modify views\send-pdf-admin.php:189: $mpdf=new \Mpdf\Mpdf([ mode => ‘utf-8’, format => $formatPdf ]);
    7) Successfully test a Contact Form 7 with the following combination of software –
    version 4.9.1 of ‘Contact Form 7’
    version 4.2.1 of ‘Contact Form 7 Signature Addon’
    version 0.6.9 of ‘Send PDF for Contact Form 7’
    version 7.1.9 of mpdf within ‘Send PDF for Contact Form 7’
    version 7.0.33 of PHP
    NOTE: version 6.1 of mpdf created footers in my PDF files that
    were positioned on the page too low to print.
    version 7.1.9 of mpdf creates footers that print correctly.
    8) Successfully test a Contact Form 7 with the following combination of software –
    version 4.9.1 of ‘Contact Form 7’
    version 4.2.1 of ‘Contact Form 7 Signature Addon’
    version 0.6.9 of ‘Send PDF for Contact Form 7’
    version 7.1.9 of mpdf within ‘Send PDF for Contact Form 7’
    version 7.1.25 of PHP

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7.1 with plugin version 0.6.9.’ is closed to new replies.