Notifications
Clear all

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

6 Posts
2 Users
1 Reactions
792 Views
Posts: 4
Topic starter
(@desox7x)
Active Member
Joined: 4 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: 10591
Admin
(@robert)
Support Team
Joined: 9 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:

 

Posts: 4
Topic starter
(@desox7x)
Active Member
Joined: 4 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?

1 Reply
(@desox7x)
Joined: 4 years ago

Active Member
Posts: 4

This is the uploads folder.

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 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/

 

Posts: 4
Topic starter
(@desox7x)
Active Member
Joined: 4 years ago

That solved my problem! Thanks for your help Robert!