Topic on Project:Support desk

Use the Validator extension in MediaWiki 1.19

15
Dereckson (talkcontribs)

As initially reported on Bugzilla (bug 43067), Fabrice LÉCAUDÉ would like to run the Validator extension on the following configuration:

  • MediaWiki 1.19.2/3
  • PHP 5.2.17
  • SemanticMediaWiki 1.8.0

MediaWiki 1.19 is our LTS version, and so still supported. For SemanticMediaWiki and LTS support issues, see this thread.

Solution offered in the bug

Upgrade PHP to 5.3.

The bug indicates this is not a factor under control.

You really should consider to move to a hosting company offering you the choice of the PHP version or consider to move to a VPS / dedicated server.

New solutions offered

First, consider if it's opportune to upgrade SemanticMediaWiki to 1.9, this version is still compatible with MediaWiki 1.19.

Then, to fix your bug, upgrade Validator to 0.5.1 or Git version. As noted in the bug reports, this instruction doesn't exist anymore in the code.

LIMAFOX76 (talkcontribs)

Actually, I did upgrade to the last SMW version on MediaWiki 1.19.2. Semantic MediaWiki 1.8.0 (latest SMW version) requires Validator 0.5 minimun to work. I have no issue with the Semantic MediaWiki 1.7.1 (previous version)/Validator 0.4.13 duet (see here for the wiki and here for the version page). For the server, I have advanced hosting (I can install whatever MW version and/or extension I want) but I do not control PHP and MySQL. The main avantage is that's free. The main issue is that noboby seems to answer our requests since the wiki farm has been bought by a biggest company.

Dereckson (talkcontribs)

And as SemanticMediaWiki 1.9 requires PHP 5.3, this wouldn't be a real solution either.

You so have three solutions:

  • someone accepts to create a patch resolving a bug not anymore in the Validator extension code;
  • make your provider aware MediaWiki current development use PHP 5.3 and not PHP 5.2;
  • move to another provider.
LIMAFOX76 (talkcontribs)

I would prefer the second choice so I could upgrade to MW 1.20.x, but for now, there is no answer yet.

MarkAHershberger (talkcontribs)

It seems like a quicker fix would be to make the code compatible with php 5.2. I haven't looked at it and don't know if that is possible, though.

Jeroen De Dauw (talkcontribs)

The issue is that the compat function is broken. Would be awesome if someone fixed that

MarkAHershberger (talkcontribs)

(Again, keep in mind I haven't actually looked at the code yet.)

I'll try to poke at it this weekend. I'd love to get stuff like this fixed.

MarkAHershberger (talkcontribs)

Today I installed the following:

  • PHP 5.2.9 (part of Fedora 9)
  • MediaWiki 1.19.3 (downloaded today)
  • SMW 1.8 (downloaded today)
  • Validator 0.5.1 (part of SMW download today)

But I'm not seeing the problem.

This seems to indicate that Validator 0.5.1 works where Validator 0.5 doesn't. Is that right?

Note that I just installed it and initialized the SMW tables. Maybe there is something wikitext I need to see the problem?

LIMAFOX76 (talkcontribs)

Indeed, you need datas inside the tables. I give you all the processes I did before giving up and coming back to Validator 0.4.13 and SMW 1.7.1.

  1. I upgraded Validator up to 0.5.0 and SMW 1.8.0 and I already had this issue on the main page.
  2. I ran the two scripts on the SMWAdmin special page, nothing better.
  3. I came back on SMW1.7.1 with Validator 0.5.0, nothing better.
  4. I installed Validator 0.5.1 and SMW 1.8.0, deleted all the SMW tables, and restarted the two scripts, nothing better.
  5. I ran the update.php maintenance script to accelerate the process and made again the previous point. Even in the line event process, I can see the same error message several times and quite often.
  6. Then, I came back to the previous version (Validator 0.4.13 and SMW 1.7.1), ran once again the scripts (with the update.php maintenance script) and all came back to normal.

I created a test wiki where I put a duplicate of the same database with Validator 0.5.1 and SMW 1.8.0.1 in order to fix the issue.
I forgot to tell one thing, there is no cache on this wiki.

MarkAHershberger (talkcontribs)

Could you give me some sample pages that are failing for you?

Hrm... Since I'm working on the SMW installation at wiki.mozilla.org right now, maybe I can do something with the data there.

LIMAFOX76 (talkcontribs)

Go here and you will have access to the wiki. Just declare yourself, I will give all admin rights. For now I'm running again a refresh from scratch with runJobs.php (I was mistaken on the previous message).

See this snapshot from the runJobs.php running script.

MarkAHershberger (talkcontribs)

I've created a user now.

LIMAFOX76 (talkcontribs)

You have full privileges now.

MarkAHershberger (talkcontribs)

I'm was able to use Special:Export to get some pages that I can use on my own test wiki. After importing them, I saw the problem. Thanks!

141.35.213.221 (talkcontribs)

Has there been any solution for this issue? I would be really interessted in finding one! -- Dominique

Reply to "Use the Validator extension in MediaWiki 1.19"