[Skip to main content](#vessel-content)

#   "File not found" error !!

##

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 1 month ago [\#125243](#125243) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["File not found" error !!](/forum/3-bug-report/54324-file-not-found-error?start=20#125243 "I have a site for donwloadable media and files, i have 2 categories , one for sale video, the second for free video; the firt categories of product have no problem, the second report an error when u...")*

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-&gt;file_path = trim($file-&gt;file_path);

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

The following user(s) said Thank You: [aijosh](/forum/user/27407-aijosh "View aijosh's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDMyNC1maWxlLW5vdC1mb3VuZC1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aijosh](/forum/user/27407-aijosh "View aijosh's Profile")**
- [![aijosh's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27407-aijosh "View aijosh's Profile")
- [ Offline](/forum/user/27407-aijosh)

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 1 month ago [\#125267](#125267) by [aijosh](/forum/user/27407-aijosh "View aijosh's Profile")  Replied by *[aijosh](/forum/user/27407-aijosh "View aijosh's Profile")* on topic *["File not found" error !!](/forum/3-bug-report/54324-file-not-found-error?start=20#125267 "I have a site for donwloadable media and files, i have 2 categories , one for sale video, the second for free video; the firt categories of product have no problem, the second report an error when u...")*

Ok. ![:cheer:](/media/kunena/emoticons/2.png ":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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDMyNC1maWxlLW5vdC1mb3VuZC1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")**
- [![joyhanawa's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40919-joyhanawa "View joyhanawa's Profile")
- [ Offline](/forum/user/40919-joyhanawa)

Less More

- Posts: 36
- Thank you received: 1
-
-

10 years 6 months ago [\#239384](#239384) by [joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")  Replied by *[joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")* on topic *["File not found" error !!](/forum/3-bug-report/54324-file-not-found-error?start=20#239384 "I have a site for donwloadable media and files, i have 2 categories , one for sale video, the second for free video; the firt categories of product have no problem, the second report an error when u...")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDMyNC1maWxlLW5vdC1mb3VuZC1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 6 months ago [\#239389](#239389) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["File not found" error !!](/forum/3-bug-report/54324-file-not-found-error?start=20#239389 "I have a site for donwloadable media and files, i have 2 categories , one for sale video, the second for free video; the firt categories of product have no problem, the second report an error when u...")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDMyNC1maWxlLW5vdC1mb3VuZC1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")**
- [![joyhanawa's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40919-joyhanawa "View joyhanawa's Profile")
- [ Offline](/forum/user/40919-joyhanawa)

Less More

- Posts: 36
- Thank you received: 1
-
-

10 years 6 months ago -  10 years 6 months ago [\#239422](#239422) by [joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")  Replied by *[joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile")* on topic *["File not found" error !!](/forum/3-bug-report/54324-file-not-found-error?start=20#239422 "I have a site for donwloadable media and files, i have 2 categories , one for sale video, the second for free video; the firt categories of product have no problem, the second report an error when u...")*

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: 10 years 6 months ago by [joyhanawa](/forum/user/40919-joyhanawa "View joyhanawa's Profile"). Reason: updating solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDMyNC1maWxlLW5vdC1mb3VuZC1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
