OS Property support center

Cron command csv import

  • Sarah Hacquard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago - 7 years 11 months ago #100743 by Sarah Hacquard
Cron command csv import was created by Sarah Hacquard
Hello !

I would need some help to set up the cron :
I'm using the csv import to import properties but i don't really understand how to set up the cron command on my servor.
In the documentation i see :

setup the cron task to:
_YOUR_ROOT_PATH / components / comosproperty > importcsv.php

I am on a linux servor.
Should i put /home/wrrrrrrdddd/public_html/edenb / components / comosproperty > importcsv.php
Are the spaces normal ?
Also, i don't have a comosproperty folder but a com_osproperty folder and i don't see anywhere the importcsv.php file.

Also, i would need to delete all properties before importing the csv. This option is available when i import the file through the admin, but i don't see how i can select it for the cron. I would also need to select another option by default "Import Non UTF-8 data". Is there a way to do that ?

Thank you for your help.

Sarah
Last edit: 7 years 11 months ago by Sarah Hacquard.

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

More
7 years 11 months ago #100756 by Mr. Dam
Replied by Mr. Dam on topic Cron command csv import
Hi Sarah,
Based on your hosting, you will have special way to setup the Cron job. Normally, the format of Cron task is:
php root_to_joomla_folder/components/com_osproperty/importcsv.php
If your OS Property directory doesn't have file: importcsv.php, you can re-download and install OS Property 3.12.1 to solve the issue.
Thanks
Dam

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

  • Sarah Hacquard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #100779 by Sarah Hacquard
Replied by Sarah Hacquard on topic Cron command csv import
Ok with this new version, i have the importcsv.php thank you !

Also, i would need to delete all properties before importing the csv. This option is available when i import the file through the admin, but i don't see how i can select it for the cron. I would also need to select another option by default "Import Non UTF-8 data". Is there a way to do that ?

Thank you again for your help.

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

  • Sarah Hacquard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago - 7 years 11 months ago #100785 by Sarah Hacquard
Replied by Sarah Hacquard on topic Cron command csv import
With this new version, i can't import manually anymore :

Fatal error: Call to undefined method OspropertyXml::getImageFromUrl() in C:\wamp\www\vbrivb\administrator\components\com_osproperty\classes\csvform.php on line 1247

and i can't import with the cron :
Fatal error: Class 'JFolder' not found in C:\wamp\www\eden2017\administrator\components\com_osproperty\classes\csvform.php on line 1233

(the photos are separated by |, works like a charm in the previous version)
Last edit: 7 years 11 months ago by Sarah Hacquard.

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

Moderators: Mr. DamNguyen Phu Quan