Problem: All pluging & themes updates fail on
folder does not exist or unavialble (WP. 5.3.2)
After research I found that in
wp-admin/file.php in function:
the call to
wp_tempnam() returns non existing folder. Causing the update to fail.
- wp-config has
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');above call to
- No definitions in database: wp_options for upload dir. - to use defaults.
- All needed folders exists with propper mode
- Changing theme to default 2020 did not help (verify that no other code is involved)
All the above did not help. Only when I override the result of
wp_tempnam() in file.php all works well.
get_temp_dir() which returns the wrong part of the path. What am I missing? How can it be fixed?