This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] Photo uploads broken for the blog

Jessica McKellar jessica.mckellar at gmail.com
Sun May 6 20:50:30 UTC 2012


Thanks for the fix and explanation!

-Jessica


On Sun, May 6, 2012 at 4:21 PM, Asheesh Laroia <asheesh at asheesh.org> wrote:

> On Sun, 6 May 2012, Jessica McKellar wrote:
>
>  Hi Asheesh,
>>
>> It looks like photo uploads for the blog are broken.
>>
>> When I try to upload a photo, I get:
>>
>> """
>> “full_room.png” has failed to upload due to an error
>> Unable to create directory /var/www/blog/wp-content/**uploads/2012/05.
>> Is its
>> parent directory writable by the server?
>> """
>>
>
> Thanks for reporting that! I've just fixed the ownership and tested that
> uploads work. Give it a shot now.
>
> Quite probably, in the near future, we should have a Jenkins task that
> verifies that blog uploads work.
>
> The reason it broke is that, when adjusting the way we run PHP to be more
> standard to avoid the "Loss of session data" problem in MediaWiki, I
> changed the wiki to run as the 'www-data' user, and the blog now runs as
> that user as well. Sadly, I didn't adjust the ownership of the "wp-content"
> files so that www-data can write to those directories.
>
> Now it can!
>
> -- Asheesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhatch.org/pipermail/devel/attachments/20120506/aa235b02/attachment.html>


More information about the Devel mailing list