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

#   Feed plugin not working

##

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

Less More

- Posts: 128
- Thank you received: 3
-
-

10 years 7 months ago [\#235753](#235753) by [deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")  *[Feed plugin not working](/forum/30-integrations/883683-feed-plugin-not-working#235753 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.0 -- PHP version -- : 5.3.24  I have created a product feed plugin similar to the Google products plugin. What I can't figure out is why it seems to not be working. I took the Google products plugin code and tweaked it. Here's the plugin  What I'm trying to get it to do for right now is just download a file from a server via ftp using the credentials entered into the parameters and I would like it to update every 10 minutes via CRON. It's not even downloading the file right now though and I know I've input the correct parameters. Am I missing something in my code?")* was created by *[deuce4884](/forum/user/38332-deuce4884 "View deuce4884's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.3.24

I have created a product feed plugin similar to the Google products plugin. What I can't figure out is why it seems to not be working. I took the Google products plugin code and tweaked it. Here's the plugin

*This attachment is hidden for guests.
Please log in or register to see it.*

What I'm trying to get it to do for right now is just download a file from a server via ftp using the credentials entered into the parameters and I would like it to update every 10 minutes via CRON. It's not even downloading the file right now though and I know I've input the correct parameters. Am I missing something in my code?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODM2ODMtZmVlZC1wbHVnaW4tbm90LXdvcmtpbmc/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: 14325
-
-

10 years 7 months ago [\#235791](#235791) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Feed plugin not working](/forum/30-integrations/883683-feed-plugin-not-working#235791 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.0 -- PHP version -- : 5.3.24  I have created a product feed plugin similar to the Google products plugin. What I can't figure out is why it seems to not be working. I took the Google products plugin code and tweaked it. Here's the plugin  What I'm trying to get it to do for right now is just download a file from a server via ftp using the credentials entered into the parameters and I would like it to update every 10 minutes via CRON. It's not even downloading the file right now though and I know I've input the correct parameters. Am I missing something in my code?")*

Hi,

The way you coded the plugin, it will only connect to the FTP if:
- you have either HikaShop Essential or Business (it won't work with the Starter edition).
- you have configured the cron task in the HikaShop configuration:
[ www.hikashop.com/support/documentation/5...ashop-cron-task.html](https://www.hikashop.com/support/documentation/55-hikashop-cron-task.html)
- the plugin is enabled
- the plugin's "Enable auto update" option is activated
- the plugin's "Local xml file path" option is not empty
- the plugin's "FTP User Name", "FTP Password" and "File Name" options are not empty

Also, the _connectionToGoGDB function is missing a return. So it will always return false and you'll never see the message "Product information retrieved from Gallery of Guns".
Another problem is the host name you're using in the "connect" call which contains /inventory/
I don't think that it's makes it a valid host name. The /inventory/ folder should be given in the $name variable normally.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODM2ODMtZmVlZC1wbHVnaW4tbm90LXdvcmtpbmc/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.057 seconds

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