• Resolved iesnaorg

    (@iesnaorg)


    Hello we migrated today from a Windows server on AWS running php to a WPEngine hosting running Apache. The problem that I have is that the PDF files pull from S3 but will not write to the wp-content/tmp folder. The host, WPE cannot change the server permissions outside of the install. In this case it’s attempting to write to /tmp/ on the server, rather than the root of my install. I’ve tried to specify a different tmp directory but it still seems to be using the default: define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/tmp/’);

    When I attempt to download the PDF I get an error page “File download (TCPDF) error” with the message: “There was an error while preparing your file for download. Please contact support”

    How can I fix this? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Little Package

    (@littlepackage)

    This is very much like an email we just got, but different. I was writing to you when this second request came through, distracting me from the matter at hand. ??
    Since you are a paying customer, this is not the place for support (according to www.remarpro.com policy). I will close this topic after replying.

    If WPEngine will not allow use of the /tmp folder, try using this filter hook either in your child theme functions.php file or by using the Code Snippets plugin. I’m sharing this here in case anyone in the free zone needs it. It is also documented on the website.

    add_filter( 'wwpdf_watermark_use_uploads_dir', '__return_true' );

    Thread Starter iesnaorg

    (@iesnaorg)

    Thank you Caroline. I will try that out.

    Plugin Author Little Package

    (@littlepackage)

    No problem Joseph

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to run on Apache: TCPDF Error’ is closed to new replies.