It does not appear to be possible to export customizations to provided views through features. My attempts at saving modified views result in site crashes with the error:

Notice: Trying to get property of non-object in user_access() (line 798 of 
\modules\user\user.module). =>

This error occurs when cloning the provided views or view displays.

To restore the site I must edit the views_display table and remove any cloned displays and the views_view table and remove any cloned views. Then I must run update.php.

I would prefer not to hack the module display code to make the configurations portable. Any suggestions?

Comments

afoster’s picture

Issue summary: View changes

I ran into this bug from working on customized admin dashboards for different roles cloned from the default Administer:node view provided by Administrator Views.
I got many instances of the error...

Notice: Trying to get property of non-object in user_access() (line 824 of /XXX/modules/user/user.module).

but it was my own fault. I left the system path of the cloned view to /admin/content - Changing that path fixed this bug.

DamienMcKenna’s picture

Status: Active » Postponed (maintainer needs more info)

@jraviotta: Please confirm that you haven't inadvertently created two views with the same path, as afoster suggests.