Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Brandon Brigham
Brandon Brigham
3,716 Points

Getting error when trying to upload image to WordPress site

Hello,

I just migrated the site I'm working on to http://axrtek.com.

They are hosted with iWeb (which has been a crappy experience).

When trying to upload an image I get this error:

"The uploaded file could not be moved to wp-content/uploads/2014/11."

I researched and tried changing the permissions to 744 and then back to 755 but just got more errors.

Any ideas? Should I contact hosting again or is there something I can do on my end?

Thanks for any help!

1 Answer

Jacob Herper
Jacob Herper
94,150 Points

Try changing CHMOD to 777 for the uploads folder and all subfolders. If that doesn't help, try setting the memory limit up by adding the following lines to your wp-config.php:

define('WP_TEMP_DIR', ABSPATH . 'wp-content/'); define('WP_MEMORY_LIMIT', '128M');

That worked for me once. Also check your PHP version, it should be at least 5.3 to work properly with WordPress.

Brandon Brigham
Brandon Brigham
3,716 Points

Thank you Jacob! I changed the Uploads folder and its subfolders to have permissions of 777. You're the man!