Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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'
Comment | File | Size | Author |
---|---|---|---|
#7 | 1208738.patch | 716 bytes | dawehner |
#3 | 1208738-view_template-fix.patch | 1.12 KB | dawehner |
Comments
Comment #1
dawehnerHere 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.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI think you forgot to attach the patch?
Comment #3
dawehneryes.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedIsn't the clone form for cloning actual views? Won't this change actually flat out break cloning a normal view?
Comment #5
dawehnerOh true
Comment #6
redleaderuk CreditAttribution: redleaderuk commentedI 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?
Comment #7
dawehnerSo here is a real fix.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedThat patch works well I think.
Comment #9
dawehnerCommited to 7.x-3.x
Comment #11
Marc-Antoine CreditAttribution: Marc-Antoine commentedHaving 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
Comment #12
dawehnerThis error is still only fixed in 7.x-3.x