After I enable module, save some settings and open rss page I don't see items from google products settings. Also it doesn't appear again when I edit settings. Next warnings appear:

Warning: Illegal offset type in isset or empty in a function views_rss_plugin_style_fields->map_rows() (row 384 in the /var/www/buy-watches/data/www/originalwatches.net/sites/all/modules/contrib/views_rss/views/views_rss_plugin_style_fields.inc).
Warning: Illegal offset type in isset or empty in a function views_rss_plugin_style_fields->map_rows() (row 394 in the /var/www/buy-watches/data/www/originalwatches.net/sites/all/modules/contrib/views_rss/views/views_rss_plugin_style_fields.inc).

Comments

rohit.wadhwa’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Same issue with Drupal 6 version, i am using view Rss 6.x-2.0-rc3 and Views RSS: Google Products Elements 6.x-1.x-dev.
We are notable to see this module functionality.Not any setting is save in view configuration, so not any field is mapped with google product rss feed output and always showing this output:

<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://stagerohit.hypnosisdownloads.com/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:g="http://base.google.com/ns/1.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>Site Name</title>
<description>Site Description</description>
<link>http://mysite.com/</link>
<atom:link rel="self" href="http://mysite.com/admin/build/views/nojs/preview/google_base_feed/feed_2" />
<pubDate>Thu, 12 Nov 2009 04:22:32 -0600</pubDate>
<lastBuildDate>Mon, 28 Jan 2013 23:40:56 -0600</lastBuildDate>
    <item>
  <source url="http://mysite.com/admin/build/views/nojs/preview/google_base_feed/feed_2">Site Name</source>
</item>
<item>
  <source url="http://mysite.com/admin/build/views/nojs/preview/google_base_feed/feed_2">Site Name</source>
</item>
</rss>

Also these both hooks are working fine:
hook_views_rss_namespaces()
hook_views_rss_item_elements()

Related configuration is visible in view style configuration but configuration is not saved.

I have try to debug the issue and also check the view_rss module but unable to figure out this issue.

rohit.wadhwa’s picture

After Debugging i have found the issue is related to fields group used in this module.
In this module due to adding fields in related groups 2 dimensional Array is pass to the View RSS module And View RSS module is notable to handle this.

So i have commented this method views_rss_google_products_views_rss_element_groups() from views_rss_google_products.module file and remove groups from every item element fields from this method views_rss_google_products_views_rss_item_elements() of same file.

@maciej.zgadzaj please fixed this 2 dimensional Array related issue in View RSS module.

rohit.wadhwa’s picture

Status: Active » Needs work
StatusFileSize
new12.73 KB

Please find the required patch as attachment.
In this patch, i have remove the fields group and now this is working fine.
This is not a final solution waiting for maciej.zgadzaj for solve this issue permanently.

rohit.wadhwa’s picture

Here is an another alternate to fix this issue direct in view rss module. You can find the solution as a patch on http://drupal.org/node/1998796 .