"File not found" error !!

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #125243

Hi,

I checked that product on your website. The issue is that you have a space character at the end of the file path. So that's why the file is not found.

We'll add a patch to avoid that so that even if you add additional spaces they are trimmed down.
To add it, you can add the line:
$file->file_path = trim($file->file_path);

before the line:
$filename = $path.$file->file_path;
in the file administrator/components/com_hikashop/classes/file.php

The following user(s) said Thank You: aijosh

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

  • Posts: 10
  • Thank you received: 0
11 years 1 month ago #125267

Ok. :cheer: That's great relief.
Although the patch isn't working but now that I know what the issue is probably i'll just get the spaces removed inside the database.

Remember the patch isn't working .
Yes. And I've purged the joomla cache and cleared my browser cache.

Thanks

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

  • Posts: 36
  • Thank you received: 1
8 years 6 months ago #239384

I am experiencing the same issue with imported files.
I do not have an /images/com_hikashop/upload/safe directory, so I created one.

When I create an import, should I put the files in this folder?
The cron is automatically picking up my csv file and creating the product record with links, and the product can be purchased. The problem is the confirmation email sends a link, and when you click on the link it says "file not found". I modified the product on the back end (deleted the file name link) and uploaded the file again. This time the link works, but there is still an error message file not found.

1. Is it ok for me to create the "safe" directory - do I need more than just an empty directory, like an .htaccess file?
2. should i drop my files in the /safe/ directory for the import to work?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 6 months ago #239389

Hi,

1. The safe directory is created automatically in media/com_hikashop/upload/safe so it's normal that you don't have it in images/com_hikashop/upload/safe. You're not looking at the correct place. And there is already a .htaccess in it.

2. It depends. If you just enter the filename in the "files" column of a CSV you're importing, then yes, you want to put the files in the media/com_hikashop/upload/safe folder. However, if you're specifying the absolute path or a URL to the file in the files column of the CSV, that shouldn't be the case. And if you're importing from a folder, that folder shouldn't be the upload/safe folder but another folder where your files to be imported should be.

3. Before checking the link in the email, check the link in the order details in the backend. That backend link circumvent all the checks on the order status, etc. If that link in the backend doesn't work, it means that there is a problem with the file/the import/the upload safe folder or something like that. If that link work, then the problem is that the customer is not able to access the download ( file download time expired, file max number of downloads reached, order not confirmed, etc).

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

  • Posts: 36
  • Thank you received: 1
8 years 6 months ago #239422

Thank you! Found the directory.
Here's what worked for me.
1. Put the images in /media/com_hikashop/upload
2. Put the files in /media/com_hikashop/upload/safe
3. Put my cron trigger file in another directory
Works like a charm!
Thanks for your patience.

Last edit: 8 years 6 months ago by joyhanawa. Reason: updating solution.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum