link being printed from "nowhere" I'm a bit stumped. For some reason Drupal prints some extra links and I can't find where are they generated.

This is what I see in my output:


The arrows point to the extra ocurrences of &lt;a href="/areaclientes"&gt;&lt;/a&gt;

The template code for this page is like this:

&lt;div id="wrapper" class="clearfix"&gt;
&lt;div id="header-top" class="clearfix"&gt;
&lt;div id="logo"&gt;&lt;!--start logo--&gt;
&lt;?php if ($logo): ?&gt;
&lt;a href="&lt;?php print $front_page; ?&gt;" title="&lt;?php print t('Home'); ?&gt;"&gt;
&lt;img src="&lt;?php print $logo; ?&gt;" alt="&lt;?php print t('Home'); ?&gt;" /&gt;
&lt;/a&gt;
&lt;?php endif; ?&gt;
&lt;div id="site-slogan"&gt;&lt;?php if ($site_slogan): ?&gt;&lt;?php print $site_slogan; ?&gt;&lt;?php endif; ?&gt;&lt;/div&gt;&lt;!--site slogan--&gt;
&lt;/div&gt;&lt;!--end logo--&gt;
 &lt;?php if ($page['search_box']): ?&gt;&lt;!-- / start search box region --&gt;
    &lt;div class="search-box"&gt;
      &lt;?php print render($page['search_box']); ?&gt;
    &lt;/div&gt; &lt;!-- / end search box region --&gt;
 &lt;?php endif; ?&gt;
 &lt;?php if (theme_get_setting('social_icons')): ?&gt;
&lt;ul id="header-social"&gt;
&lt;li&gt;&lt;a href="http://www.twitter.com/&lt;?php echo theme_get_setting('twitter_username'); ?&gt;" target="_blank" rel="me"&gt;&lt;img src="&lt;?php global $base_url; echo $base_url.'/'.$directory; ?&gt;/images/twitter.png" alt="twitter"/&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.facebook.com/&lt;?php echo theme_get_setting('facebook_username'); ?&gt;" target="_blank" rel="me"&gt;&lt;img src="&lt;?php global $base_url; echo $base_url.'/'.$directory; ?&gt;/images/facebook.png" alt="facebook"/&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="&lt;?php print $front_page . ($language-&gt;prefix ? '/' : ''); ?&gt;rss.xml"&gt;&lt;img src="&lt;?php global $base_url; echo $base_url.'/'.$directory; ?&gt;/images/rss.png" alt="RSS"/&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;!--end header-social--&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;&lt;!--end header-top--&gt;

&lt;div id="header" class="clearfix"&gt;&lt;!--start header--&gt; 
    &lt;?php print render($page['header']); ?&gt;
&lt;div id="main-menu"&gt;
    &lt;?php 
    $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu')); 
    print drupal_render($main_menu_tree);
    ?&gt;
&lt;/div&gt;&lt;!-- end main-menu --&gt;
&lt;/div&gt;


I've been looking all over the place, and can't find WHERE is that coming from. Searching in site's source code I only found 1 instance of a similar looking URL, inside a Module I disabled and deleted from the host; and still the same thing.

The links appear both before the main menu starts building, and after. Several times for the first menu item, but never again. And it only happens with anonymous users, never with logged in users... 

Any pointers in where should I be looking to fix this?

Thanks a lot in advance.

Edit:

I found that the problem lies in this piece of code: 

&lt;div class="search-box"&gt;
        &lt;div id="link-clientes"&gt;&lt;a href="/areaclientes"&gt;ÁREA DE CLIENTES &lt;img height="14" width="14" src="/sites/default/files/pictures/clipart/key.png"&lt;/a&gt;&lt;/div&gt;
      &lt;?php print render($page['search_box']); ?&gt;
    &lt;/div&gt; &lt;!-- / end search box region --&gt;


If I remove the #link-clientes &lt;div&gt;; the ghost links stop appearing later on. Still don't understand why.
It can't be that hard to understand. There's a syntax error:

&lt;div id="link-clientes"&gt;&lt;a href="/areaclientes"&gt;ÁREA DE CLIENTES &lt;img height="14" width="14" src="/sites/default/files/pictures/clipart/key.png"&lt;/a&gt;&lt;/div&gt;


&lt;img&gt; tag is not closed. That's breaking your whole page HTML structure/well formedness.