• Resolved Vanoisbe

    (@lepapefrancois)


    Hello,

    My server doesn’t allow the php command allow_url_fopen for security reason.

    I’ve updated today your plugin to the latest version available on github (v. 1.0.1.2) and this error is displayed in the admin and in the frontend (even if my wp-config file has the constant WP_DEBUG defined on false).

    Warning: copy(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in …wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php on line 617

    Note that your plugin is fully functionnal, everything works has intended but the error message on the frontend…

    Is there a way to fix that? I saw it’s related to a conditionnal upload of the onepixel.png image if it doesn’t already exist in the $createDirectory…

    Thanks again for your support.

    • This topic was modified 1 year ago by Vanoisbe.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vanoisbe

    (@lepapefrancois)

    Problem fixed in v1.0.1.3, Thank you!

    Thread Starter Vanoisbe

    (@lepapefrancois)

    In fact the problem was not solved and is still present in the last release (v1.01.6) on github.

    I’ve added a new condition in the if statement in /classes/send_pdf.php on line 606 in order to check if allow_open_url is enabled:

    before:

     if( file_exists($createDirectory.'/onepixel.png')===FALSE) {

    after:

     if( filter_var( ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN ) && file_exists($createDirectory.'/onepixel.png')===FALSE) {

    @florent73 Could you please implement this for a next release?

    Thank you very much!

    Plugin Author Florent Maillefaud

    (@florent73)

    Hi!

    I have implement on 1.0.1.6 version.

    Thanks

    Thread Starter Vanoisbe

    (@lepapefrancois)

    Thank you very much Florent!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when allow_url_fopen=0’ is closed to new replies.