soccerandtacos
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsHey @autotutorial , thanks for the detailed guidance, I really appreciate it. Everything is working as expected now that I set the permissions to rwx—— (ie, 01700). I figured this was a safer path than 777 as it prevents others from accessing the directory. Any thoughts on that?
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsThanks @autotutorial . I was sure to back everything up before making any changes haha!
Unfortunately disabling the plugin did not allow me to upload images and the missing temporary folder error persisted.
Permissions for the /wp-content folder are set to 755.
I initially added this code to wp-config.php:
define(‘WP_TEMP_DIR’,dirname(__FILE__).’/wp-content/temp’);
I then added a /temp and a /tmp folder within /wp-content an assigned the appropriate permissions.
I’m less sure about what you are suggesting here:
However this code normally overrides the default folder in one you defined.
because it doesn’t work I don’t know.
https://developer.wordpress.org/reference/functions/get_temp_dir/$temp = WP_CONTENT_DIR . ‘/’;
if ( is_dir( $temp ) && wp_is_writable( $temp ) ) {
return $temp;
}return ‘/tmp/’;
https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L71
WP_CONTENT_DIR I read this code will have the value of ABSPATH (root wordpress) wp-content for $temp = ABSPATH.’wp-content’.’/’ if it is a directory and writable return this otherwise /tmp/- This reply was modified 6 years, 11 months ago by soccerandtacos.
Hi everyone – would you be able to help me with the issue described above? Let me know if you need any additional info. Thanks!!
@wpmudev-support6 @wpmudev-support1 @wpmudev-support2Also note that this might be preventing me from uploading new images. When I attempt to upload images, I receive the error ‘missing temporary folder.’
I’ve attempted to rectify this with the usual solutions found online, e.g. here: https://hostpapasupport.com/how-to-fix-missing-temporary-folder-error-in-wordpress/
But that only served to exacerbate the issue.
Any help would be greatly appreciated.
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsHi @autotutorial – I had already posted in the plugin support area.
However, as I said, the ‘missing temporary folder’ error would appear to be unrelated to the issues with the plugin. Custom-Sidebars isn’t a tool that uses images, so why would an error with the plugin prevent me from uploading images?