Topic on Project:Support desk

Jump to navigation Jump to search
Wikedkid (talkcontribs)

Hi,

I have been trying to create infoboxes for my local wiki and cannot seem to figure out the following error:

After exporting wikipedia templates to the local hard disk, if i try to import them to my wiki, all that i see in front of me is a blank page. I have searched everywhere but no one seems to have this problem.

The following are the steps i did:

  1. I installed mediawiki 1.21. So i already have the parser function extension.
  2. I installed the Scribunto extension as descried in https://www.mediawiki.org/wiki/Extension:Scribunto
  3. I exported the wikipedia templates to my local disk and even changed the section '‘text/plain’ with ‘CONTENT_FORMAT_TEXT’'.
  4. While importing them to my wiki there just is a blank page.

Can anyone help and tell me what am i doing wrong?

MarkAHershberger (talkcontribs)
Wikedkid (talkcontribs)

Hi,

Thanks for that tip. The bank page does not come and i guess all the templates were imported. But i encountered a new error. So i put a small infoxbox code hoping it would look similar to the ones in wiipedia but all i saw on my page was, "Script error: No such module "Infobox". " I had even put the css code into MediaWiki:Common.css. Then in another thread it suggested that Scrubinto was required which i installed. After installation, after refreshing the wiki, i got a fatal error. Call to undefined function mb_check_encoding() in /var/www/html/testwiki/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 30

MarkAHershberger (talkcontribs)

Could you download the 1.22 version of Scribunto and try it? Some updates have been made that might fix this.

Otherwise, what happens if you click on "Script error"? You should see an error message.

Wikedkid (talkcontribs)

hey it all works now. That script error came as i had not installed php-mbstring. The script error was showing the infobox being invoked but was not working. It all worked after the mbstring installation.

Thanks for all the help :)

Pompelpilt (talkcontribs)

Thanx Wikedkid !

After scratching my head for a couple of days, turning on all possible logging and googling a tremendous amount of docs, I came across your last remark here. I didn't have the 'extension=php_mbstring.dll' enabled in my php.ini file. Once I added that, it all worked. Strange that that's not even mentioned in the Scribunto docs, isn't it?

Reply to "[RESOLVED] Infobox error"