[TYPO3-mvc] Using repositories in eID script

Claus Due claus at wildside.dk
Wed Oct 10 11:35:31 CEST 2012


>> Did you check the usual TS pitfalls that could cause framework/plugin configuration to not be available? Include/set in all root templates.
> Whayt exactly do you think of? StoragePid is set, anything else? Im not sure if this is relevant as the eID is not aware of the TS, isnt it?

TS contains the mapping instructions as well as storagePid for your extension - it's highly relevant even in eID mode (unfortunately).

Since eID does not necessarily use a page ID, you should ensure that TS is available from all root templates (since Extbase will use the first added root ts template as fallback - and this is almost certain to happen since you don't have any connection to a cObj which is what ConfigurationManager usually would read in order to detect pid).

That's what exactly I'm thinking about :)

>> Do you do manual PersistenceManager->persistAll (since there is no framework shutdown being performed when in eID)?
> I do, but my script wont run to this point as the first setMethod / propertyMapper usage fails.

Really does sound like missing TS.

>> Dumb question, but did you remember to connectDB from the eID?
> Yes. I'm working on a SOAP client / server and my only way to debug anything is using devlog which will only work when connecting the DB.

Check, that's good.

>> Another dumb question, are there any hints in the error log (and devlog too, recommend you enable that)
> No nothing. It just fails silently.

That, on the other hand, is NOT so good.

No PHP fatal warnings or similar in the web server log? These will help - but check the very first item in this email, it sounds like a probable cause.


Cheers,
Claus

PS: Tx_Fed_Service_Domain will not help much; it contains some wrappers for Repository-fetching but will still require the exact same TS as described in point #1.


More information about the TYPO3-project-typo3v4mvc mailing list