Jump to content

Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  4. To start a new thread, click the box with the text "Start a new topic".

Unknown error in PHP's mail() function

3
VerticalTec (talkcontribs)

Good day all.. I am trying to authenticate my email address within the MediaWiki, but when trying to generate the ConfirmationCode it returns with ERR: Feedback from the mail server: Unknown error in the PHP function mail().

As per MediaWiki there is a instruction on what to do, but unfortunately this does not apply to my .php script.

As per instruction there must be within the "sendmail.php" script an section called "$wgSMTP", but this does not exist in my .php script.

Info: I did setup MediaWiki on the Synology-Server and downloaded from PackageManager within Synology.

Question:

- Can I just add the "$wgSMTP" to the existing .php script?

- Do you have any other solutions?

Any assistance is highly appreciated.

Best, Tim

Malyacko (talkcontribs)

What does "per MediaWiki" mean exactly? Which docs / URL?

What is "your .php script" exactly?

We don't know what Synology does or changes. You may have to ask Synology. We have nothing to do with them.

Bawolff (talkcontribs)

There is no sendmail.php script in mediawiki...

Reply to "Unknown error in PHP's mail() function"

Wikibase-Install-Error

2
87.188.109.18 (talkcontribs)

When trying to add Wikibase to my Mediawiki (1.42.1), I constantly get error notifications.

After following the installation guide from start to end, I get the following error notification:

MediaWiki internal error.

Original exception: [75db538297405b82b1808b17] 2024-06-27 20:27:27: Fatal exception of type "Error"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

As well as:

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\kaiserwiki\LocalSettings.php on line 212


Anything I have to fix?

Bawolff (talkcontribs)

The second one means you made a typo in LocalSettings.php. you should fix whatever the typo is.

You should set $wgShowExceptionDetails = true; in LocalSettings.php

Reply to "Wikibase-Install-Error"
Saxonwoodward (talkcontribs)

Can I screen record a video & reuse in my YouTube channel?

Also , where to find if I have to give attribution or whatever when reusing content ?

Thank you

Bawolff (talkcontribs)

Hi, if you are referring to content on Wikimedia Commons (or Wikipedia), generally you can reuse it, if you follow certain conditions. Generally you can find out what the conditions are by clicking on the image file and clicking more information. Usually the conditions are something along the line of crediting the original author and saying what license the image is under.

Different images and videos have different conditions attached so to be sure to check every file being used.


See https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia for more details

Reply to "Question"
ReaderofthePack (talkcontribs)

Hi! I'd posted a note at Extension talk:EmbedVideo (fork), but wasn't sure how soon it would be seen. I would like to embed some Sharepoint (formerly Microsoft Stream) videos on my workplace's wiki. Would I use the following code, but with my workplace's Sharepoint info ala "my.sharepoint.com"?

'stream' => [
 'embed'			=> '<iframe width="%2$d" height="%3$d" src="https://web.microsoftstream.com/embed/video/%1$s?autoplay=false&showinfo=true" frameborder="0" allowfullscreen ></iframe>',
 'default_width'	=> 640,
 'default_ratio'	=> 1.6,
 'https_enabled'	=> false,
 'url_regex'		=> [
  '#id_([\d\w-]+).html#is',
 ],
 'id_regex'		=> [
  '#^([\d\w-]+)$#is'
 ]
]


Thanks for any help! ~~~~

Reply to "Extension help"

Include Header/Footer in Word/Pdf exports

2
Khmwikiusr (talkcontribs)

To what extend is it possible to have pre-defined document header and footer to be included when exporting documents to either Word or Pdf which which must include various meta data such as Document Cretion Date, Document Update, Revision, Document Owner, Document Classification, etc., based on that these tags can easily be pulled if exists in MediaWikie (or added if not included)?

Osnard (talkcontribs)

Such headers/footers are usually build using wikitext templates. The way they are included highly depends on the extension/tool you are using to create the export format. Check out PDF_export. For Word file export, I fear there are no extensions/tools available. Maybe there is some commercial solution. Also see Enterprise_hub.

Reply to "Include Header/Footer in Word/Pdf exports"

XML Export to Confluence and SharePoint

2
Khmwikiusr (talkcontribs)

Just been scratching on the surface of what extension there are available for MediaWiki but while I'm looking at moving couple of thousands pages over from Confluence to MediaWiki and then utilise MediaWiki as central content creator to then be able to either export of feed Confluence and SharePoint with XML data for automtic content creation. Are there any attempts already around this or middleware which can either pull from MediaWiki or simply just tap into the sql database?

Osnard (talkcontribs)

I am not aware of any particular project that deals with MediaWiki->Confluence or MediaWiki->SharePoint. But MediaWiki features export formats (e.g. Manual:dumpBackup.php) and APIs (e.g. API:Get_the_contents_of_a_page) that will allow you to fetch its contents and use it elsewhere.

As MediaWiki usually contains free text stored in WikiText format, you will most likely need to convert it into something your target system does understand. If HTML is sufficient for your use case, MediaWiki can provide you with this directly. If not, you'll need to find/implement a suitable converter.

Check out tools like pandoc.

Btw. MediaWiki can also store and export structured data (e. g. via Extension:Semantic MediaWiki), which then again can be exported in various machine readable formats (XML, JSON, ...).

If you are working in a Microsoft ecosystem, there is also a Graph Connector available for MediaWiki.

Reply to "XML Export to Confluence and SharePoint"
122.56.199.56 (talkcontribs)

I started a new acount about three minutes ago, only to find that I have been blocked for offensive posting.

I'm not aware that I have ever posted anything on wikipedia, let alone anything offensive. It mentions that this is a posting from my IP address, but I have only been at my current address for a couple of months, and the first month, I had no access to the internet, since I was waiting for my computer to arrive.

Malyacko (talkcontribs)

If something happened on some website somewhere, then please provide specific links. Currently nobody else here on mediawiki.org knows what happened exactly and who did what (or not).

Reply to "New account"

"Allow all users" level invisible for already protected pages, forcing workarounds

1
Summary by Justarandomamerican

Was an uncaught configuration error

This post was hidden by Justarandomamerican (history)

StopForumSpam for MW 1.39

7
2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talkcontribs)

The documentation Extension:StopForumSpam tells me I need MW >= 1.42

The Extension distributor offers me to download a 1.39 version of StopForumSpam, but it won't work:

[aee6dcdb88c9254bcdeef759] /wiki/Quantenfiler Error: Interface 'MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterBuilderHook' not found

Backtrace:

from /var/www/test/mediawiki/extensions/StopForumSpam/includes/Hooks.php(40)
#0 /var/www/test/mediawiki/includes/AutoLoader.php(244): require()
#1 [internal function]: AutoLoader::autoload()
....

is there a way to make it work with MW 1.39? If not, why d

2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talkcontribs)

o you offer to download a 1.39 version?

Bawolff (talkcontribs)

the extension page says what the latest version needs, older versions may support older mediawiki.

The error message might more be about your version of Extension:AbuseFilter than mediawiki.

2003:C2:3F30:C500:1DB:91B4:A37F:C3BA (talkcontribs)

Good idea but the error message above is what I got after installing AbuseFilter, 1.39 version via ExtensionDistributor.

This post was hidden by Bawolff (history)
Bawolff (talkcontribs)
2003:C2:3F29:3100:1ED:CF42:21E0:CE3B (talkcontribs)

As i told TheDJ in another topic. You may or may not correct it. I won't learn pabricator. I am a user not your domestique.

Reply to "StopForumSpam for MW 1.39"