Semanticmediawiki: Error with long texts

Created on 16 May 2020  路  4Comments  路  Source: SemanticMediaWiki/SemanticMediaWiki

Setup and configuration

  • SMW version: 2.5.6
  • MW version: 1.31
  • Pageforms: 4.4.1
  • PHP version: 7.0.33
  • DB system (MySQL, Blazegraph, etc.) and version: MySQL 5.7.3

Issue

Using pageforms and Semantic with a textarea input field, when filling the content in the form and exceeding 2727 characters, the page is left blank.

Code in form
{{{field|Historia|input type=textarea|class=form-textarea}}}

Code in template
<p>[[Historia::{{{Historia|}}}]]</p>

Stack trace

Deprecated: Use of QuickTemplate::setRef was deprecated in MediaWiki 1.31. [Called from SkinChameleon::setupTemplateForOutput in /home/javier/www/culturacomunitaria/skins/chameleon/src/SkinChameleon.php at line 77] in /home/javier/www/culturacomunitaria/includes/debug/MWDebug.php on line 309

Notice: Did not find alias for special page 'UserBoardAdvanced'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /home/javier/www/culturacomunitaria/includes/specialpage/SpecialPageFactory.php at line 683] in /home/javier/www/culturacomunitaria/includes/debug/MWDebug.php on line 309

Deprecated: Use of MediaWikiI18N::translate was deprecated in MediaWiki 1.31. [Called from Skins\Chameleon\Components\SearchBar::getSearchButton in /home/javier/www/culturacomunitaria/skins/chameleon/src/Components/SearchBar.php at line 92] in /home/javier/www/culturacomunitaria/includes/debug/MWDebug.php on line 309

Thank you very much.

invalid question

All 4 comments

SMW version: 2.5.6

This version is no longer supported. For details, see [0].

As for:

Using pageforms and Semantic with a textarea input field, when filling the content in the form and exceeding 2727 characters, th

Using SMW without any intermediary as demonstrated by [1] will have no length issue you apparently observed which leads to the conclusion that extension pageforms is the reason for your troubles and you should report the issue with their ticket system.

As for:

Deprecated: Use of MediaWikiI18N::translate was deprecated in MediaWiki 1.31. [Called from Skins\Chameleon\Components\SearchBar::getSearchButton

Those are unrelated to SMW.

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/COMPATIBILITY.md
[1] https://sandbox.semantic-mediawiki.org/wiki/Issue/4784

@JaviRoch Thanks for reaching out to us. Actually you are not just having one issue but a potpourri of issues with multiple extensions.

When it comes to storing more than 3000 characters to a property of type text, this works with a compatible version. See the example on sandbox.

In the end it appears to come down to Page Forms and its "textarea" input type. I believe this should work with recent and compatible versions of MediaWiki, Semantic MediaWiki and Page Forms. Thus I recommend updating Semantic MediaWiki and Page Forms.

Closing as invalid for SMW.

Was this page helpful?
0 / 5 - 0 ratings