• Resolved shirkworx

    (@shirkworx)


    I looked into this a little further and found out that with WP Engine’s hosting, all WP permissions are locked to 775 for directories and 664 for files.

    I’m getting PHP errors like this: PHP Fatal error: Uncaught MpdfException: Can’t open file /nas/content/live/xxx/wp-content/plugins/wp-mpdf/cache/tmp/dejavusanscondensed.GSUBGPOStables.dat in /nas/content/live/xxx/wp-content/plugins/wp-mpdf/mpdf/classes/otl.php:297\nStack trace:\n#0 /nas/content/live/xxx/wp-content/plugins/wp-mpdf/mpdf/mpdf.php(16212): otl->applyOTL(‘Variable Freque…’, 255)\n#1 /nas/content/live/xxx/wp-content/plugins/wp-mpdf/wp-mpdf.php(251): mPDF->WriteHTML(‘</p> <header cl…’)\n#2 /nas/content/live/xxx/wp-content/plugins/wp-mpdf/wp-mpdf.php(477): mpdf_output(‘<p>\\t <html><…’, true, true, ”, ‘/nas/content/li…’)\n#3 [internal function]: mpdf_exec(true)\n#4 /nas/content/live/xxx/wp-includes/class-wp-hook.php(286): call_user_func_array(‘mpdf_exec’, Array)\n#5 /nas/content/live/xxx/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#6 /nas/content/live/xxx/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n#7 /nas/content/live/xxx/wp-includes/template-loader.php( in /nas/content/live/xxx/wp-content/plugins/wp-mpdf/mpdf/classes/otl.php on line 297, referer: https://www.xxx.com/spec-sheets/variable-frequency-drive-tc-er-vfd-variable-frequency-drive-tc-er-variable-frequency-drive-cable.html

    Is there any other work-around to get the plugin working again other than having the cache folder permission set to 777? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    You don’t necessarily need to set the permission to 777. The main thing is that all the cache folders listed in the install section require write permission from PHP.

    Thread Starter shirkworx

    (@shirkworx)

    Thank you for the quick reply. The cache folder is set to 775, but the plugin is still not working. It will generate a couple of PDF’s then stop working. I can only get it to work again by manually deleting all the files in the tmp folder. I’ve tried it in our Staging site with all plugins disabled. I even wrote a cron job to delete all the temp files, it works on the Staging site but not on the Live site. Not sure how/why the plugin was working previously. Any other suggestions? Thanks!

    Plugin Author fkrauthan

    (@fkrauthan)

    I can only recommend turning on PHP error logging and take a look what error you get when it stops generating PDFs. It still sounds to me like you are running out of disk space (or possible out of memory during the generation process).

    Thread Starter shirkworx

    (@shirkworx)

    The errors are all similar to what I posted above. I will have to reach out to WPE support again, thank you for your time…much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin works only after emptying tmp folder (continued)’ is closed to new replies.