Keyword

Error Local file does not exist

More
10 years 1 week ago #132102 by dave
Error Local file does not exist was created by dave
Hi, when I try to add an image to a category I get 'Error Local file does not exist'. Looked at other posts
here and here but the fixes don't seem to solve the problem.

On ampps localhost running Joomla 3.3.3 and K2 2.6.8.

Your help would be greatly appreciated.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 days ago #132103 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Error Local file does not exist
Is it possible to paste the filename here?

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

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

More
10 years 6 days ago #132104 by dave
Replied by dave on topic Re: Error Local file does not exist
new farm park.jpg

Took the spaces out this morning to make it newfarmpark.jpg and it worked.

Why does K2 now decide it doesn't like spaces? All my other files have spaces. Just an hour before this error it was using files with spaces.

Additional info: clicking browse server in category, 50% of the time it says connection reset. Never did that before.

Also tried reinstalling K2 - didn't help.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 days ago #132105 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Error Local file does not exist
You need to check your error to see what is crashing your system.
Keep in mind that you are running Joomla! in a localhost and not on a real server.

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

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

More
10 years 6 days ago #132106 by dave
Replied by dave on topic Re: Error Local file does not exist
Could you give me some obvious places to start looking? I'm a bit out of my depth here.

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

More
10 years 5 days ago #132107 by Lefteris
Replied by Lefteris on topic Re: Error Local file does not exist
@dave

K2 didn't decide anything, your server did. Avoid spaces and other special characters to the files you upload. The connection timeout is also a response from your server. Try to set error reporting to maximum and enable system debugger to see any errors. You might also have to look at your server error logs.

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

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

More
9 years 2 months ago - 9 years 2 months ago #146075 by LSMoNKi
Replied by LSMoNKi on topic Error Local file does not exist
Same here with a file named "logo_viajes espaa custom 2.jpg",

Media maganer returns the following filename (urlencoded) when you select it:

/images/stories/Empresas/logo_viajes%20espaa%20custom%202.jpg

Obviously, K2 can't find it later.
Last edit: 9 years 2 months ago by LSMoNKi. Reason: typo

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #146098 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error Local file does not exist
Hello,

As Lefteris said, Avoid spaces and other special characters to the files you upload.

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

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

More
8 years 3 months ago #155770 by Sergio Di Mare
Replied by Sergio Di Mare on topic Error Local file does not exist
To resolve this issue i modify
/httpdocs/administrator/components/com_k2/models/item.php
at row 630 inside else i add
$myDir		= $savepath.DS.$row->id;
$galleryDir 	= opendir($myDir);
while ($filename = readdir($galleryDir))
{
	if ($filename != "." && $filename != "..")
	{
		$file 		= str_replace(array(")","("," "), "_", $filename);
		$safefilename 	= JFile::makeSafe($file);
							
		rename($myDir.DS.$filename, $myDir.DS.$safefilename); 
							
	}
}
closedir($galleryDir);

...think for the next update of k2?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155802 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error Local file does not exist
Hello Sergio,

Thank you for your feedback.
Could you create a PR on our repo github.com/getk2/k2 so we can evaluate it and possibly add it in the core?

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