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
Comment #2
mattwmc commentedComment #3
m4oliveiThanks @mattwmc, I'm looking into it.
Comment #4
m4oliveiIn the meantime, you can workaround this by enabling Facebook Instant Articles on a content type, and clearing the cache.
Comment #5
m4oliveiHeres 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?
Comment #6
mattwmc commentedI 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).Comment #7
m4olivei@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.
Comment #9
m4oliveiComment #10
mattwmc commentedThanks. That solved the problem. I've been using Views as it is.