• Hello,

    I work with my sysadmin on this subjet and we are not able to fix the problem.
    We tried all the recommendations found in this forum and nothing works.

    TEMP FOLDER ARE MISSING

    CONFIGURATION :
    WP : 6.6.2
    PHP : 8.2
    URL* :
    On the server : exemple.domain.com
    For the client : http://www.domain.com/exemple

    * We have a rule at Akamai that rewrites the URL

    —————–

    WHAT WE ALREADY TRIED
    – addind this line in the config.php –> define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
    – Create the temp folder inf the wp-content folder.
    – Giving the 775 permissions for this folder.

    ———————

    From that, do you have any recommendations?
    – Do we need to set something on the PHP server directly?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    I can’t find the error message mentioned in WordPress. Where do you see it? Could it be that it is being output by something else? A plugin or PHP itself?

    Thread Starter stevesrc

    (@stevesrc)

    Hello@threadi ,

    The message appears when I try to upload an image in the media section.
    It’s a new and fresh installation. No plug-in.

    Moderator threadi

    (@threadi)

    Can you show a screenshot of this? I assume it is the return of a PHP error. You can insert a screenshot as described here: https://ww.wp.xz.cn/support/forum-user-guide/block-editor/#adding-screenshots

    Thread Starter stevesrc

    (@stevesrc)

    Hello @threadi

    THere is the image : https://imgur.com/a/oHZnd0F

    There is no hint on the error.

    Also, maybe thatt will helps. I upload, by Sftp, directly my image into the Upload folder and I cannot find them.

    Thanks for you time by the way 😉

    • This reply was modified 1 year, 8 months ago by stevesrc.
    Moderator threadi

    (@threadi)

    Ok, so I can find this text in WordPress. It is displayed when PHP throws the error UPLOAD_ERR_NO_TMP_DIR in relation to an uploaded file.

    So it is a PHP error that is the cause here. You should therefore check what the hosting settings are. The following information is relevant in PHP:

    • upload_tmp_dir => must point to an existing directory
    • open_basedir => should contain upload_tmp_dir or a directory containing it

    If necessary, contact the support of your hoster, because if this error occurs, it indicates a misconfiguration in the hosting.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Temp Folder – Need more helps’ is closed to new replies.