Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
afoster CreditAttribution: afoster commentedI 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.
Comment #2
DamienMcKenna@jraviotta: Please confirm that you haven't inadvertently created two views with the same path, as afoster suggests.