Created
March 22, 2017 16:01
-
-
Save dodds-cc/ac98924e2be20d1c647070daeffb527d to your computer and use it in GitHub Desktop.
Error example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/share/music-web/app/src/BBC/Music/Controllers/ErrorController.php:52: | |
object(Symfony\Component\Debug\Exception\ContextErrorException)[1625] | |
private 'context' => | |
array (size=3) | |
'titleOrArray' => | |
array (size=2) | |
0 => string 'A Song for Guy's playlist - Playlists - BBC Music' (length=49) | |
1 => string 'BBC Music' (length=9) | |
'musicNavOptionsArray' => null | |
'title' => string 'A Song for Guy's playlist - Playlists - BBC Music - BBC Music' (length=61) | |
protected 'message' => string 'Warning: Invalid argument supplied for foreach()' (length=48) | |
private 'string' (Exception) => string '' (length=0) | |
protected 'code' => int 0 | |
protected 'file' => string '/usr/share/music-web/app/src/BBC/Music/Controllers/BaseController.php' (length=69) | |
protected 'line' => int 91 | |
private 'trace' (Exception) => | |
array (size=7) | |
0 => | |
array (size=6) | |
'file' => string '/usr/share/music-web/app/src/BBC/Music/Controllers/PlaylistsController.php' (length=74) | |
'line' => int 309 | |
'function' => string 'setPageHeader' (length=13) | |
'class' => string 'BBC\Music\Controllers\BaseController' (length=36) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=2) | |
... | |
1 => | |
array (size=4) | |
'function' => string 'playlistAction' (length=14) | |
'class' => string 'BBC\Music\Controllers\PlaylistsController' (length=41) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=1) | |
... | |
2 => | |
array (size=4) | |
'file' => string '/usr/share/music-web/vendor/symfony/http-kernel/HttpKernel.php' (length=62) | |
'line' => int 153 | |
'function' => string 'call_user_func_array' (length=20) | |
'args' => | |
array (size=2) | |
... | |
3 => | |
array (size=6) | |
'file' => string '/usr/share/music-web/vendor/symfony/http-kernel/HttpKernel.php' (length=62) | |
'line' => int 68 | |
'function' => string 'handleRaw' (length=9) | |
'class' => string 'Symfony\Component\HttpKernel\HttpKernel' (length=39) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=2) | |
... | |
4 => | |
array (size=6) | |
'file' => string '/usr/share/music-web/vendor/silex/silex/src/Silex/Application.php' (length=65) | |
'line' => int 496 | |
'function' => string 'handle' (length=6) | |
'class' => string 'Symfony\Component\HttpKernel\HttpKernel' (length=39) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=3) | |
... | |
5 => | |
array (size=6) | |
'file' => string '/usr/share/music-web/vendor/silex/silex/src/Silex/Application.php' (length=65) | |
'line' => int 477 | |
'function' => string 'handle' (length=6) | |
'class' => string 'Silex\Application' (length=17) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=1) | |
... | |
6 => | |
array (size=6) | |
'file' => string '/usr/share/music-web/web/index.php' (length=34) | |
'line' => int 37 | |
'function' => string 'run' (length=3) | |
'class' => string 'Silex\Application' (length=17) | |
'type' => string '->' (length=2) | |
'args' => | |
array (size=0) | |
... | |
private 'previous' (Exception) => null | |
protected 'severity' => int 2 | |
public 'xdebug_message' => string '<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Symfony\Component\Debug\Exception\ContextErrorException: Warning: Invalid argument supplied for foreach() in /usr/share/music-web/app/src/BBC/Music/Controllers/BaseController.php on line <i>91</i></th></tr> | |
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> | |
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><'... (length=3933) | |
Whoops, looks like something went wrong. | |
1/1 | |
FatalThrowableError in ErrorController.php line 52: | |
Type error: Return value of BBC\Music\Controllers\ErrorController::errorAction() must be of the type string, null returned | |
in ErrorController.php line 52 | |
at ErrorController->errorAction(object(Application), object(ContextErrorException), object(Request), 500) in bootstrap.php line 80 | |
at {closure}(object(ContextErrorException), object(Request), 500) | |
at call_user_func(object(Closure), object(ContextErrorException), object(Request), 500) in ExceptionListenerWrapper.php line 53 | |
at ExceptionListenerWrapper->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher)) | |
at call_user_func(object(ExceptionListenerWrapper), object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher)) in WrappedListener.php line 106 | |
at WrappedListener->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(EventDispatcher)) | |
at call_user_func(object(WrappedListener), object(GetResponseForExceptionEvent), 'kernel.exception', object(EventDispatcher)) in EventDispatcher.php line 173 | |
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(GetResponseForExceptionEvent)) in EventDispatcher.php line 43 | |
at EventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent)) in TraceableEventDispatcher.php line 136 | |
at TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent)) in HttpKernel.php line 230 | |
at HttpKernel->handleException(object(ContextErrorException), object(Request), 1) in HttpKernel.php line 79 | |
at HttpKernel->handle(object(Request), 1, true) in Application.php line 496 | |
at Application->handle(object(Request)) in Application.php line 477 | |
at Application->run() in index.php line 37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment