mchung / heroku-buildpack-wordpress

Heroku buildpack: Wordpress on Heroku
mchung.github.com/heroku-buildpack-wordpress/
388 stars 333 forks source link

How to set write access to /tmp directory #84

Closed Hamatek closed 10 years ago

Hamatek commented 10 years ago

Hello there, i was wondering if anyone knows how I can get ride of this error "You do not have sufficient permissions to access this page." when I try to save my Amazon S3 Settings :(

On the plugin descrption page https://wordpress.org/plugins/wpro/ I found out this Note : You still need write access to the system /tmp directory for this plugin to work. It will use the system /tmp directory for temporary storage during uploads, image editing/scaling, etc.

Yet I don't have any clue how to changes the right on the tmp file since Its generated by heroku, @okko by any chance do you know how to do it ?

okko commented 10 years ago

In Heroku you already have write access to /tmp, this should not be a problem.

foohonpie commented 9 years ago

I'm having the same issue. I don't think /tmp is the reason, but this is definitely still a problem. This is on a fresh cedar install with no other customizations. At first I thought it was related to my S3 setup or credentials, but blanking all the fields and trying to save still triggers the error.

When saving the WPRO settings, The POST results in 302 followed by a GET that returns a 500. Relevant log entries below:

heroku[router]: at=info method=POST path="/wp-admin/admin-post.php" host=example.com request_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx fwd="xxx.xxx.xxx.xxx" dyno=web.1 connect=0ms service=310ms status=302 bytes=606

app[web.1]: 10.38.42.185 - - [09/Dec/2014:15:14:28 +0000] "POST /wp-admin/admin-post.php HTTP/1.1" 302 5 "https://example.com/wp-admin/options-general.php?page=wpro" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25"

heroku[router]: at=info method=GET path="/wp-admin/network/settings.php?page=wpro&updated=true" host=example.com request_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx fwd="xxx.xxx.xxx.xxx" dyno=web.1 connect=0ms service=376ms status=500 bytes=3279

app[web.1]: 10.38.42.185 - - [09/Dec/2014:15:14:29 +0000] "GET /wp-admin/network/settings.php?page=wpro&updated=true HTTP/1.1" 500 2985 "https://example.com/wp-admin/options-general.php?page=wpro" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25"

okko commented 9 years ago

We have a slightly forked wpro version at https://github.com/frc/wpro - you might want to try give that a shot.