Closed (fixed)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Sep 2011 at 14:12 UTC
Updated:
3 Apr 2012 at 14:48 UTC
PHP Notice: Undefined index: content in metatag_page_build() (line 651 of metatag.module).
I'm getting this error when I click an Enable or Disable configuration link when viewing admin/config/search/metatags in the Overlay. Also, this causes the next request to be the admin page itself rather than the admin page inside the overlay which seems like a redirection error.
Comments
Comment #1
Vlad Stratulat commentedI've got the same just after I enabled the module.
Comment #2
dave reidCommitted a fix in 7.x-1.x-dev with http://drupalcode.org/project/metatags.git/commit/1792722.
Comment #3
Vlad Stratulat commentedAfter I applied this patch the error doesn't appear anymore. Looks like it's fixed.
Comment #4
agoradesign commenteddue to the renaming of the project the correct URL is now: http://drupalcode.org/project/metatag.git/commit/1792722
Comment #5
marktheshark commentedSo does the 7.x-1.x-dev (which is currently dated 2011-09-16) include the fix, whereas 7.x-1.0-alpha2 (dated: 2011-09-19) doesn't?
Thank you
Comment #6
agoradesign commentedNo, 7.x-1.0-alpha2 does already include the patch. All the comments above have been written before the alpha2 release
Comment #7
marktheshark commentedThanks for clarifying.
Note however that alpha2 is missing the 's' in metatags, and if extracted as such will not work. Works again by renaming the resulting module directory.
Comment #8
agoradesign commentedNo. That name change was made intentionally! Please read the project page carefully. The whole project was renamed. So you'll need to completely re-install the module
Comment #9
dave reidOnly the project shortname was changed (not any actual module file names) so you don't have to uninstall/re-install. Just make sure to delete the old files, copy in the new alpha2 files, and run update.php and clear your caches.
Comment #10
marktheshark commentedThanks for the tip. I somehow managed to miss the big green warning box on the project page... :-)
Comment #12
David_Rothstein commentedNote that this caused #1434288: Metatags aren't rendered if there are no blocks in the "Content" region.
Comment #13
kristin.e commentedI am still getting the same php error message after downloading and installing 7.x-1.0-alpha5 of the module. I uninstalled and reinstalled it twice over to see if the message would go away but it keeps coming back each time. I have run update script + cleared caches with each uninstall and reinstall. Any ideas on this?
Thanks in advance