[TYPO3-dam-devel] RFC #18057: Bug: Calling tx_dam::meta_putData($uid, $meta, $mode) ends with fatal error

Dan Osipov dosipov at phillyburbs.com
Tue Apr 26 14:51:17 CEST 2011


+1 by reading

On 4/26/11 8:04 AM, Lorenz Ulrich wrote:
> Hi everyone,
>
> this is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker reference: http://bugs.typo3.org/view.php?id=18057
>
> Branches: trunk
>
> Problem:
> The Fatal error received when calling tx_dam::meta_putData is "Using
> $this when not in object context". The reason is that the method
> insertUpdateData from class tx_dam_db tries to access the attribute
> "errorLog" (lines 361 and 365 "if (count($this->errorLog)) return false;").
>
> Solution:
> $errorLog is a variable in tx_dam, but in TCEmain, that's why the call
> of $this->errorLog is wrong, it should be $tce->errorLog.
>
>
> Best regards,
>
>
> Lorenz

-- 
Dan Osipov
http://danosipov.com/blog


More information about the TYPO3-team-dam mailing list