- Posts: 4
COMMUNITY FORUM
Browse server for attachment error - wrong path
- Joe Blow
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #175340
by Joe Blow
Browse server for attachment error - wrong path was created 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?
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 7 months ago #175348
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
4 years 7 months ago #175365
by Joe Blow
Replied by Joe Blow on topic Browse server for attachment error - wrong path
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 7 months ago #175368
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.