When creating a product that is not a course I always get these messages.
I can find no solution via Google.
Sorry for my bad English

Notice: Trying to get property of non-object in course_get_course() (regel 1659 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/course.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityAPIController->load() (regel 219 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/entity/includes/entity.controller.inc).
Notice: Undefined property: stdClass::$course in course_uc_form_alter() (regel 58 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/modules/course_uc/course_uc.module).
Notice: Undefined index: settings in course_uc_form_alter() (regel 61 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/modules/course_uc/course_uc.module).
Notice: Trying to get property of non-object in course_get_course() (regel 1659 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/course.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityAPIController->load() (regel 219 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/entity/includes/entity.controller.inc).
Notice: Undefined property: stdClass::$course in course_uc_form_alter() (regel 58 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/modules/course_uc/course_uc.module).
Notice: Undefined index: settings in course_uc_form_alter() (regel 61 van /data/sites/web/brendagysensbe/www/sites/all/modules/contrib/course/modules/course_uc/course_uc.module).

CommentFileSizeAuthor
#4 error_when_creating-2632714-4.patch3.12 KBdjdevin

Comments

Anonymous’s picture

Tim Prys created an issue. See original summary.

djdevin’s picture

We use products as well as course products so let me investigate this.

Anonymous’s picture

Thank you, this is really appreciated

djdevin’s picture

Component: Miscellaneous » Code
Assigned: » Unassigned
Category: Support request » Bug report
Priority: Major » Normal
Status: Active » Needs review
StatusFileSize
new3.12 KB

The warnings do not break anything so you could turn them off.

Here is a patch that may fix it.

Status: Needs review » Needs work

The last submitted patch, 4: error_when_creating-2632714-4.patch, failed testing.

djdevin’s picture

Status: Needs work » Fixed

  • djdevin committed 0a75342 on 7.x-1.x
    Issue #2632714 by djdevin: Error when creating products other than...

Status: Fixed » Closed (fixed)

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