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).

Comments

galaxy_vln created an issue. See original summary.

Argus’s picture

Which widget do you use to add the article?

Argus’s picture

Priority: Critical » Normal

Support requests always have normal priority.

cboyden’s picture

Title: Adding articles to OpenAtrium 7.x-2.53 Spaces » PHP notices when Piece of Content widget is empty
Project: Open Atrium » Panopoly
Version: 7.x-2.53 » 7.x-1.x-dev
Component: Code » Widgets
Category: Support request » Bug report

This 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.

cboyden’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB

Here's a patch that fixes the problem in my testing.

  • dsnopek committed fd4c5e1 on 7.x-1.x authored by cboyden
    Issue #2672468 by cboyden: PHP notices when Piece of Content widget is...
dsnopek’s picture

Status: Needs review » Fixed

Thanks, committed!

Status: Fixed » Closed (fixed)

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