Notifications
Clear all

wpForo 1.x.x [Solved] File attachment button doesn't work

6 Posts
2 Users
1 Likes
457 Views
Posts: 5
Topic starter
(@desox7x)
Active Member
Joined: 2 years ago

Hi wForo team. I've been working on a forum implementation using your plugin. But for some reason when I try to upload a file (an image for example), gives me this error "Can't upload file"... I really don't know what to do, I tried everything I saw on the internet.

https://dpworldacademy.com/community/ This is the forum. 

Please help.

5 Replies
Robert
Posts: 9980
Admin
(@robert)
Support Team
Joined: 7 years ago

@desox7x,

Something is wrong with your file system, Either the folder permissions are incorrect or the attachments' directory doesn't exist. Please use some FTP client (e.g. FileZilla) and take a screenshot of these directories:

  • /wp-content/
  • /wp-content/upload/
  • /wp-content/uploads/wpforo/

Make sure the permission and owner columns are in the screenshot, so I can see them, it should look like this:

 

Reply
Posts: 5
Topic starter
(@desox7x)
Active Member
Joined: 2 years ago

Hmm... for some reason I don't have the wpForo folder in Uploads. Maybe because I couldn't upload files? Should I create that folder?

Reply
1 Reply
(@desox7x)
Joined: 2 years ago

Active Member
Posts: 5

This is the uploads folder.

Reply
Robert
Posts: 9980
Admin
(@robert)
Support Team
Joined: 7 years ago

@desox7x,

The reason is your incorrect ownership of files and permissions. All files and folders have permissions and owners, If the owner is higher than the WordPress file owner then WordPress plugins cannot create folders. It seems the WordPress files was uploaded and installed by root account or by some FTP account which have near to root account privileges. Now, WordPress files cannot create other files and folders. In any case lets try to create these folders manually and set 777 permission for all them:

  • /wp-content/uploads/wpforo/
  • /wp-content/uploads/wpforo/attachments/
  • /wp-content/uploads/wpforo/default_attachments/
  • /wp-content/uploads/wpforo/avatars/

 

Reply
Posts: 5
Topic starter
(@desox7x)
Active Member
Joined: 2 years ago

That solved my problem! Thanks for your help Robert! 

Reply