Bug #15791
closed
foreach error when installing adodb
Added by Michael Scharkow over 18 years ago.
Updated over 18 years ago.
Category:
Extension Manager
Description
When installing adodb, a foreach error is thrown, relating to the suggestions array.
A simple is_array check avoids the problem and is attached as a patch, but I don't know if $conf['constraints']['suggests'] is supposed to be always available as an array.
(issue imported from #M2809)
Files
Oops, this should probably be in TER2 bugs, right?
No, it should be in EM bugs... :)
/**
* Module: Extension manager
*
* $Id: index.php,v 1.51.2.11 2006/03/16 19:24:54 k-fish Exp $
Warning: Invalid argument supplied for foreach() in /var/www/html/TYPO3core/typo3/mod/tools/em/index.php on line 3441
Call Stack
- Function Location
1 {main}() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:0
2 SC_mod_tools_em_index->main() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:4434
3 SC_mod_tools_em_index->importExtFromRep() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:508
4 SC_mod_tools_em_index->checkDependencies() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:1193
Warning: Invalid argument supplied for foreach() in /var/www/html/TYPO3core/typo3/mod/tools/em/index.php on line 3509
Call Stack
- Function Location
1 {main}() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:0
2 SC_mod_tools_em_index->main() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:4434
3 SC_mod_tools_em_index->importExtFromRep() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:508
4 SC_mod_tools_em_index->checkDependencies() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:1193
Warning: Invalid argument supplied for foreach() in /var/www/html/TYPO3core/typo3/mod/tools/em/index.php on line 3529
Call Stack
- Function Location
1 {main}() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:0
2 SC_mod_tools_em_index->main() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:4434
3 SC_mod_tools_em_index->importExtFromRep() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:508
4 SC_mod_tools_em_index->checkDependencies() /var/www/html/TYPO3core/typo3/mod/tools/em/index.php:1193
Extension Manager
Extension import results
Go backSUCCESS: /var/www/html/typo3/ext/xajax/
ext_emconf.php: /var/www/html/typo3/ext/xajax/ext_emconf.php
I added the suggested check to the code.
Also available in: Atom
PDF