I have found this bug

Notice: unserialize() [function.unserialize]: Error at offset 0 of 242 bytes in _mediawiki_api_process() (Zeile 103 von /kunden/xxxx/hosting/webseiten/drulabor.de/sites/all/modules/mediawiki_api/mediawiki_api.module).

I hope this is a new bug, when not sorry for this post ..

Greetings

Bogus

Comments

asrob’s picture

Which version do you use? Have you tried to enable only the mediawiki filter?
Anyway there was an issue like this, #1380708: Unserialize error thrown for longer mediawiki text, reopen it, if it still exists.

Bogus’s picture

Status: Active » Fixed

Ok, I found the fault, that was my.

I have forgot install a mediawiki, but I have thinking that I not must install a mediawiki

sorry, for that.

And the bug can you now close ;D

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

endiku’s picture

What does the original poster mean by "install a mediawiki"?

I am receiving the exact same error but I've input the MediaWiki API URL http://mediawiki.org/w/api.php into the created Text Filter after enabling MediaWiki API.

The setup is fairly simple. Am I missing something?

asrob’s picture

endiku, so does it still exist?
Yeah, it's fairly simple, I don't think you missed anything.

endiku’s picture

Yes. I am still receiving Error at offset 0 of 242 bytes in _mediawiki_api_process() (line 108 of mediawiki_api.module).

I enable the module. Create a Text format specifically for MediaWiki API, select MediaWiki API as the only enabled filter and set http://mediawiki.org/w/api.php as the MediaWiki API url in the filter settings.

Then I make a very basic page with that filter and the error occurs. Even if there isn't any wiki syntax to convert the error still occurs.

Sarenc’s picture

The URL has moved but cURL doesn't support the redirect. use http://www.mediawiki.org/w/api.php

dalphi’s picture

I'm having this exact same problem. I'm using the latest version, along with the correct URL: http://mediawiki.org/w/api.php

Any text input into content using this text format produces a blank page, along with the error message at the top of the page.

My network requires a proxy. Could this be related to a proxy issue?

dalphi’s picture

Nevermind. I missed the part about not redirecting correctly.

dalphi’s picture

Issue summary: View changes

edit

asb’s picture

Issue summary: View changes

Same issue still appears in 7.x-1.0-beta3:

Notice: unserialize(): Error at offset 0 of 242 bytes in _mediawiki_api_process() (line 108 of /var/www/drupal/sites/all/modules/mediawiki_api/mediawiki_api.module).

How do I set up MediaWiki locally? I it possible to simply unpack the ZIP file to some folder, or is a full installation (including web access and database) required?