Closed (fixed)
Project:
Views Atom
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2010 at 10:58 UTC
Updated:
14 Jan 2011 at 20:20 UTC
When I create simple view of one page with style "Atom Feed - Fields" chosen I get a 500 error. And the following in the apache error log.
PHP Fatal error: Cannot access empty property in /drupal-6.19/sites/all/modules/views_atom/views_atom.theme.inc on line 49
Comments
Comment #1
btmash commentedI was running into the same issue and when I tracked it down in the theme file, the file is basically asking for a 'last updated' date. So your view firstly has to provide the last updated date as one of the fields and in the 'Atom Feed - Fields' style settings, you have to specify the last updated date field in the 'updated' field inside the 'field usage' fieldset.
I'm not entirely sure if that can be chalked up as a bug though it definitely requires documentation.
Comment #2
hefox commentedIt should handle it gracefully, for example by providing an error message like various others do (field displays needing fields, draggable views needing order field, etc).
Comment #3
hefox commentedhttp://drupal.org/cvs?commit=472206
Added a validation for required fields and some checking if update field i set.
I believe this should take care of the error.