Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Notice: Undefined variable: user_links in include() (line 15 of /usr/share/drupal6/drupal7/sites/all/themes/UrbanSolice/templates/page.tpl.php).
Comment | File | Size | Author |
---|---|---|---|
#16 | UrbanSolice-7.x-1.0.zip | 86.71 KB | somekyleguy |
#5 | 1165790.patch | 494 bytes | silkogelman |
UrbanSolice.png | 62.59 KB | gokhanulus |
Comments
Comment #1
witchcraft CreditAttribution: witchcraft commentedsame issue
Comment #2
r3ady4the3nd CreditAttribution: r3ady4the3nd commentedsame problem too
Comment #3
IsaacParke CreditAttribution: IsaacParke commentedSame issue here.
Comment #4
craigkendall CreditAttribution: craigkendall commentedI know it's not a fix, but I commented out line 15 in page.tpl.php
Make sure you clear your cache ( ADMINISTRATION > PERFORMANCE > Clear all caches ) after you save and upload the file for the change to take effect.
That'll get you till a fix appears... now... hmm... what's causing this?
Comment #5
silkogelman CreditAttribution: silkogelman commentedfixed by changing
if ($user_links)
to
if (isset($user_links))
in
UrbanSolice/templates/page.tpl.php
please test.
Comment #6
silkogelman CreditAttribution: silkogelman commentedstatus -> needs review
Comment #7
IsaacParke CreditAttribution: IsaacParke commentedSeems to fix it, thanks!
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedApplied patch manually -> no more errors.
Thanks
Comment #9
acrollet CreditAttribution: acrollet commentedthe patch in #5 works for me...
Comment #10
Caffeine Addict CreditAttribution: Caffeine Addict commentedThat patch didn't work for me, I had to add the curly braces round the value :
+
if (isset($user_links)) { print theme('links', $user_links); }
Caching is off and i even changed browsers to test between changes and i definatly needed the {}
Comment #11
zet CreditAttribution: zet commentedActually does this print theme('links', $user_links); print something for anybody ?
(after or before doing the required in this issue to solve the Undefined variable notice )
For me is just an empty div wrapper in the upper right corner, regardless of anonymous/admin/regular user
(
<div id="user-links" class="clearfix"></div>
)Comment #12
yareckon CreditAttribution: yareckon commentedThe real solution is to rename the function in template.php from urbansolice_preprocess_page to urban_solice_preprocess_page. That will fill in these variables that they are incorrectly setting. urbansolice_myfunction is never gonna get fired because the machine name of the module is urban_solice. Don't ask me why the project on drupal.org is called "UrbanSolice".. sounds like a lot of renaming going on.
Comment #13
FatherShawnThis is a duplicate of #1193374: Error message for drupal 7. Since that issue is assigned to a maintainer, I'm moving further discussion there...
Comment #14
FatherShawnComment #15
wuchonder CreditAttribution: wuchonder commentedComment #16
somekyleguy CreditAttribution: somekyleguy commentedThere's your fix. Everyone is welcome <3
Comment #17
netdesignate CreditAttribution: netdesignate commentedThis [#10 & #15] worked for me (as an edit to page.tpl.php)
THANKS!!!