[Plugin: WP Autoresponder And Newsletter Plugin] system tmp directory hard coded instead of WP_TEMP_
-
Hi, I’m hosting wordpress at nearlyfreespeech.net which does not allow access to the /tmp directory. I’ve set the WP_TEMP_DIR variable correctly in the wp-config.php file, but the wp responder plugin seems to be hard coded to use /tmp.
E.g. this is the error I get when I try to go to the plugin setting page:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp/.dougb) is not within the allowed path(s): (/f5/mypath/:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/:/nfsn/content/content/nfsn/:/usr/local/php/lib/:/usr/local/php/5.2.17/lib/:/usr/local/php/5.3.5-nfsn1/lib/) in /f5/mypath/public/wp-content/plugins/wp-responder-email-autoresponder-and-newsletter-plugin/lib/preferences.php on line 25
I hacked around this by changing the code in the above lib/preferences.php file to:
<br /> if (is_writable(WP_TEMP_DIR))<br /> {<br /> Swift_Preferences::getInstance()<br /> -> setTempDir(WP_TEMP_DIR)<br /> -> setCacheType('disk');<br /> }<br />
but there is likely a more correct way to change the defaults so others don’t hit this.
http://wordpress.org/extend/plugins/wp-responder-email-autoresponder-and-newsletter-plugin/
- The topic ‘[Plugin: WP Autoresponder And Newsletter Plugin] system tmp directory hard coded instead of WP_TEMP_’ is closed to new replies.