Jump to content

ERROR discription and metatags disapeard from frontpage website

Recommended Posts



I was testing my site in woorank afther being online 6 months and suddely I seem to have no metatags, title,...

Woorank gives me a 503 error for tilte


Checking in the back office /SEO URL /index p.h.p I found all my keywords and title,


what could cause this problem because a few weeks ago everyrhing was still ok?


Today I did a code edit afther reading a article on




because i had problems in google webmaster tools with pagination


Could these changes cause this problem





this is the code I placed

Open /classes/Tools.php and replace the function completeMetaTags (around line #500) with the function below.


static public function completeMetaTags($metaTags, $defaultValue)


global $cookie;

$no_duplication = "";

if (self::getValue('p'))

$no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p');

if ($no_duplication != "")

$no_duplication = " (".$no_duplication.")";

if ($metaTags['meta_title'] == NULL)

$metaTags['meta_title'] = Configuration::get('PS_SHOP_NAME').' - '.$defaultValue;

$metaTags['meta_title'] .= $no_duplication;

if ($metaTags['meta_description'] == NULL)

$metaTags['meta_description'] = (Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) ? Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) : '');

$metaTags['meta_description'] .= $no_duplication;

if ($metaTags['meta_keywords'] == NULL)

$metaTags['meta_keywords'] = Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) ? Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) : '';

return $metaTags;



Open /classes/Tools.php and replace the function getHomeMetaTags (around line #490) with the function below.


static public function getHomeMetaTags($id_lang)


global $cookie, $page_name;


/* Metas-tags */

$metas = Meta::getMetaByPage($page_name, $id_lang);

$ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? Configuration::get('PS_SHOP_NAME').' - '.$metas['title'] : Configuration::get('PS_SHOP_NAME');

$ret['meta_description'] = (isset($metas['description']) AND $metas['description']) ? $metas['description'] : '';

$ret['meta_keywords'] = (isset($metas['keywords']) AND $metas['keywords']) ? $metas['keywords'] : '';

$no_duplication = "";

if (self::getValue('p'))

$no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p');

if ($no_duplication != "")


$ret['meta_title'] .= " (".$no_duplication.")";

$ret['meta_description'] .= " (".$no_duplication.")";


return $ret;


Edited by daviddive007 (see edit history)
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...