I have a view attached to the user page, and get this message when visiting a user page:-

    Notice: Undefined variable: title in include() (line 30 of /srv/bindings/ab331aab8e404f6d89add5010badaee5/code/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php).
    Notice: Undefined variable: title in include() (line 30 of /srv/bindings/ab331aab8e404f6d89add5010badaee5/code/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php).

Comments

reikiman’s picture

On reviewing the code, this appears to be the obvious fix:-

diff --git a/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php b/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php
index 8bc6bdf..ef14dce 100644
--- a/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php
+++ b/sites/all/modules/views_attach/views-attach-display-profile-view.tpl.php
@@ -27,7 +27,7 @@
       <?php print $admin_links; ?>
     </div>
   <?php endif; ?>
-  <?php if ($title): ?>
+  <?php if (isset($title) && $title): ?>
     <div class="view-title">
       <?php print $title; ?>
     </div>

  • gaurav.kapoor committed 51702be on 6.x-2.x
    Issue #1537388: Undefined variable title in include() line 30 of...
gaurav.kapoor’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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