SoftException in application Application.cpp: 249: file cannot be attached

I have a news site.

And in my .htaccesfile I have this line of code.

RewriteRule ^event/([0-9]+)/?$ events.php?id=$1

If I go to mysite.com/index/event/1, I get 500 internal server error

The strange thing is that if I change .htaccesto

RewriteRule ^event/([0-9]+)/?$ nieuws_read.php?id=$1

I am not getting this error and the page is working correctly.

How is it possible that it does not work with all files.

I got this error

    [Tue May 27 17:46:41 2014] [error] [client ipadress] SoftException in Application.cpp:249: File "/../../../../public_html/new/events.php" is writeable by group, referer: http://new.mysite.eu/index/events
[Tue May 27 17:46:41 2014] [error] [client ipadress] Premature end of script headers: events.php, referer: http://new.mysite.eu/index/events
[Tue May 27 17:46:41 2014] [error] [client ipadress] File does not exist: /../../../../public_html/new/500.shtml, referer: http://new.mysite.eu/index/events

Hope I have given you enough information. thank

+4
source share
4 answers

You must check the files.

Once I got the same error, I changed the filepermissions form 666to644

+4
source

. 76176, . chmod SSH, . cd , WP.

find . -type d -exec chmod -R 755 {} \;
find . -type f -exec chmod -R 644 {} \;
find . -type f -name 'wp-config.php' -exec chmod -R 600 {} \;
+7

I have the same problem, but it happened to the wp-content folder on my WordPress site. I searched and found a solution from this message , you just need to change the folder resolution from 777 to 755, and it worked.

+4
source

How to change the ownership of files and folders on CWP.admin Left Menu → User Accounts → Fix Permissions and select a user.

Official fix

0
source

Source: https://habr.com/ru/post/1541610/


All Articles