[TYPO3-mvc] Scheduler $_SERVER['REQUEST_METHOD'] not set

Sebastian Schreiber me at schreibersebastian.de
Fri May 27 15:37:31 CEST 2011


Am 27.05.2011 15:31, schrieb Tim Schoch | GSTALTIG:
> Hello List
>
> I had the strange problem that scheduler tasks failed on the cli but worked fine when started manually in the backend.
> Finally I found that when called by the cronjob the $_SERVER['REQUEST_METHOD'] was empty ( BE is POST ) and beacuse of that Tx_Extbase_MVC_Web_Request::setMethod() fails.
>
> My work around is to set the value by hand inside the scheduler task, but I guess this should work without such a hack.
> Has anybody else had issues with extbase scheduler tasks? (I'm running the latest released versions)
>
> Tim
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
As far as I know in CLI-Mode the REQUEST_METHOD is not set.
So it makes sense to have a fallback setting.


-- 
Sebastian Schreiber
(Medieninformatiker)
(TYPO3 Certified Integrator)

Sülzburgstraße 36
D-50937 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 219 / 5302 / 2302



More information about the TYPO3-project-typo3v4mvc mailing list