Problem/Motivation

After enabling the Facebook Instant Articles Views module and its dependencies, there are errors on the Views UI admin for the Facebook Instant Articles view. Also the /fia/nodes.rss path, which is the default path of the view returns a 404.

Notice: Undefined index: fb_instant_article in views_plugin_row_fiafields->summary_title() (line 66 of /home/xxx/public_html/modules/fb_instant_articles/modules/fb_instant_articles_views/views/plugins/views_plugin_row_fiafields.inc).

Proposed resolution

Not sure if they are necessarily related. The PHP Notice appears to be caused by the non-existence of the fb_instant_article view mode when you have just turned on the module. The 404 goes away after a cache clear.

Remaining tasks

Find the root cause and correct it.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

mattwmc created an issue. See original summary.

mattwmc’s picture

Issue summary: View changes
m4olivei’s picture

Assigned: Unassigned » m4olivei
Category: Support request » Bug report
Issue summary: View changes

Thanks @mattwmc, I'm looking into it.

m4olivei’s picture

In the meantime, you can workaround this by enabling Facebook Instant Articles on a content type, and clearing the cache.

m4olivei’s picture

Assigned: m4olivei » Unassigned
Status: Active » Needs review

Heres a quick PR:

https://github.com/BurdaMagazinOrg/module-fb_instant_articles/pull/118

@mattwmc could you take a look and let me know if it resolves your issues?

mattwmc’s picture

I think it has.

I'm also getting this error every time when uploading an image to a content type using image field:

Notice: Undefined index: fb_instant_articles_rss in fb_instant_articles_rss_form_node_form_alter() (line 189 of /home/xxx/public_html/modules/fb_instant_articles/modules/fb_instant_articles_rss/fb_instant_articles_rss.module).

m4olivei’s picture

@mattwc try using fb_instant_articles_views module instead of fb_instant_articles_rss module. The fb_instant_articles_rss module is a legacy thing that was superceeded by fb_instant_articles_views for the RSS approach to creating the RSS feed.

  • m4olivei authored 709e806 on 7.x-2.x
    Merge pull request #118 from BurdaMagazinOrg/2908415-php-notice-404...
m4olivei’s picture

Status: Needs review » Fixed
mattwmc’s picture

Thanks. That solved the problem. I've been using Views as it is.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.