CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #38118

PHP warning "Invalid argument ... foreach"

Added by Martin Bless 11 months ago. Updated 8 months ago.

Status:Closed Start date:2012-06-16
Priority:Should have Due date:
Assignee:Francois Suter % Done:

100%

Category:-
Target version:2.1.0
Votes: 0

Description

On an up to date Ubuntu 12.04, TYPO3 4.7.1:
"PHP Warning: Invalid argument supplied for foreach() in /home/marble/htdocs/LinuxData200/intro47/typo3conf/ext/svconnector/mod1/index.php line 153"

This happens because $GLOBALS['T3_SERVICES']['connector'] is null.

For info: $GLOBALS['T3_SERVICES'] is of type array(1)with key 'auth'.

Happens in the situation where "Connector service test" finds: "No connector services are available. Please install at least one before trying to use this test."

Nevertheless it's probably better to avoid the warning.

Cheers, Martin.

Associated revisions

Revision 65958
Added by Francois Suter 8 months ago

Improved checks when no connector services are installed, resolves #38118

Revision 65958
Added by Francois Suter 8 months ago

Improved checks when no connector services are installed, resolves #38118

History

Updated by Francois Suter 8 months ago

  • Status changed from New to Accepted
  • Assignee set to Francois Suter
  • Target version set to 2.1.0

Right. Except the code is now in the ConnectorRepository class.

Updated by Francois Suter 8 months ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r65958.

Updated by Francois Suter 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF