Notice: Undefined variable: user_links in include() (line 15 of /usr/share/drupal6/drupal7/sites/all/themes/UrbanSolice/templates/page.tpl.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

witchcraft’s picture

same issue

r3ady4the3nd’s picture

same problem too

IsaacParke’s picture

Same issue here.

craigkendall’s picture

I 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?

silkogelman’s picture

FileSize
494 bytes

fixed by changing
if ($user_links)
to
if (isset($user_links))
in
UrbanSolice/templates/page.tpl.php

please test.

silkogelman’s picture

Status: Active » Needs review

status -> needs review

IsaacParke’s picture

Assigned: gokhanulus » Unassigned
Status: Needs review » Fixed

Seems to fix it, thanks!

Anonymous’s picture

Applied patch manually -> no more errors.
Thanks

acrollet’s picture

Status: Fixed » Reviewed & tested by the community

the patch in #5 works for me...

Caffeine Addict’s picture

That patch didn't work for me, I had to add the curly braces round the value :

+

Caching is off and i even changed browsers to test between changes and i definatly needed the {}

zet’s picture

Actually 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> )

yareckon’s picture

The 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.

FatherShawn’s picture

Status: Reviewed & tested by the community » Needs review

This is a duplicate of #1193374: Error message for drupal 7. Since that issue is assigned to a maintainer, I'm moving further discussion there...

FatherShawn’s picture

Status: Needs review » Closed (duplicate)
wuchonder’s picture

if (isset($user_links)) { print theme('links', $user_links); } 
somekyleguy’s picture

FileSize
86.71 KB

There's your fix. Everyone is welcome <3

netdesignate’s picture

This [#10 & #15] worked for me (as an edit to page.tpl.php)

THANKS!!!