Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qaxml.e.php error #223

Open
ManueldG opened this issue Feb 18, 2025 · 8 comments
Open

qaxml.e.php error #223

ManueldG opened this issue Feb 18, 2025 · 8 comments

Comments

@ManueldG
Copy link

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

@alfsb
Copy link
Member

alfsb commented Feb 18, 2025

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.

@ManueldG
Copy link
Author

ManueldG commented Feb 18, 2025

as you asked me in php/doc-it#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

@alfsb
Copy link
Member

alfsb commented Feb 18, 2025

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.

@ManueldG
Copy link
Author

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

@ManueldG
Copy link
Author

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

@alfsb
Copy link
Member

alfsb commented Feb 18, 2025

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.

@ManueldG
Copy link
Author

ok thanks

@alfsb
Copy link
Member

alfsb commented Feb 19, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants