Keyword

[SOLVED] Local file doesn't exist

More
12 years 4 weeks ago #61016 by Aaron
Replied by Aaron on topic Re: Local file doesn't exist
Sigh... I am writing this in hopes of maybe helping myself and others...

Current versions: Joomla 2.5.4 and K2 2.5.6

Error: K2_FILE_DOES_NOT_EXIST

I had it working on my development site but when I started putting everything on staging, it stopped working.

and... just checked my DEV site.. now I am getting the SAME error.. I am SO puzzled...

Even though the file is attached in both the front end and the admin end... it will NOT let me download it. Both give an error that file does not exist.

So... without ANY changes to the DEV site, it all breaks...

On staging, I checked/fixed the joomla database and reinstalled K2 over the current install.

Now... I can attach a jpg and I can download it from the admin end but the front end still gives me the error.

When I try:
JPG: downloads from the backend, not the front end
ZIP: downloads from the backend, not the front end
MP3: Shows up in the list but all columns are blank. Does not show in the front end as an attachment. The strange thing about the mp3s are that when I attach them from the server, they disappear entirely from the attachment folder.

My site is supposed to go live on May4th and this is a key element.. any advice would be greatly appreciated...

Some more background information:
Media manager:
1. I have added mp3 to legal file extensions
2. Changed path to files folder to media
3. Even added mp3 to the legal image extensions

K2 Media manager:
1. Change root attachments folder: media/k2/attachments


Aaron :)

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

More
12 years 4 weeks ago #61017 by Aaron
Replied by Aaron on topic Re: Local file doesn't exist
Okay... so I uninstalled Joomla and reinstalled it.
I then reinstalled K2 so right now I have Joomla 2.5.4 and K2 2.5.6
I also installed allvideos plugin v4.4

I have a FRESH install. I have not installed any other components, modules or plugins..

I ran several User Acceptance Tests (UAT) and found that if the file is already on the server and it is in an m4a, K2 deletes it. I have tried several other file formats.. mp3s work fine.

Is this a known issue with certain file types or did I really space a setting somewhere?

Checkout the XLS for details about my UAT


Aaron :)

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

More
12 years 3 weeks ago #61018 by Aaron
Replied by Aaron on topic Re: Local file doesn't exist WILLIAM?
Okay.. before I put this on the bug list, would love for someone else to try and M4a as an attachment...

maybe it is just me and I would love nothing more because then I can troubleshoot ME and get it working lol


Aaron :)

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

More
11 years 6 months ago #61019 by Wouter van Vliet
Replied by Wouter van Vliet on topic Re: Local file doesn't exist WILLIAM?
I experienced the same problem, but was able to relate it to pathnames with spaces. What worked for me was to add three lines of code to the file "administrator/components/com_k2/lib/class.upload.php". Even though one could have done it.
Log in  or Create an account to join the conversation.

More
11 years 6 months ago #61020 by william white
Replied by william white on topic Re: Local file doesn't exist WILLIAM?

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

More
11 years 5 months ago #61021 by Carlo Greco
Replied by Carlo Greco on topic Re: Local file doesn't exist WILLIAM?
I have the same problem with images having spaces in their name.
Your solution look definitely the right one, could you please specify the position where you added those code lines? Or attach your file if you prefer.

Thank you very much!

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

More
11 years 5 months ago - 11 years 5 months ago #61022 by Sean Grünböck
Replied by Sean Grünböck on topic Re: Local file doesn't exist WILLIAM?
Hi Wouter.

Can you specify where you put those lines?
I'd like to try your solution..

thanks,
Sean.

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

  • Blue Heron Acupuncture & TCM
  • Blue Heron Acupuncture & TCM's Avatar
  • Offline
  • New Member
More
11 years 2 months ago #61023 by Blue Heron Acupuncture & TCM
Replied by Blue Heron Acupuncture & TCM on topic Re: Local file doesn't exist
Hi I know it's an old post but I just came across this problem myself with K2 Version 2.6.5 and Joomla 2.5 - solution for me was simply to reinstall K2 and then everything was fine.

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

More
11 years 1 month ago #61024 by Aron Day
Replied by Aron Day on topic Re: Local file doesn't exist
I am having this problem after updating to the newest version of K2.

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

More
10 years 5 months ago #61025 by Jeremy Fryman
Replied by Jeremy Fryman on topic Re: Local file doesn't exist
This one is a real pain. It caught me.
However with a bit of perseverance, (yes more K2 perseverance!) I think I have sorted it.

Rigorous file names! NO SPACES, No funny characters including &. Under slash is OK. Not too long.
If you can see the filed and it still fails to tag, then use the media manager to download (make a change) and then re upload.

I had to re-name over 400 files! There were still a few with orphan spaces.

Lost a few hairs, torn out in exasperation but I think all is now well. :)

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