[TYPO3-dam-devel] FYI: #14304: PHP Warnings while indexing files

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu Jun 24 14:57:42 CEST 2010


Hi!

The following issue was committed.

Type: bug

BT reference: http://bugs.typo3.org/view.php?id=14304

Problem: When dam indexes files, call_user_func throws this error:
-------
PHP Warning: Parameter 5 to tx_damindex_index::doIndexingCallback()
expected to be a reference, value given in
/var/www/typo3live/typo3conf/ext/dam/lib/class.tx_dam_indexing.php on line
663, referer:
http://www.sauter-controls.com/typo3conf/ext/dam_index/mod1/index.php [^]
-------

Solution: get rid of & on $pObj in dam_index. It is not needed because
objects are always passed by reference in PHP.

-- 
Dmitry Dulepov
TYPO3 expert / TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14304.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-dam/attachments/20100624/87595c6a/attachment.txt>


More information about the TYPO3-team-dam mailing list