[TYPO3-extbase] Handle 404 error with extbase

Mohammed.Rebai at cspq.gouv.qc.ca Mohammed.Rebai at cspq.gouv.qc.ca
Tue Mar 11 21:23:58 CET 2014




[X]

With extbase i developped an extension. And then i use Realurl for url rewriting.
The problem is, for example, i execute this url : www.mysite.com/records/record-number-one/ Everything is ok since the "record-number-one" does exist.
Now if i try
www.mysite.com/records/record-numbbbbbbber-one/
I got this error
Exception while property mapping at property path "":The identity
property "record-numbbbbbbber-one" is no UID.
But i want to be redirected to the 404 page instead of getting this error!
I tried to validate the record in my action and redirect to the 404 page, but when i got this error, my code (in my action) is not even executed!
After a lot of searches, some people say that if i set
plugin.myplugin.mvc.throwPageNotFoundExceptionIfActionCantBeResolved = 1
Or simply
config.tx_extbase.mvc.throwPageNotFoundExceptionIfActionCantBeResolved = 1
The error will be solved, i tried both and i still got the error.
any help ?
Thanks
PS: i use TYPO3 6.1.7




Mohammed Rebai || Conseiller en architecture organique | Direction du Centre de comp?tences Web
Centre de services partag?s du Qu?bec | 800, place D'Youville, 15e ?tage, Qu?bec (Qu?bec) G1R 3P4
T?l. : 418 644-3928  | T?l?c. : 418 266-2339
mohammed.rebai at cspq.gouv.qc.ca<mailto:mohammed.rebai at cspq.gouv.qc.ca> | www.cspq.gouv.qc.ca<http://www.cspq.gouv.qc.ca>

Ce message est confidentiel et est ? l'usage exclusif du destinataire identifi? ci-dessus. Toute autre personne est, par les pr?sentes, avis?e qu'il lui est strictement interdit de le diffuser, de le distribuer, d'en d?voiler le contenu ou de le reproduire. Si vous avez re?u cette communication par erreur, veuillez en informer l'exp?diteur par courrier ?lectronique imm?diatement et d?truire l'original de ce message ainsi que toute copie.

[X]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-extbase/attachments/20140311/afe997fc/attachment.htm>


More information about the TYPO3-team-extbase mailing list