Private Deal

Disappears In

00 Hours
:
00 Minutes
:
00 Seconds

Forum Replies Created

Viewing 1 Topics - 1 through 1 (of 1 total)
Author Posts
May 5, 2015 at 4:24 pm in reply to: A lot of notices get thrown in frontend 43125
Magnus Magnus

When the [cpm] shortcode is rendering the project list a lot of notices gets thrown:

  • Notice: Trying to get property of non-object in /Users/mien/www/test.dev/web/app/plugins/wedevs-project-manager-pro/class/project.php on line 565
  • Notice: Trying to get property of non-object in /Users/mien/www/test.dev/web/app/plugins/wedevs-project-manager-frontend-pro/frontend.php on line 322
  • Notice: Trying to get property of non-object in /Users/mien/www/test.dev/web/app/plugins/wedevs-project-manager-frontend-pro/frontend.php on line 338

Here is the relevant stack trace:

17	0.5973	40790968	CPM_Frontend->shortcode( )	.../shortcodes.php:286
18	0.5977	40808536	CPM_Frontend->list_projects( )	.../frontend.php:259
19	0.7282	40932824	CPM_Project->has_permission( )	.../frontend.php:317

The reason for this is that CPM_Project::getInstance()->get_projects() also include the array-index ‘total_projects’ in its return value, and later that record is passed in as the first argument in CPM_Project->has_permission.

Viewing 1 Topics - 1 through 1 (of 1 total)