• Resolved tnkaoua

    (@tnkaoua)


    Hi

    You can speak “technically”, as I am a developper…

    For one of my customers, pdf are no longer created: blank, and no pdf in the temp directory. A pdf is created if I ask woo commerce to send again invoice, but this pdf is void.

    I switched ON “repair mode” with only Woocommerce and your plugin activated, default theme.

    Wordpress 6.1.1

    HTML outputs both for default layout and a customized layout are OK

    &debug=true does no give any information

    I switched ON WordPress debug: nothing

    Everything is “green” on your plugin system configuration and write permissions.

    PHP version 7.4.33
    DOMDocument extension 20031129
    MBString extension 7.4.33
    GD 7.4.33
    WebP Support Yes
    Zlib 7.4.33
    opcache 7.4.33
    GMagick or IMagick IMagick 3.7.0
    glob() Yes
    WP Memory Limit WordPress: 512M, PHP: 1024M
    allow_url_fopen Yes
    base64_decode Yes

    I tried to re-install fonts: same.

    Any idea would be welcome!!

    Kind regards
    Thierry

    • This topic was modified 1 year, 11 months ago by tnkaoua.
    • This topic was modified 1 year, 11 months ago by tnkaoua.
    • This topic was modified 1 year, 11 months ago by tnkaoua.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @tnkaoua,

    Could you check the WooCommerce logs to see if there are errors with the wpo-wcpdf or fatal-errors prefix? If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs. See Where to find error logs

    Also, go to WooCommerce > Status > System Status, click on Get system report, then click on Copy for support, paste it on https://pastebin.com/ (set a paste expiration for one week, just in case), and finally paste the pastebin.com link in your reply here.

    Thread Starter tnkaoua

    (@tnkaoua)

    Hi

    Thanks for your support. I have found where the issue comes from.

    Wordfence was updated to Pro version with the need of an auto prepend file. Due to server configuration, I had to setup a php.ini file (and adding the relevant directives to .htaccess).

    If I disable php.ini, pdf are generated.

    Here is the php.ini

    display_errors = 'off'
    log_errors = 'on'
    
    upload_max_filesize = 256M
    post_max_size = 256M
    max_execution_time = 900
    memory_limit = 512M
    
    date.timezone=Europe/Paris
    extension=bcmath.so
    extension=dom.so
    extension=fileinfo.so
    extension=gd.so
    extension=imagick.so
    extension=imap.so
    extension=intl.so
    extension=json.so
    extension=ldap.so
    extension=mbstring.so
    extension=mysqlnd.so
    extension=nd_mysqli.so
    extension=opcache.so
    extension=pdo.so
    extension=pdo_mysql.so
    extension=pdo_pgsql.so
    extension=pdo_sqlite
    extension=pgsql.so
    extension=phar.so
    extension=posix.so
    extension=soap.so
    extension=sockets.so
    extension=sysvmsg.so
    extension=sysvsem.so
    extension=sysvshm.so
    extension=tidy.so
    extension=xmlreader.so
    extension=xmlrpc.so
    extension=xmlwriter.so
    extension=xsl.so
    extension=zip.so
    

    In .htaccess

    <FilesMatch \.php$>
    SetHandler application/x-httpd-php74
    </FilesMatch>
    AddHandler application/x-httpd-php74 .php
    suPHP_ConfigPath /home/fyfp0532/clients.photostudiotnk.com/

    Any hint?

    Kind regards
    Thierry

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I can’t see anything in your configuration that could be causing this issue.

    Please contact us to [email protected], mentioning this topic, so we can explore further for the root cause of this behavior.

    Thread Starter tnkaoua

    (@tnkaoua)

    Hi

    Here is some more information (I stop investigation, as all is OK for me now, even if I do not understand what is really happening).

    Using phpinfo() with no php.ini and with php.ini, I noticed that the only difference was about Server API:
    – standard: LiteSpeed
    – php.ini: fast cgi

    So I modify .htaccess with:

    <FilesMatch \.php$>
    SetHandler application/x-httpd-ea-php74-lsphp
    </FilesMatch>
    suPHP_ConfigPath /home/fyfp0532/clients.photostudiotnk.com/

    And pdf are generated…

    I manage a lot of websites with Worfence Pro and php.ini (and some them are very very complex). I never had to change Server API…

    Kind regards
    Thierry

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pdf no longer created’ is closed to new replies.