Project

General

Profile

Actions

Bug #15791

closed

foreach error when installing adodb

Added by Michael Scharkow over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Extension Manager
Target version:
-
Start date:
2006-03-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

em_index_line_3519.diff (695 Bytes) em_index_line_3519.diff Administrator Admin, 2006-03-09 10:27

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #15846: foreach problem with tt_productsClosedKarsten Dambekalns2006-03-17

Actions
Actions #1

Updated by Michael Scharkow over 18 years ago

Oops, this should probably be in TER2 bugs, right?

Actions #2

Updated by Karsten Dambekalns over 18 years ago

No, it should be in EM bugs... :)

Actions #3

Updated by Franz Holzinger over 18 years ago

/** * 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
  1. 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
  1. 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
  1. 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
Actions #4

Updated by Karsten Dambekalns over 18 years ago

I added the suggested check to the code.

Actions

Also available in: Atom PDF