• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 "You dont have permission to access" error

Azman

New member
#1
i've these error when trying to upload an image.
confirm i've changed chmod for "data" and "internal_data" to 7777

i've gone through xf community but still cannot find any solution to this.

can someone share some tips how can i revolve this.


error.jpg
 

Chris D

XenForo developer
Staff member
#2
Do you have any add-ons related to attachments?

"/attachments/upload" is not a directory that we would try to upload files to.
 

Mike

XenForo developer
Staff member
#3
I'd guess it's more of a mod_security-type issue that's blocking the request before it even gets to XenForo.
 

Azman

New member
#4
well i dont really know. my test site seems to be working fine. but not the actual site.
my forum actually is an old forum based on smf. i migrated to xf because of its features and all. beside this, my users also experiencing strange errors. almost similar access error.

i'll talk to my hosting on how to go about the mod_security.

just one more question. originally the xf was installed in a "forum" folder. then i moved the whole installation to the root. can that be the cause? is it possible to reinstall a fresh xf in the same location?
 

Brogan

XenForo moderator
Staff member
#5
just one more question. originally the xf was installed in a "forum" folder. then i moved the whole installation to the root. can that be the cause? is it possible to reinstall a fresh xf in the same location?
No, it's unlikely to be the cause.

It's typically going to mod_sec or some other security mechanism as suggested.
Your host should be able to resolve it.
 

Azman

New member
#7
just got the reply. support ask me to include the following in the htaccess

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

unfortunately the error still there.
anything else need to be done after changing the htaccess file?
 

Azman

New member
#9
you are right Chris. somehow the software detect the old directory and use it for the upload. just rename the folder everything work just fine.
thank you very much