Fix Idea for limiting number of “Could not create lockfile /tmp/.postman.lock”
-
I changed ‘sys_temp_dir = “/var/www/tmp”” and ‘open_basedir = /var/www/’ in my php.ini file to limit disk exposure of any compromised websites on my server. This ended up breaking the Postman SMTP plugin.
While its great that you give users an option to manually enter the tmp dir within the plugin admin, if there is not a setting there, the plugin is hardcoded via the “wp-content/plugins/postman-smtp/Postman/PostmanOptions.php” file to use “/tmp” via “const DEFAULT_TEMP_DIRECTORY = ‘/tmp’;”.
I’m not a PHP developer of any kind, but shouldn’t your plugin use “sys_get_temp_dir()” in the absence of user intervention?
- The topic ‘Fix Idea for limiting number of “Could not create lockfile /tmp/.postman.lock”’ is closed to new replies.