• hello
    i’m running wordpress 3.5.1, trying to upload images, i get the following error:

    Unable to create directory wp-content/uploads/2019/01. Is its parent
    directory writable by the server?

    i tried to fix this with checking chmod settings and including

    define( ‘UPLOADS’, ‘wp-content/uploads’ );

    in the wp-config.php without success.
    ultimately i want to update to the latest wordpress, but get the following error when trying to:

    Fatal error: Cannot redeclare class WP_Widget_Media in
    /www/htdocs/user/wp-content/themes/highart/highart/widgets/widget-media.php
    on line 71

    website was completely gone (still on ftp though), and i had to ask provider for a backup.
    please can you help me how i can either upload images in an ancient wp or update to the newest one?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    First of all, you are using an older version of WP. For security, you may want to consider updating it.

    Now, about the errors you posted:

    Unable to create directory wp-content/uploads/2019/01. Is its parent
    directory writable by the server?

    Is it?

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 or 777.

    Once your uploads are working, change the permissions on wp-content back to 755 again (very important for security reasons!) and check that everything still works OK

    Fatal error: Cannot redeclare class WP_Widget_Media in
    /www/htdocs/user/wp-content/themes/highart/highart/widgets/widget-media.php
    on line 71

    This error seems to be coming from your highart theme.

    Try switching to the one of the default themes and see if the error goes away.

    • This reply was modified 5 years, 10 months ago by t-p.
    Anonymous User 14474179

    (@anonymized-14474179)

    Hello. The problem is not the permissions, it is the uploads folder path. Go to Settings/Media and change the path of upload images. Hope it helps ??

    • This reply was modified 5 years, 10 months ago by Anonymous User 14474179.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image upload error / unable to update wp’ is closed to new replies.