• Resolved itone123

    (@itone123)


    Im getting an error when I try to upload any media(pictures or files etc.). Its saying missing temporary folder.

    I’ve tried
    1)changing file permissions,
    2)editing wp-config with this code and adding temp folder define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
    3)upping wp php mem to 128M
    4. disabling all plugins

    Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Backup file and database https://wordpress.org/support/article/wordpress-backups/
    Download your WordPress version (default language en) https://wordpress.org/download/releases/
    extract the zip file in a folder on your PC. Remove the wordpress folder, copy (not move) the wp-content / uploads or blog.dir folder to the folder you extracted.
    Copy your wp-config.php to the folder you extracted, copy your temp folder to the folder you extracted.
    copy your themes folder to the folder you extracted.
    copy your plugins folder to the folder you extracted.
    now create a zip file.
    Probably your hosting allows you to install compressed archives and unzip them in your destination folder.
    Currently I believe you have problems with file ownership and / or permissions.
    If you add them via ftp the owner is the ftp user … set all directories to 775 and file 664 .. if you still have problems indicate the error .. contact your hosting to know if the php files must be owned ftp or created by php .. (in the second case it is possible to create them with php).
    Only if you have full back-up.

    • This reply was modified 6 years, 5 months ago by autotutorial. Reason: Edit
    Thread Starter itone123

    (@itone123)

    so the goal in doing so is to manually reinstall the WordPress version in order to fix file permissions?

    otherwise you have to check if from the wordpress installation folder and all subsequent folders have the same property … in an ftp client it translates into the registered always the same number for the owner.
    If all the folders and files have the same number you need larger permissions or you have to change the owner to all the folders or files if php wants to be the owner ..
    Surely your hosting company knows how php works and who should be the owner … Ask them for support is not a WordPress problem.

    in the case of reinstallation, reference is made to what is necessary to complete backup of the files and databases. Then having deleted each folder, files on your server, otherwise not work with true permissions.

    Thread Starter itone123

    (@itone123)

    Apparently changing all the file permissions in all folders and then changing them back to what they were originally fixed my problem. I’m kind of wondering if someone was able to gain access to the website and change the file permissions. This all happened after I installed and app and came back the next day.

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

The topic ‘uploading media error’ is closed to new replies.