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

#   Filepaths for Cron CSV import

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 4 months ago [\#295020](#295020) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295020 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")* was created by *[samsup](/forum/user/45915-samsup "View samsup's Profile")*

-- url of the page with the problem -- : [ www.samwelsupplies.com](http://www.samwelsupplies.com)
-- HikaShop version -- : 3.5.0
-- Joomla version -- : 3.8.10

Hi All,

I am trying to setup the automatic import of the CSV files to update my webshop.

Right now I am at a total loss as how to format the file locations. because I get strange behaviour

The CSV file is put onto the webserver via FTP ( automatically via batch file)
/httpdocs/media/com_hikashop/upload/safe/export.csv

When I put this file location into the cron plugin and test run the cronjob, it gives me the following error:
Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com_hikashop/upload/safe/export.csv

Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error;
Could not retrieve the CSV file [ www.samwelsupplies.com/media/com\_hikasho...load/safe/export.csv](http://www.samwelsupplies.com/media/com_hikashop/upload/safe/export.csv)

As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com_hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..

Oh and if I try to put in this entire path, it just gives the same error but with:
/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com_hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com_hikashop/upload/safe/export.csv could not be found...

so my problem is, how on earth do I this thing pointed into the right path?!

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 4 months ago [\#295025](#295025) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295025 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")*

OK i have found a workaround. From another topic posted here I got the idea to make a folder in /httpdocs as /httpdocs/cron.

exported file there, imported it from there, and it works.

seems like the upload folder of the media folder is somehow protected?

Now the final question I have is if the file can be auto deleted after its used. I have seen a swtich in hikashop that should do this, but it seems to be not deleting the file from the /httpdocs/cron folder... I am not really fond of having a copy of my entire database sitting in a folder where I am not sure how accesible it is to others..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxOTUtZmlsZXBhdGhzLWZvci1jcm9uLWNzdi1pbXBvcnQ/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

8 years 4 months ago [\#295035](#295035) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295035 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")*

Hi,

The best though would be to put the file in the folder /srv/psa02/samwelsupplies.com/ so that it can't be reached by someone else even before HikaShop import runs.
Just make sure that the user, group and permissions of the file allow the website unix user to read and write the file and the plugin will be able to use it AND will be able to delete it if you activate that option of the plugin.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 4 months ago [\#295122](#295122) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295122 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")*

Hi Nicolas,

Thanks for the reply. I was not aware the plugin could function outside of the httpdocs folder (outside of its root). I will experiment with this later on, for now I got it working the way I described before, but I do agree, better to have such files outside of the web accesible parts. the removal of the file seems to be not working, but I will surely figure that one out later

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 4 months ago -  8 years 4 months ago [\#295354](#295354) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295354 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")*

Hi nicolas,

I have tried using your suggestion of putting the file above the HTTPdocs folder ( so lets say above the root of my website)

I get the following cron error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs//srv/psa02/samwelsupplies.com/cron/export.csv

the value I have given in the cron plugin is: /srv/psa02/samwelsupplies.com/cron/export.csv
Edit: the folder samwelsupplies.com is the root of what I am able to access via the FTP client

It just cant work around the httpdocs ( it looks into there by itself..) how do I force it to go to a folder above?

Last edit: 8 years 4 months ago by [samsup](/forum/user/45915-samsup "View samsup's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 4 months ago [\#295373](#295373) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Filepaths for Cron CSV import](/forum/37-import-export-csv-xls/895195-filepaths-for-cron-csv-import#295373 "-- url of the page with the problem -- :   www.samwelsupplies.com  -- HikaShop version -- : 3.5.0 -- Joomla version -- : 3.8.10  Hi All,  I am trying to setup the automatic import of the CSV files to update my webshop.  Right now I am at a total loss as how to format the file locations. because I get strange behaviour  The CSV file is put onto the webserver via FTP ( automatically via batch file) /httpdocs/media/com&#95;hikashop/upload/safe/export.csv  When I put this file location into the cron plugin and test run the cronjob, it gives me the following error: Could not find the file /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv  Naturally, I see that there is a doubled httpdocs in the filepath, and there should be only one. So the first thing I tried is ofcourse remove the /httpdocs part from my filepath.. When I do that and testrun the cron job I get the following error; Could not retrieve the CSV file   www.samwelsupplies.com/media/com&#95;hikasho...load/safe/export.csv  As you can see, by removing the /httpdocs from my filepath, it not only went from a local filepath to a webpath ( why?), but it also removes the double httpdocs altogether.. So I have no way of getting it to link to /srv/psa02/samwelsupplies.com/httpdocs/media/com&#95;hikashop/upload/safe/export.csv -- with just one httpdocs in the filename..  Oh and if I try to put in this entire path, it just gives the same error but with: /srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv/srv/psa02/samwelsupplies.com/httpdocs/httpdocs/media/com&#95;hikashop/upload/safe/export.csv could not be found...  so my problem is, how on earth do I this thing pointed into the right path?!")*

Hello,

Since the message is giving you the path : Code:

/srv/psa02/samwelsupplies.com/httpdocs//srv/psa02/samwelsupplies.com/cron/export.csv

You should provide a relative path from the "httpdocs" folder.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxOTUtZmlsZXBhdGhzLWZvci1jcm9uLWNzdi1pbXBvcnQ/dG1wbD1tYXJrZG93bg==) 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.059 seconds

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