Extension talk:ParamProcessor

From MediaWiki.org
(Redirected from Extension talk:Validator)
Jump to: navigation, search

Contents

Thread titleRepliesLast modified
Class RangeValidator not found406:05, 12 February 2013
Download doesn't work117:35, 17 January 2013
Validator and graph result format216:54, 20 October 2012
SMW setMessage problem in v1.14 Validator009:07, 27 September 2012
Short description of this extension please119:00, 22 May 2012
Parameter manipulation622:26, 21 March 2012
Undefined index error520:22, 29 February 2012
Describe lists parsemag as alias313:54, 2 October 2011
4.10?111:31, 24 August 2011

Class RangeValidator not found

Hi,

a fatal error comes up when I execute a simple ask query such as {{#ask: [[Category:Publication]] }}:

Fatal error: Class '\ValueValidators\RangeValidator' not found in
...\extensions\Validator\includes\ParamDefinitionFactory.php on line 176

The following extensions are installed:

  • MediaWiki 1.19.3
  • PHP 5.3.0 (apache2handler)
  • Semantic MediaWiki (Version 1.9 alpha)
  • DataTypes (Version 0.1 alpha)
  • DataValues (Version 0.1 alpha)
  • ValueFormatters (Version 0.1 alpha)
  • ValueParsers (Version 0.1 alpha)
  • ValueValidators (Version 0.1 alpha)
  • Validator (ParamProcessor) (Version 1.0 alpha)

Cheers, Basil

LambdaB (talk)19:08, 10 February 2013

I suspect you are running incompatible alpha versions. Since you just list them as being alpha I can't tell. The latest alphas are working fine with each other and so are the latest releases. The error you are running into suggests you have either an outdated Validator or and outdated DataValues extension bundle.

Jeroen De Dauw (talk)00:11, 11 February 2013

Hi Jeroen,

just now I deleted the extension folders for Validator and DataValues and did a fresh checkout. The version numbers are still the same and the fatal error did not disappear.

Any idea what I could try?

Cheers, Basil

LambdaB (talk)09:40, 11 February 2013

I fixed the problem for now in extensions/DataValues/ValueValidators/ValueValidators.classes.php. It seems like the validators are not correctly registered. I added some backslashes at the beginning:

'\ValueValidators\RangeValidator' => 'includes/validators/RangeValidator.php',
'\ValueValidators\StringValidator' => 'includes/validators/StringValidator.php',

Cheers, Basil

LambdaB (talk)12:52, 11 February 2013

Uh oh... that is not good...

That should not be needed and is caused by MW 1.19.x not having decent namespace support in its autoloader. This is going to cause problems elsewhere as well, so we'll need to take care of this before the next SMW release.

I created bug 44892 to keep track of this

Jeroen De Dauw (talk)06:05, 12 February 2013
 
 
 
 

Download doesn't work

Hi,

download: http://s.bn2vs.com/validatordl doesn't work.

bye

212.9.170.19417:04, 17 January 2013

Worked for me. Still I updated the link to offer the download of the latest release. Cheers

[[kgh]] (talk)17:35, 17 January 2013
 

Validator and graph result format

Version 0.5 seems to break parts of the graph output for Semantic Result Formats (or vice versa). It will not show the labels, colors or legend. I was able to fix this by downgrading to version 0.4.14. --Dgennaro 17:19, 18 October 2012 (UTC)

Dgennaro17:19, 18 October 2012

Thanks for notifying me - the problem is in SRF, and I will get to it soonish so it's not in the 1.8 rel :)

Jeroen De Dauw (talk)10:18, 19 October 2012
 

This should be fixed on master now.

Jeroen De Dauw (talk)16:54, 20 October 2012
 

SMW setMessage problem in v1.14 Validator

Version 1.13 of Validator works fine for me. When I installed 1.14 I got the bug below. Going back to 1.13 fixed it. So I have a workaround, but this may be a bug in 1.14.

The problem is that any Semantic MediaWiki {{#ask}} call results in the following message:

PHP Fatal error: Call to undefined method Parameter::setMessage() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\SMW_QueryProcessor.php on line 512

Here is my version info:

MediaWiki 1.18.1 PHP 5.2.13 (apache2handler) MySQL 5.1.58-community Semantic Forms (Version 2.5) Semantic MediaWiki (Version 1.7.1) Semantic Result Formats (Version 1.7.1) Character Escapes (Version 0.9.1) LinkedWiki (Version 0.1.0.2222) Validator (Version 0.4.13)

Indeed, I have yet not beta-ed over to the latest SMW 1.8, but that is not yet officially released. And Validator 1.14 came out just after SMW 1.7.1.

Hope this helps, Lloyd Rutledge

Lloyd.Rutledge (talk)09:07, 27 September 2012

Short description of this extension please

Hello,

would somebody please tell me the functionality of this extension in a few words? The extension description doesn't make sense for me. Maybe I'm too silly for that. But many extensions require validator, so it has to be important. Thanks for your help.

Cheers

137.193.68.23912:03, 22 May 2012

It's a kind of library that can be used by other extension. It does not provide functionality on it's own.S

Jeroen De Dauw (talk)19:00, 22 May 2012
 

Parameter manipulation

The reason for manipulating data is to enter "yes" instead of "true"? Please remind that we don't want change any sense! You know that all here is text and you also know that this is not about converting or encoding. Drop it!

217.92.144.16613:37, 16 March 2012

Validator allows a bunch of values for boolean parameters, for example yes/no, on/off, but not true/false actually, might make sense to include this as well. Perhaps also show/hide while we're at it.

Danwe (talk)13:53, 16 March 2012

Yeah, we can add those. The boolean type was never fully implemented so far anyway - if you have on/off, you ought to consider internationalizing these as well :)

One more todo for 0.5.

Jeroen De Dauw (talk)15:02, 16 March 2012

I want to suggest to keep it simple! The attribute can be named SwitchOn the values are true/false.

| SwitchOn=true}}

Furthermore you could handle it with 1 and 0 but than there were no new datatype - Ooh

Anyway you can implement what you want, but if there is no additional benefit it is just absurd...

217.92.144.16614:46, 20 March 2012

So you are saying i18n is absurd? I know some people that might eat you alive for that :)

