Keyword

Browse server for attachment error - wrong path

  • Joe Blow
  • Joe Blow's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175340 by Joe Blow
When I choose the "browse server" option to find an attachment, the media manager returns the wrong path for the file. Then of course the file can't be found for viewing or downloading.

The incorrect filename is given in the error message when I try to Save (example is a file I had already uploaded via FTP):

JFile::copy: Can't find or read file /home/[sitename]/public_html/public_html/media/k2/attachments/[filename]

on the backend, same thing.

I don't know exactly what the path should look like--I would have thought "media/k2/attachments/[filename]"--but you can see why this will never work.

I haven't changed the default K2 path for attachments.

So, how might this be fixed?

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

More
4 years 7 months ago #175348 by JoomlaWorks
Replied by JoomlaWorks on topic Browse server for attachment error - wrong path
The path is indeed wrong as it contains (public_html/public_html) but this looks like a mis-configuration in Joomla. Check your tmp file path in configuration.php and also your media manager root path in Joomla's Media Manager configuration (which K2's Media Manager uses as the base path).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Joe Blow
  • Joe Blow's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #175365 by Joe Blow
Thank you. The problem lay in Joomla's Media Manager path as you suspected. Fixed!

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

More
4 years 7 months ago #175368 by JoomlaWorks
Replied by JoomlaWorks on topic Browse server for attachment error - wrong path
Great!

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum