New pages not translatable - "tpt-unknown-page"

Trying to translate I get this error. Even with other languages
errore-traduzione.png
Renato

hi
same for the section “Note” How_to_install_additional_workbenches (fr) , How_to_install_additional_workbenches (it)

wiki_translate00.png
mario

hi
not change, i believe that it is in the new paragraphs

mario

Sorry, but as you can see, new pages are not translatable…
errore traduzione.png
Renato

This is apparently a known problem https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration#Saving_translation_fails_with_Unknown_error:_.22tpt-unknown-page.22

I will try to setup a cron job as they suggest…

It has not changed anything yet

Renato

I tried all the things described in the mediawiki page (running the job queue manually, using wfLoadExtension instead of require_once and vice-versa, etc), none seem to work…
I don’t know what else to do :frowning:

Is this happening with only a few newly created pages, or all of them? :confused:

EDIT: I just tested translating the Draft Label page in French. I do not get an error. Don’t have time to test thoroughly at the moment… (I have such a backlog of topics to read :confused: )

Sorry, but I do not see your translation
label.png
Renato

The error is not immediately visible… You need to edit one block of text, go to the next one, then click back on the previous block to edit it again, then you will see the “tpt-unknown-page” message. And you won’t be able to save your translations.

One of the reasons mentioned for this problem is the processing queue that is slow (in php actions can only be performed when someone loads a page, so events are added to a queue, and the items of the queue are processed later, one after each page load), but I checked, the processing queue is empty. Another reason is a conflict between the Translate plugin and the Universal Language Selector plugin (which Translate depends on), but they don’t give a solution,and I tried all I could think of already…

I translated 2 or 3 fields, then I closed the page - Firefox warned me that I would lose data and I foolishly thought it was already saved so I clicked OK. :unamused:

I’ll try again later over the weekend.

Thank you Yorik for your efforts.

As a temporary solution, I propose:

  1. Not mark the new pages, so you can create the corresponding pages in the various languages
  2. Add the new paragraphs to the existing Tags, so they can be translatable

I just had the error for the first time in an existing page. I modified the intro of the Import OpenSCAD Code page, separating the text block in two with a blank line. It added a new translation section (). This section brings the error when trying to translate.

Then I tried to delete that section, and when marking the page for translation, it create a new one ()! :imp:

I had to remove the blank line so the tag would be automatically removed.

What are we going to do with all the new pages? :confused:

You mean manually, or in other words bypassing the translation plug-in altogether? :confused:

Except maybe changing the shitty webhost? :unamused: Sorry I’m just venting, but I’ve always found its limitations ridiculous compared to what can be found in Canada, for probably much cheaper…

Yes, I mean this, it works but it’s not a solution.
https://www.freecadweb.org/wiki/Arch_Rebar_Helical
https://www.freecadweb.org/wiki/Arch_Rebar_Helical/it

I’ve got a wild idea to test: kkremitzki on the Gitter channel was saying that the issue with SVG scaling may have been caused by our custom theme.

So I switched to the “Vector” theme in my own preferences to see if the “tpt-unknown-page” error would happen again, but I need to look for a page to test it on.

P.S. kkremitzki is right about the theme: with Vector, svg images do scale.
FC_wiki_svg_scale_Vector_Theme.png

There are many new pages that have been created these days for Path, and it seems they are being translated without problems, so no “tpt-unknown-page” error… :question:

For the svg image, thanks for this test Normand! I think I found the culprit: The #wiki-body img class has two CSS rules, width:auto and height:auto that apparently provoke the issue. Disabling them makes the images scale correctly. This doesn’t seem very logical to me, rather a browser CSS bug, but at least we have a way to workaround.

I fixed the theme now by removing these two rules, and it seems to work: https://www.freecadweb.org/wiki/User_talk:Yorik but it will need more testing to make sure nothing else broke, because probably I had added these rules for some reason…

This new error turns out to me


maybe I have to wait !?

Renato