Jeroen De Dauw (talk)17:30, 20 March 2012

LOL we had learned english and can understand each other, or not?

You want an artificial language in several versions!

I know some people that might eat you alive for that :)

217.92.144.16615:36, 21 March 2012
 
 
 
 
 

Undefined index error

I'm getting the following error on my form pages "Notice: Undefined index: original-value in /extensions/Validator/includes/Validator.php on line 168" Any hints on how I can resolve this? Thanks!

208.127.139.15501:15, 11 February 2011

What version are you using? I suspect this issue has already been fixed. When are you getting it? Using Semantic Forms?

Jeroen De Dauw12:18, 11 February 2011

Hi Jeroen,
I'm getting this notice when using sparql inline query e.g.

{{#sparql: SELECT ?person ?income WHERE { ?person <http://mywiki/property/Income> ?income . } }}

I have:

MediaWiki 1.17.0

Semantic Forms (Version 2.3.2)

Semantic MediaWiki (Version 1.7.0.2)

Any ideas?

Ridmi (talk)08:39, 28 February 2012

Where is this #sparql parser function coming from? It's not part of SMW AFAIK. Also, what version of Validator are you using?

Jeroen De Dauw (talk)17:44, 28 February 2012

It's Version 0.4.13.
But I've just realized the sparql parser function is a part of SMWHalo extension.
So I guess I have to dig in different direction.
Thanks Jeroen.

Ridmi08:18, 29 February 2012

Do note that Halo is probably not compatible with the latest SMW yet. I suggest you look at what requirements it has.

Jeroen De Dauw (talk)20:22, 29 February 2012
 
 
 
 
 

Describe lists parsemag as alias

I have a parserfunction that has 1 alias. The describe parserfunction says: Aliases: parsemag

The error is in line 173 of Validator_Describe.php in Validator 0.4.11:

$description .= $this->msg( 'validator-describe-aliases', 'parsemag', $wgLang->listToText( $aliases ), count( $aliases ) );

Changing $this->msg to wfMsgExt fixes the problem.

-- Nx / talk11:40, 1 October 2011

Thanks for pointing this out. I just removed the parsemag argument. Using wfMsgExt might fix the issue, but will break the behavior of the language parameter.

Jeroen De Dauw23:24, 1 October 2011

Then just change it to:

$description .= wfMsgExt( 'validator-describe-aliases', array( 'parsemag', 'language' => $this->language ), $wgLang->listToText( $aliases ), count( $aliases ) );
-- Nx / talk04:36, 2 October 2011

Awesome - I didn't know you could pass it along like that :)

Jeroen De Dauw13:54, 2 October 2011
 
 
 

Just letting you know that the version for download (e.g. here) is still 4.9 rather than 4.10. Regards,

Cavila MW 1.17, MySQL 5.1.57, Php 5.2.1709:55, 24 August 2011

Indeed. Thanks for notifying me! Fixed now :)

Jeroen De Dauw11:31, 24 August 2011