You say you installed AddMetas but did you use the functionality? If so then what were the lines that you added to the article page? Also what version of MediaWiki did you install it on?
On Sat, Jun 27, 2009 at 5:22 PM, Andreas Meyer anmeyer@anup.de wrote:
Hello!
I installed AddMetas.php and get this in the error-logfile of Apache:
Undefined variable: parser in /vwww/insilence/root/extensions/AddMetas.php on line 25 Trying to get property of non-object in /vwww/insilence/root/extensions/AddMetas.php on line 25
The function in AddMetas.php looks like this:
function wfAddMetas( &$out, &$text ) { global $wgTitle, $wgParser, $wgRequest, $action; if( $action !== 'edit' && $action !== 'history' && $action !== 'delete' && $action !== 'watch' && strpos( $parser->mTitle->mPrefixedText, 'Special:' ) === false && $parser->mTitle->mNamespace !== 8 ) { $name = $wgTitle->getPrefixedDBKey();
$out->addMeta( 'Description', 'you meta description'); $out->addMeta( 'Keywords', $name.', your meta keywords' ); //$out->addMeta( 'Author', 'the author'); //$out->addMeta( 'Rating', 'General'); //$out->addMeta( 'Revisit', '1 DAYS'); //$out->addMeta( "revisit-after", "5 days"); } return true; }
I am not a PHP-specialist. What is wrong?
Regards
Andreas Meyer
A man, a miss, a car -- a curve, He kissed the miss and missed the curve
Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=...
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l