qaxml.e.php error
PHP Fatal error: Uncaught TypeError: QaFileInfo::cacheLoad(): Return value must be of type array, null returned in \base\scripts\translation\lib\QaFileInfo.php:43 Stack trace: #0 \base\scripts\translation\qaxml.e.php(22): QaFileInfo::cacheLoad() #1 {main} thrown in \base\scripts\translation\lib\QaFileInfo.php on line 43
Fatal error: Uncaught TypeError: QaFileInfo::cacheLoad(): Return value must be of type array, null returned in \base\scripts\translation\lib\QaFileInfo.php on line 43
TypeError: QaFileInfo::cacheLoad(): Return value must be of type array, null returned in \base\scripts\translation\lib\QaFileInfo.php on line 43
Call Stack: 0.0039 485944 1. {main}() \base\scripts\translation\qaxml.e.php:0 1.0148 759712 2. QaFileInfo::cacheLoad() \base\scripts\translation\qaxml.e.php:22
I fixed an error like this a while ago on Linux, but it appear to revive on Windows. It may take a while until I can loan a Window box to make tests.
Also, have you run the internal configure.php? The new tools dont need this extra step, but the old tools still requires it. See https://github.com/php/doc-base/tree/master/scripts/translation#old-tools-below . Please reply with all commands you executed to reach this error. Also, it's only qaxml.e.php that fails? For example, qaxml.a.php works?
Instead running qaxml.e.php, you may try run doc-base/scripts/translation/qaxml-entities.php. It's the new tool that is replacing the old tools.
as you asked me in https://github.com/php/doc-it/issues/55 to check the file update status i tried to run php base/scripts/translation/qaxml.e.php
now I'm using https://doc.php.net/revcheck.php?lang=it
Keep using the site. It may take a while until I can fix qaxml.e.php on Windows. Meanwhile, use this:
php base/configure.php --with-lang=it
cls
php base/scripts/translation/qaxml-entities.php --urgent
The last command will show files that are causing missing pages on doc-it, and other problems, so they are priority.
There are only 2% of files updated most of the translated files are missing the Italian manual could not be built several months ago I don't see any priorities for now I have tried to fix the problems indicated in Issue then I would like to start from a folder and try to add as many translations as possible. Davide is following me in the corrections and I am telling him which files I am working on
on my repository I copied the script to check if the manual is compiled so I am sure that the changes I make do not have problems. In the meantime I am also studying the various scripts to control the updating of the files thanks for the suggestions
I don't see any priorities
The --urgent option show a form of priority: "This script accepts an --urgent option, to filter alerts related to file entities. This will help translators on languages that are failing to build, to focus on mismatches that are probably most related with build fails."
But talk Davide about this.
ok thanks
Got a Win machine. Run:
php doc-base/scripts/translation/configure.php it
php doc-base/scripts/translation/qaxml.e.php
Works ok, generates only two warnings. So qaxml-entities.php is really better for doc-it. Test the commands above to see if it fixes the issue for you.
But again, qaxml.a.php / qaxml.e.php is being rewritten, and soon will be deleted. Better use the new tools.
With qaxml tools rewrite complete, old qaxml tools is now obsolete and will receive no updates, soon to be removed. Closing the issue.