Jump to content

Displaying header data on google


Recommended Posts

Sorry if this isn't the correct board for asking this question.

This is my site:


When you search "armonisencia" on Google, it displays the following (you can see it on the attached picture too):

"Fatal error: Uncaught Error: Call to undefined function ...
Traducir esta páginaFatal error: Uncaught Error: Call to undefined function elegant_description() in /home/armonisencia/public_html/site/wp-content/themes/DIVI/header.php:16 Stack trace: #0 /home/armonisencia/public_html/site/wp-includes/template.php(688): require_once() #1 ..."

Maybe is some bug in my WordPress or something, but i decided i didn't want to look for the solution and i prefered to do the more simple stuff, i just edited my theme's header.php file and left the head element like this:

	  <meta charset="UTF-8">
	<meta name="description" content="Naturaleza que funciona">
	<meta name="keywords" content="Productos, Armonisencia">


	<?php $template_directory_uri = get_template_directory_uri(); ?>
	<!--[if lt IE 9]>
	<script src="<?php echo esc_url( $template_directory_uri . '/js/html5.js"' ); ?>" type="text/javascript"></script>

	<script type="text/javascript">
		document.documentElement.className = 'js';

	<?php wp_head(); ?>

I made this change yesterday and today Google is still showing me the same ulgy data. How can i fix it?


Link to comment
Share on other sites

Make sure that any PHP errorson your site are fixed and the only thing you can do is to wait for Google to crawl it again and hopefully your site will not be broken when that happens. 

Google webmaster tools may have something to speed up the process.

Link to comment
Share on other sites

You have made it worse! every page, post etc picks up the title, description, and possibly keywords from when you produce these pages in the editor at backend. What you have done will produce that created title and description, plus the title and description from editor page at the same time, duplicating these elements and meta tags. These are produced through the wp_head() function, and you can see duplicate elements and meta tags produced if you view the page source.

You can clear the currently cached specific page in google webtools, and ask for re-caching by google bots, but you should make sure this error is fixed, to prevent it being picked up again.

Edited by dsonesuk
Link to comment
Share on other sites

If you type


in your browser, it will bring up exactly that result that is cached by google on the 6th of December, you now have the choice of waiting it to update Again! to show current page, or remove currently cache result, and re-include a new cached version of page. ALL of this can be done in Googles webmaster tools as described here


But! it can take 3-5 business days to update.

Edited by dsonesuk
Link to comment
Share on other sites

BUT! its not showing currently? IS IT? You were probably experimenting with code for accordion for example, made a mistake which gave error OR server problem which caused error, which at that same time google took snapshot and cached that URL showing that error.

To prevent this, while developing the site, you should consider stopping all search bots accessing site, until finished.

Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...