[TYPO3-calendar] ###image### marker bug

Pierre Lamoureux plamoureux at sympatico.ca
Wed Mar 18 16:52:13 CET 2015


PHP Error: Argument 3 passed to TYPO3\CMS\Frontend\Page
\PageRepository::getFileReferences() must be of the type array, null
given, called in /usr/share/typo3/typo3_src-6.2.9/typo3/sysext/frontend/
Classes/ContentObject/FilesContentObject.php on line 317 and defined.
(more or less related to #60759)

The generic error is that in FilesContentObject.php (sysext/frontend/
classes/ContentObject): On some condition, in
FilesContentObject::handleFileReference will attemp to reload the source
record from database. If the (table,field,uid) send do not resolve or any
other database error will result in a null value for the third argument of
PageRepository::getFileReference call. The database call result is not
tested. A fix is suggest for FilesContentObject.php in #60759 but it's
only mask the source problem.

Context:
	Typo3 6.2.9 CAL 1.7.0 CAL Organizer data model: frontend users 
note: The
	site is a migration from TYPO3 4.5 to TYPO3 6.2.9

The ###image### marker search for the image in database table
tx_cal_organizer when it's in fe_users table.

I have correct that part with following TS in my template setup. But it
should be move to the configuration of the extension and set when user
choose the frontend users as model organizer.

plugin.tx_cal_controller.view.organizer.organizer.image.preRenderRegisters.allImageCaptions.
cObject.references.table=fe_users

The PHP Error is clear, but the image does not resolve anyway. The
PageRepository::getFileReference try to find the image with a complex call
to sys_file_reference table when the image name is plain text in fe_users
image field.

Somebody have any clue ?




More information about the TYPO3-project-calendar mailing list