Extension talk:OpenGraphMeta/LQT Archive 1

Mediawiki version required?
Hi all, I have just tested this extension on a 1.15.4 MediaWiki installation and I had an error reporting:

Call to undefined method OutputPage::getTitle in C:\server\xampplite\htdocs\wiki\extensions\OpenGraphMeta\OpenGraphMeta.php on line 65

Installation data:


 * MW 1.15.4
 * PHP 5.3.0
 * MySQL 5.1.41

Extensions installed:


 * MultipleUpload 1.0
 * Cite r.37577
 * DSADate 1.0
 * DynamicPageList2 1.7.4
 * ImageMap r.35980
 * ImageSizeInfoFunctions 1.0.1
 * MultipleUploadToolboxItem 0.1
 * ParserFunctins 1.1.1
 * PropertyTable2 1.2.1
 * StringFunctions 2.0.1
 * SyntaxHighlight
 * GoogleTranslator 0.1
 * NewUserEmailNotification 1.5.1

Moreover, inspecting the code, it seems that the extension Description2 is required for properly description tag be evaluated. Is my assumption correct? TIA --GB 11:18, 31 July 2011 (UTC)


 * Yes, Description2 has the parsing code to extract a description from the page so OpenGraphMeta uses it instead of duplicating code.
 * OutputPage::getTitle was added in 1.16; 1.15 is not a supported MediaWiki version anymore, it's no longer receiving security updates and some security holes have been fixed in later versions of MediaWiki. So I see no reason to add 1.15 compat. Dantman 11:53, 31 July 2011 (UTC)

Bug or User Error?
This didn't seem to output the correct format for the OG meta tags due to the addMeta function called with the BeforePageDisplay hook. Could be my fault. For example, I am getting  when it should be. Unless there's something I'm missing, addMeta will only return  formatted meta tags.

I am on MediaWiki 1.18.0, PHP 5.2.17, and MySQL 5.1.56--maybe the function addMeta has changed in the latest update? I corrected it by using the hook OutputPageBeforeHTML and the function addHeadItem to output: It seems to work. Thoughts? Lost Student 09:07, 10 January 2012 (UTC)


 * Try the trunk or 1.17 version of the extension. The 1.18 version seams to contain a change made after the 1.17 branch but was reverted later on. Daniel Friesen (Dantman) 09:49, 10 January 2012 (UTC)