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.
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:
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?
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/
That solved my problem! Thanks for your help Robert!