Extension crashes whole site.
MediaWiki | 1.38.2 |
PHP | 8.0.2 (cgi-fcgi) |
MySQL | 8.0.28-0ubuntu0.20.04.3 |
ICU | 60.2 |
Lua | 5.1.5 |
Pygments | 2.11.2 |
Extension crashes whole site.
MediaWiki | 1.38.2 |
PHP | 8.0.2 (cgi-fcgi) |
MySQL | 8.0.28-0ubuntu0.20.04.3 |
ICU | 60.2 |
Lua | 5.1.5 |
Pygments | 2.11.2 |
`require_once "$IP/extensions/TwitterCards/TwitterCards.php";`
this file is not there... (tried both the 1.38 and the master versions)
I setup TwitterCards. But when i check my Mediawiki page on the Twitter Cards Validator i see it:
INFO: Page fetched successfully
INFO: 6 metatags were found
ERROR: No card found (Card error)
I have added this extension along with the OpenGraph extension. This extension does not load any Twitter Tags. The opengraph extension loads og tags minus the image tag. I have tried everything I know to do. Any help would be greatly appreciated at this point.
Concerning the Twitter card, are you the owner of this extension? If not, can you share a link to your own TwitterCard extension and/or a link to the OpenGraph extension so we can have a look? Here is the TwitterCard extension I know of: Extension:TwitterCards.
I am talking about the Extension you linked to above. This extension seems to have no affect on my site and its not adding the twitter tag to the metadata. Also the OpenGraph extension I am talking about is Extension:OpenGraphMeta This extension seems to work minus the image tag. I have tried everything to get the image tag working for OpenGraph but nothing seems to make a difference.
Okay! Thanks so much for your reply. One thing to note is that the TwitterCards extension is incomplete and as you can see, it's under experimentation. As for the OpenGraph extension, I have never used it but if you can understand MediaWiki extension, then you can add that functionality (image tag) into the extension to fulfill what you want to do. But try getting in touch with both extension developers and work with them.
You can ask on #wikimedia-dev IRC channel on FreeNode, that's the power house of Wikimedia Developers. I am currently unstable but when I have time, I will try to give you some consistent help.
It had no effect when I installed this. Is there an extra step somewhere?
On a non-Wikimedia Foundation wiki I use, this extension caused the following error message when attempting to view, edit, or get history for any page that is user CSS or JS:
MediaWiki internal error.Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
...until the administrator "configured LocalSettings.php not to load TwitterCards on pages whose title begins with User:
and ends with .css
or .js
." (I am not the server administrator, so I am unable to provide further details at this time.)
I have not yet tested whether CSS/JS in the MediaWiki: namespace is affected, as no such scripts or stylesheets exist on said wiki.
Should the extension itself be modified to avoid CSS/JS pages similarly? --
This is the workaround I came up with. With my luck, I'm probably doing it all wrong:
$lstitleext = strtolower(strrchr(@$_REQUEST['title'], '.')); $lsiscss = $lstitleext === '.css' || $lstitleext === '.js'; $lsisuser = explode(':', strtolower(@$_REQUEST['title'])); $lsisuser = $lsisuser[0] === 'user'; if (!$lsisuser || !$lsiscss) { require_once "$IP/extensions/TwitterCards/TwitterCards.php"; }
Thanks for the report, this is filed as phab:T102897 now. Please note that the extension is still in an experimental state.
It attempts to enable TwitterCards display of tweets by adding a bunch of proprietary tags to your HTML output.