Edit user page blank
-
I am using HHVM and nginx, so that may be part of the issue I am having.
The edit user page was blank and caused the error “Fatal error: Object of class stdClass could not be converted to string in /srv/www/stories/wp-content/plugins/press-permit-core/admin/profile_ui_pp.php on line 64”
That line is:
$roles = ppc_get_roles( 'user', $user->ID, compact( $post_types, $taxonomies ) );
I looked into it and it appears that using the compact function was the causing the issues. I changed it to array_merge, which I believe works in the same way as compact should. This seems to correct the issue.
The line is now:
$roles = ppc_get_roles( 'user', $user->ID, array_merge( $post_types, $taxonomies ) );
- The topic ‘Edit user page blank’ is closed to new replies.