jackbauer
Verified User
- Joined
- Dec 28, 2020
- Messages
- 21
Before you tell me to create a tmp folder and use
The best thing I could achieve, with the help of my hosting company (and that's an unmanaged hosting) was getting rid of the "PCLZIP_ERR_MISSING_FILE (-4)" when installing or updating a plugin, but pretty much everything else that relies on the tmp folder is just not working. I can't upload images in my posts because it will say "Missing a temporary folder", I can't save a layout in my Gantry5 theme because it will return the error "400 Bad Request Oops, Error while saving layout: Structure missing.". Whichever fix I tried so far just didn't work, but it doesn't mean that I'm not able to get this thing working, I am able: temporarily.
If I restart the server, everything will work just fine, without the need to touch anything, there'll be no tmp folder problem. The thing is, after 1 hour or so, the problem will go back.
define('WP_TEMP_DIR', ABSPATH . 'wp-content/temp');
inside wordpress configuration file, this is more complicated than it looks. I'm using CentOS 8, with Directadmin, and recently I've moved to another server. After moving, I started getting this error which seemed like just a permissions problem in the tmp folder, I even followed a tutorial telling to set the tmp folder path in openbase_dir funcion inside php.ini, in order to enable openbase_dir for that folder. Despite what I did, enabling openbase_dir, disabling, enabling it from the control panel in Directadmin, disabling it from the control panel, creating a custom temp folder inside wp-content folder and defining the code inside the configuration file, everything I tried failed. Also, I have like 85% of free diskspace, so I don't believe that's a disk problem. I even fixed all permissions in all folders.The best thing I could achieve, with the help of my hosting company (and that's an unmanaged hosting) was getting rid of the "PCLZIP_ERR_MISSING_FILE (-4)" when installing or updating a plugin, but pretty much everything else that relies on the tmp folder is just not working. I can't upload images in my posts because it will say "Missing a temporary folder", I can't save a layout in my Gantry5 theme because it will return the error "400 Bad Request Oops, Error while saving layout: Structure missing.". Whichever fix I tried so far just didn't work, but it doesn't mean that I'm not able to get this thing working, I am able: temporarily.
If I restart the server, everything will work just fine, without the need to touch anything, there'll be no tmp folder problem. The thing is, after 1 hour or so, the problem will go back.