I add this error after installing the module Meta Tags version

Notice : Undefined index: content in metatag_page_build() (ligne 651 dans /sitepath/sites/all/modules/metatags/metatag.module).
And all my admin page were un-accessible.

I just added a test, remplacing this line (l.651 in both -dev and -alpha1 metatag.module files):

  $page['content'] = array('metatags' => array()) + $page['content'];

By those :

  if (isset($page['content'])) $page['content'] = array('metatags' => array()) + $page['content'];
  else $page['content'] = array('metatags' => array());

Comments

dave reid’s picture

Status: Active » Closed (duplicate)
philsward’s picture

Version: » 7.x-1.0-alpha1

If you are STILL receiving this error, it's probably because you downloaded the metatags module which is a DEAD module.

You need to uninstall it and download the http://drupal.org/project/metatag instead.

altbzh’s picture

I am with Meta tag 7.x-1.0-alpha1 and I have had this notice when I try to create an importer feed with feeds

freeduck’s picture

I get this error every time I create any type of content. I am running 7.x-1.0-alpha8+10-dev

damienmckenna’s picture

This was fixed on August 23rd, make sure you're using the latest -dev codebase.