I just tried to translate the same page to portuguese, it works normally. Probably a temporary error, maybe while kurt was updating the wiki…

It seems to me that it works only with the old paragraphs, , but not with the new ones
Translations:Path Pocket/4/pt-br it’s old and it works
Translations:Path Pocket/12/pt-br it’s new and it does not work


Also we lost all your work for Wiki redesign: https://forum.freecadweb.org/viewtopic.php?f=21&t=12394

It looks like that the Mediawiki has been updated to a new version. It is now 1.30.0. It was a few weeks ago 1.28.x. See here: https://www.freecadweb.org/wiki/Special:Version

Ulrich

Just documented the version info:

Installed software
Product 	Version
MediaWiki 	1.30.0
PHP 	5.6.32 (cgi-fcgi)
MySQL 	5.5.57
ICU 	4.2.1
Entry point URLs
Entry point	URL
Article path	/wiki/$1
Script path	/wiki
index.php	/wiki/index.php
api.php	/wiki/api.php
load.php	/wiki/load.php
Installed skins
Skin	Version	License	Description	Authors
Vector	–	GPL-2.0+	Modern version of MonoBook with fresh look and many usability improvements	Trevor Parscal, Roan Kattouw and others
Installed extensions
Special pages
Extension	Version	License	Description	Authors
Contribution Scores	1.25.0 (703f4f3) 00:02, 25 October 2016		Polls the wiki database for highest user contribution volume	Tim Laqua
Maintenance	2.3.0 (927db4e) 21:14, 25 October 2016	GPL-2.0+	Wiki interface for various maintenance scripts	Ryan Schmidt
Renameuser	–	GPL-2.0+	Adds a special page to rename a user (need renameuser right)	Ævar Arnfjörð Bjarmason and Aaron Schulz
Translate	MLEB 2017.10	GPL-2.0+	Special page for translating MediaWiki and beyond	Niklas Laxström, Santhosh Thottingal and Siebrand Mazeland
Parser hooks
Extension	Version	License	Description	Authors
Babel	1.10.1	GPL-2.0+	Adds the #babel parser function to allow automated generation of a babel userbox column with the ability to include custom templates	Robert Leverington, Thiemo Mättig, Legoktm, Nikerabbit, Amir Aharoni and Ricordisamoa
ParserFunctions	1.6.0	GPL-2.0+	Enhance parser with logical functions	Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
SyntaxHighlight	2.0	GPL-2.0+	Provides syntax highlighting <syntaxhighlight> using Pygments - Python syntax highlighter	Brion Vibber, Tim Starling, Rob Church, Niklas Laxström, Ori Livneh and Ed Sanders
Media handlers
Extension	Version	License	Description	Authors
NativeSvgHandler	1.2		Serves SVG images directly to clients	Povilas Kanapickas, Ilaï Deutel
Other
Extension	Version	License	Description	Authors
CLDR	4.4.0	GPL-2.0+	Extension which provides localised language names based on CLDR data	Niklas Laxström, Siebrand Mazeland, Ryan Kaldari and Sam Reed
Clean Changes	2017-10-30	GPL-2.0+	More compact display of the recent changes list	Niklas Laxström
Gadgets	–	GPL-2.0+	Lets users select custom CSS and JavaScript gadgets in their preferences	Daniel Kinzler and Max Semenik
LocalisationUpdate	1.4.0	GPL-2.0+	Keeps the localised messages as up to date as possible	Tom Maaswinkel, Niklas Laxström and Roan Kattouw
Piwik Integration	3.0.0	GPL-2.0+	Adding Piwik Tracking Code	Isb1009, DaSch and Youri van den Bogert
UniversalLanguageSelector	2017-10-30 (0c5b4d3) 14:28, 20 September 2017	GPL-2.0+	Gives the user several ways to select a language and to adjust language settings	Alolita Sharma, Amir Aharoni, Arun Ganesh, Brandon Harris, Niharika Kohli, Niklas Laxström, Pau Giner, Santhosh Thottingal, Siebrand Mazeland and others
WikiEditor	0.5.1	GPL-2.0+	Provides an extendable wikitext editing interface and many feature-providing modules	Derk-Jan Hartman, Trevor Parscal, Roan Kattouw, Nimish Gautam and Adam Miller
Installed libraries
Library	Version	License	Description	Authors
composer/semver	1.4.2	MIT	Semver library that offers utilities, version constraint parsing and validation.	Nils Adermann, Jordi Boggiano and Rob Bast
cssjanus/cssjanus	1.2.0	Apache-2.0	Convert CSS stylesheets between left-to-right and right-to-left.	
firebase/php-jwt	4.0.0	BSD-3-Clause	A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.	Neuman Vong and Anant Narayanan
james-heinrich/getid3	1.9.14	GPL	PHP script that extracts useful information from popular multimedia file formats	
justinrainbow/json-schema	5.2.1	MIT	A library to validate a json schema.	Bruno Prieto Reis, Justin Rainbow, Igor Wiedler and Robert Schönthal
liuggio/statsd-php-client	1.0.18	MIT	Statsd (Object Oriented) client library for PHP	Giulio De Donato
mediawiki/at-ease	1.1.0	GPL-2.0+	Safe replacement to @ for suppressing warnings.	Tim Starling and MediaWiki developers
monolog/monolog	1.22.1	MIT	Sends your logs to files, sockets, inboxes, databases and various web services	Jordi Boggiano
mustangostang/spyc	0.6.2	MIT	A simple YAML loader/dumper class for PHP	mustangostang
nmred/kafka-php	0.1.5	BSD-3-Clause	Kafka client for php	
oojs/oojs-ui	0.23.0	MIT	Provides library of common widgets, layouts, and windows.	Timo Tijhof, Bartosz Dziewoński, Ed Sanders, James D. Forrester, Kirsten Menger-Anderson, Rob Moen, Roan Kattouw, Trevor Parscal, Kunal Mehta and Prateek Saxena
oyejorge/less.php	1.7.0.14	Apache-2.0	PHP port of the Javascript version of LESS http://lesscss.org (Originally maintained by Josh Schmidt)	Matt Agar, Martin Jantošovič and Josh Schmidt
pear/console_getopt	1.4.1	BSD-2-Clause	More info available on: http://pear.php.net/package/Console_Getopt	Greg Beaver, Andrei Zmievski and Stig Bakken
pear/mail	1.4.1	BSD-2-Clause	Class that provides multiple interfaces for sending emails.	Chuck Hagenbuch, Richard Heyes and Aleksander Machniak
pear/mail_mime	1.10.1	BSD-3-clause	Mail_Mime provides classes to create MIME messages	Cipriano Groenendal and Aleksander Machniak
pear/mail_mime-decode	1.5.5.2	BSD-2-Clause	More info available on: http://pear.php.net/package/Mail_mimeDecode	Cipriano Groenendal and Aleksander Machniak
pear/net_smtp	1.7.3	PHP-3.01	An implementation of the SMTP protocol	Jon Parise and Chuck Hagenbuch
pear/net_socket	1.2.1	BSD-2-Clause	More info available on: http://pear.php.net/package/Net_Socket	Chuck Hagenbuch, Aleksander Machniak and Stig Bakken
pear/pear-core-minimal	1.10.3	BSD-3-Clause	Minimal set of PEAR core files to be used as composer dependency	Christian Weiske
pear/pear_exception	1.0.0	BSD-2-Clause	The PEAR Exception base class.	Helgi Thormar and Greg Beaver
pimple/pimple	3.0.2	MIT	Pimple, a simple Dependency Injection Container	Fabien Potencier
psr/log	1.0.2	MIT	Common interface for logging libraries	PHP-FIG
ruflin/elastica	5.1.0	MIT	Elasticsearch Client	Nicolas Ruflin
stil/gd-text	1.0.0	MIT	A class drawing multiline and aligned text on pictures. Uses GD extension.	
symfony/process	3.2.6	MIT	Symfony Process Component	Fabien Potencier and Symfony Community
wikimedia/assert	0.2.2	MIT	Provides runtime assertions	Daniel Kinzler
wikimedia/avro	1.7.7	Apache-2.0	A library for using Apache Avro with PHP.	Michael Glaesemann, Andy Wick, Saleem Shafi, A B, Doug Cutting and Tom White
wikimedia/base-convert	1.0.1	GPL-2.0+	Convert an arbitrarily-long string from one numeric base to another, optionally zero-padding to a minimum column width.	Brion Vibber and Tyler Romeo
wikimedia/cdb	1.4.1	GPL-2.0+	Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent.	Daniel Kinzler, Tim Starling, Chad Horohoe and Ori Livneh
wikimedia/cldr-plural-rule-parser	1.0.0	GPL-2.0+	Evaluates plural rules specified in the CLDR project notation.	Tim Starling and Niklas Laxström
wikimedia/composer-merge-plugin	1.4.1	MIT	Composer plugin to merge multiple composer.json files	Bryan Davis
wikimedia/css-sanitizer	1.0.2	Apache-2.0	Classes to parse and sanitize CSS	Brad Jorsch
wikimedia/html-formatter	1.0.1	GPL-2.0+	Performs transformations of HTML by wrapping around libxml2 and working around its countless bugs.	MediaWiki contributors
wikimedia/ip-set	1.1.0	GPL-2.0+	Efficiently match IP addresses against a set of CIDR specifications.	Brandon Black
wikimedia/php-session-serializer	1.0.4	GPL-2.0+	Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION	Brad Jorsch
wikimedia/purtle	1.0.6	GPL-2.0+	Fast streaming RDF serializer	Daniel Kinzler, Thiemo Mättig and Stanislav Malyshev
wikimedia/relpath	2.0.0	MIT	Compute a relative filepath between two paths.	Ori Livneh
wikimedia/remex-html	1.0.1	MIT	Fast HTML 5 parser	Tim Starling
wikimedia/running-stat	1.1.0	GPL-2.0+	PHP implementations of online statistical algorithms	Ori Livneh
wikimedia/scoped-callback	1.0.0	GPL-2.0+	Class for asserting that a callback happens when a dummy object leaves scope	Aaron Schulz
wikimedia/testing-access-wrapper	1.0.0	GPL-2.0+	A simple helper class to access non-public elements of a class when testing.	Adam Roses Wight, Brad Jorsch and Gergő Tisza
wikimedia/textcat	1.2.0	LGPL-2.1	PHP port of the TextCat language guesser utility, see http://odur.let.rug.nl/~vannoord/TextCat/.	Stanislav Malyshev and Trey Jones
wikimedia/timestamp	1.0.0	GPL-2.0+	Creation, parsing, and conversion of timestamps	Tyler Romeo
wikimedia/utfnormal	1.1.0	GPL-2.0+	Contains Unicode normalization routines, including both pure PHP implementations and automatic use of the 'intl' PHP extension when present	Brion Vibber
wikimedia/wait-condition-loop	1.0.1	GPL-2.0+	Wait loop that reaches a condition or times out	Aaron Schulz
wikimedia/wrappedstring	2.2.0	MIT	Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.	Timo Tijhof
zordius/lightncandy	0.23	MIT	An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ).	Zordius Chen
Parser extension tags
<gallery>, <indicator>, <languages>, <nowiki>, <pre>, <source> and <syntaxhighlight>
Parser function hooks
anchorencode, babel, basepagename, basepagenamee, bidi, canonicalurl, canonicalurle, cascadingsources, cscore, defaultsort, displaytitle, expr, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle, gender, grammar, if, ifeq, iferror, ifexist, ifexpr, int, language, lc, lcfirst, localurl, localurle, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, protectionexpiry, protectionlevel, rel2abs, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, special, speciale, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename, subpagenamee, switch, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, translation, uc, ucfirst and urlencode