×
Kunena 5.1.18 Released (30 Jun 2020)

The Kunena team has announce the arrival of Kunena 5.1.18 [K 5.1.18] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question "attachment not found"

More
9 years 5 months ago - 9 years 5 months ago #1 by cbrace
Hi all,

For some reason, attachments are broken on the v1.6.2 forum I manage.

Using the file picker, I can add an attachment in the message editor.

If I insert the attachment, the tags appear in the editor window, but when the message is saved, an error message is displayed:
Attachment C:\fakepath\byte-offerte-20110112.pdf not found

I looked around the configuration settings but didn't find anything, like a pathname field, that looked promising. This was working for us last fall.

Any ideas?

Thanks,
Colin

This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Enabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 160M | Max file upload: 170M

This message contains confidential information

Joomla default template details : Sense | author: K2B-media | version: 1.0.2 | creationdate: 07/20/10

Kunena default template details : Sense-Online | author: MJH | version: 1.0 | creationdate: 27-12-2010

Kunena version detailled: Installed version: 1.6.2 | Build: 3894 | Version name: Team | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: AlphaUserPoints: Disabled or not installed | CommunityBuilder: Disabled or not installed | Jomsocial: Disabled or not installed | UddeIm: Disabled or not installed

Third-party SEF components: sh404sef: Disabled or not installed | ARTIO JoomSEF: Disabled or not installed | AceSEF: Disabled or not installed

Plugins: System - Mootools12: Disabled | System - Mootools Upgrade: Enabled | JFirePHP: Disabled or not installed | Kunena Discuss: Disabled or not installed | Kunena Search: Disabled or not installed | My Kunena Forum Menu: Disabled or not installed | My Kunena Forum Posts: Disabled or not installed

Modules: Kunena Latest: Disabled or not installed | Kunena Stats: Disabled or not installed | Kunena Login: Disabled or not installed

Last edit: 9 years 5 months ago by cbrace.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #2 by xillibit
Replied by xillibit on topic Re: "attachment not found"
Hello,

what browser do you using ? Do you have tried with an another one ?

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #3 by sozzled
Replied by sozzled on topic Re: "attachment not found"
cbrace: I'm sorry but I do not have any guest access to your forum (and so I cannot see the issue). My immediate advice, at this time, is to search the forum for:

(a) "attachment not found" ; and

(b) fakepath

in the hope that some of these topics might be helpful to you.
The following user(s) said Thank You: cbrace

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #4 by cbrace
Replied by cbrace on topic Re: "attachment not found"
Sozzled,

I just discovered the cause: it was a permissions problem with this directory: /media/kunena/attachments

Changing it from 755 to 775 fixed things.

There seems to be recurring issues with permissions on the server which I host my Joomla site on; I am switching webhosting companies next week and I hope this problem will be solved for good.

The lesson seems to be: not all so-called Joomla webhosting companies are equal.

-Colin

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #5 by sozzled
Replied by sozzled on topic Re: "attachment not found"

cbrace wrote: The lesson seems to be: not all so-called Joomla webhosting companies are equal.

I agree. Good point. :)

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #6 by cbrace
Replied by cbrace on topic Re: "attachment not found"
Hi again Sozzled,

Just a quick follow-up: I am testing my Joomla site on a new host. I made a backup with Akeeba and installed it on the new server.

Everything went fine except I did again have to manually modify the permissions for /media/kunena. Are the default settings in Kunena too restrictive? Once I added write permission to group and other, attachments worked again. I find this odd, since the webserver reads and writes as owner of the files. Why would the Kunena need group or other write permission to write files?

I notice for example that another Joomla extension I use, the excellent, DOCman, manages to write files in its document directory with the default settings, -rw-r--r--

Thanks.
Last edit: 9 years 5 months ago by cbrace. Reason: pressed enter by mistake

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #7 by sozzled
Replied by sozzled on topic Re: "attachment not found"

cbrace wrote: ... the webserver reads and writes as owner of the files.

Who actually owns the files? See Avatar doesn't change or save on 1.6 and please read the entire discussion.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #8 by cbrace
Replied by cbrace on topic Re: "attachment not found"
OK, I read that thread. Apache needs to own the folder.

The thing is, when you restore a Akeeba backup, EVERYTHING is owned the webserver, as it is recreating all the files and directories, no? I haven't touched anything via ftp or ssh.

I still don't understand why after the webserver itself installs my Joomla site from the Akeeba backup Kunena still can't write to /media/kunena/, even though it is owned like every other directory by the the webserver.

Sozzled, sorry if I seem dense. I am just a part-time webmaster and Joomla tinkerer. ;)

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #9 by sozzled
Replied by sozzled on topic Re: "attachment not found"

cbrace wrote: Sozzled, sorry if I seem dense. I am just a part-time webmaster and Joomla tinkerer. ;)

I spend so much time at this forum, I don't have time for my own webcraft. I'm just a user, mate. :D

You'll just have to take my advice on faith. We don't have the problems here (that I'm aware of) and I don't have the problems in my own case (that I'm aware of) but these problems may still occur despite all the best-laid plans that we have. The most important thing to know is this: what happens now, when you upload a new file, a new attachment to a post on your website? Do you get an "attachment not found" error?

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #10 by cbrace
Replied by cbrace on topic Re: "attachment not found"

The most important thing to know is this: what happens now, when you upload a new file, a new attachment to a post on your website? Do you get an "attachment not found" error?


OK. Last night I moved the site (definitively) to the new host, restoring the Akeeba backup.

Everything on the new server worked fine, except Kunena message attachments ("attachment not found"). I ran chmod -R go+w on /media/kunena. Problem solved.

Perhaps Akeeba is interfering with permissions?

This evening I will test this again here at home on my Fedora desktop system running Apache.

Since I have solved the problem, I don't want to take up too much more of your valuable time, but it might be nice to figure out what is going on here.

Thanks,
-Colin

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.136 seconds