Tacolombardi Posted May 4, 2017 Share Posted May 4, 2017 Hi all, I recently started using PW and it looks very, very good, that is if I get it to work properly om my domains. Like many others before me I have the same problem with image upload in the back-end. But I'm at a total loss at this moment. I have tried every solution i could find on the forums to no success. I tried to disable mod_security in the htaccess but as i'm on a shared host I don't think I am able to do that and the Host will probably override those settings. I tried some changes in the php.ini and also tried to get the oldskool upload trough editing the javascript but that also didn't work. GD2 is running and I also tried always_populate_raw_post_data Now I don't know what to do anymore... My error log says this: ModSecurity: Access denied with code 501 (phase 2). Match of "rx (?:^(?:application\\\\/x-www-form-urlencoded(?:;(?:\\\\s?charset\\\\s?=\\\\s?[\\\\w\\\\d\\\\-]{1,18})?)??$|multipart/form-data;)|text/xml)" against "REQUEST_HEADERS:Content-Type" required. [file "/etc/httpd/modsecurity.d/modsecurity_crs_30_http_policy.conf"] [line "69"] [id "960010"] [msg "Request content type is not allowed by policy"] [severity "WARNING"] [tag "POLICY/ENCODING_NOT_ALLOWED"] [hostname "*********"] [uri "/*******/page/edit/"] [unique_id "WQr10lTxsYkAAIPEJEYAAAAC"] [error] [client *********] PHP Notice: Trying to get property of non-object in /var/www/******/data/www/*********.*********.com/site/templates/news.php on line 50, referer: http://*********.*********.com/*********/page/edit/?id=1019 Like I said i'm on a shared host so it's not my own server and I don't have that much knowledge about servers but I do want to try PW and in the future use it on several other domains as wel. Thanks in advance, Taco. Link to comment Share on other sites More sharing options...
abdus Posted May 4, 2017 Share Posted May 4, 2017 It appears that your Apache settings don't allow Content-Type headers due to misconfigured modsecurity. I'm not well versed in .htaccess, but you might be able to override security settings using .htaccess file. This SO answer might help. http://stackoverflow.com/questions/28984089/htaccess-allow-all-sorts-of-content-types Link to comment Share on other sites More sharing options...
gmclelland Posted May 9, 2017 Share Posted May 9, 2017 What version of Processwire are you using? I think there was also an image upload issue with 3.0.61. Maybe try 3.0.62 dev? You can read the latest few commits here https://github.com/processwire/processwire/commits/dev Hope that helps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now