Hello, I have a new OpenAtrium 7.x-2.53 installation.
But I encountered problem with adding articles to Spaces.
My steps are such:
1. I navigate to some Space
2. Press button "Customize this page"
3. Then I tried to add "Single News Article". It places some article in some column, but problem is, that although I specify which News article should be shown, still, after page refresh articles change. So article preferences: General settings/News Item does not work.
4. If I add "Peace of content" to the Space, then articles are shown correctly only when you are logged in to the site. If you are nor logged in to the site, then in the Space article "Peace of content" does not show. Instead of article Open Atrium generates such error message:
Notice: Undefined offset: 0 - panopoly_widgets_views_post_execute() (eilutė 594 iš /home/vilnius/web/naujas.gauranga.lt/public_html/profiles/openatrium/modules/panopoly/panopoly_widgets/panopoly_widgets.module).
Notice: Trying to get property of non-object - panopoly_widgets_views_post_execute() (eilutė 594 iš /home/vilnius/web/naujas.gauranga.lt/public_html/profiles/openatrium/modules/panopoly/panopoly_widgets/panopoly_widgets.module).
Notice: Undefined offset: 0 - panopoly_widgets_views_post_render() (eilutė 621 iš /home/vilnius/web/naujas.gauranga.lt/public_html/profiles/openatrium/modules/panopoly/panopoly_widgets/panopoly_widgets.module).
Notice: Trying to get property of non-object - panopoly_widgets_views_post_render() (eilutė 621 iš /home/vilnius/web/naujas.gauranga.lt/public_html/profiles/openatrium/modules/panopoly/panopoly_widgets/panopoly_widgets.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | panopoly_widgets-php-notice-missing-piece-2672468-5.patch | 1.24 KB | cboyden |
Comments
Comment #2
Argus commentedWhich widget do you use to add the article?
Comment #3
Argus commentedSupport requests always have normal priority.
Comment #4
cboyden commentedThis is a problem in Panopoly Widgets. If the referenced Piece of Content is unavailable when the widget is rendered (for example if access is restricted or if the node has been deleted), these error messages appear. Panopoly Widgets should probably check for the availability of the piece of content before running the code in panopoly_widgets_views_post_execute and panopoly_widgets_views_post_render.
Comment #5
cboyden commentedHere's a patch that fixes the problem in my testing.
Comment #7
dsnopekThanks, committed!