The following error occurs after a fresh Drupal 7.4 install with the latest views module.

Fatal error: Call to a member function get_human_name() on a non-object in /home/drupal74/www/sites/all/modules/views/plugins/export_ui/views_ui.class.php on line 387

Link: 'admin/structure/views/template/image_gallery/add'

CommentFileSizeAuthor
#7 1208738.patch716 bytesdawehner
#3 1208738-view_template-fix.patch1.12 KBdawehner

Comments

dawehner’s picture

Assigned: Unassigned » merlinofchaos
Status: Active » Needs review

Here is a fix for this.

Earl can you please review whether it's okay to add a new function like this?
Alternative it would be possible to load the templates in views_get_all_views as well.

merlinofchaos’s picture

I think you forgot to attach the patch?

dawehner’s picture

StatusFileSize
new1.12 KB

yes.

merlinofchaos’s picture

Isn't the clone form for cloning actual views? Won't this change actually flat out break cloning a normal view?

dawehner’s picture

Status: Needs review » Needs work

Oh true

redleaderuk’s picture

I get this error too. Do I take it that patch dereine attached above s not recommended? I wish I knew more about Drupal's insides so I could help. Can anyone let me know how soon this might get fixed?

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new716 bytes

So here is a real fix.

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community

That patch works well I think.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Commited to 7.x-3.x

Status: Fixed » Closed (fixed)

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

Marc-Antoine’s picture

Status: Closed (fixed) » Active

Having this issue again, I try to create a view using the Image Gallery template and it gives me this error:

Fatal error: Call to a member function get_human_name() on a non-object in C:\wamp\www\test_drupal_1.3_node-1208738\sites\all\modules\views\plugins\export_ui\views_ui.class.php on line 387

This is made from a fresh install, only ctools ctools-7.x-1.0-rc1, views-7.x-3.0-rc1 and view ui installed with drupal 7.9

dawehner’s picture

Status: Active » Fixed

This error is still only fixed in 7.x-3.x

Status: Fixed » Closed (fixed)

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