Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2018-03-05 16:58:41
- alfbja
- Member
- Registered: 2018-02-05
- Posts: 21
tab_diagnostics preflight_check ... Warning "Invalid argument
Bonjour,
Textpattern version: 4.7.0-dev (5b75d66002329da1783e155a4424c581)
After update this message appears
_________________________________________________________________________________________
tab_diagnostics | preflight_check
Warning “Invalid argument supplied for foreach()”
in /home/alfnode/www/textpattern/vendors/Textpattern/L10n/Lang.php at line 374.
textpattern/vendors/Textpattern/L10n/Lang.php:374 adminErrorHandler()
textpattern/include/txp_diag.php:470 Textpattern\L10n\Lang->getPack()
textpattern/include/txp_diag.php:66 doDiagnostics()
textpattern/index.php:252 include()
________________________________________________________________________________________
for info
Thanks
Offline
Re: tab_diagnostics preflight_check ... Warning "Invalid argument
We can code round that easily enough, but the real question is why is the Textpack (or that part of it) not found? What public/admin languages have you set? And have you overridden the default Textpattern language in your config.php
?
I wonder if the Diagnostics panel strings haven’t been translated in the target language for the chosen Textpack?
The fix, btw, should be to do this around line 374 of vendors/Textpattern/L10n/Lang.php
:
if (is_array($textpack)) {
foreach ($textpack as $translation) {
$langpack[$translation['name']] = $translation;
}
}
If that works, we’ll patch it this afternoon.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2018-03-05 18:04:36
- alfbja
- Member
- Registered: 2018-02-05
- Posts: 21
Re: tab_diagnostics preflight_check ... Warning "Invalid argument
Merci Monsieur !
Amicalement,
https://www.alfnode.info
Offline