Commit Graph

52 Commits

Author SHA1 Message Date
Alexander Makarov
705dae9964 Fixes #14052: Fixed processing parse errors on PHP 7 since these are instances of \ParseError 2017-04-26 12:56:54 +03:00
Michael Härtl
6792099bcc Fixes #13689: Fixed handling of errors in closures 2017-04-26 03:34:25 +03:00
Carsten Brandt
5bbf372f85 cleanup some phpdoc 2017-04-04 10:33:30 +02:00
Nikolay Oleynikov
ea75068a92 Fixes #13813: Fixed PHP 7 compatibiltiy by adding support for passing instances of Error to the yii\web\Response::setStatusCodeByException() 2017-03-23 01:20:42 +03:00
Alexander Makarov
bc59d5da85 Fixes #13707: Fixed \yii\web\ErrorHandler and \yii\web\ErrorAction not setting correct response code to response object before rendering error view 2017-03-16 12:03:23 +03:00
Alexander Makarov
a6d266405d Fixes #13671: Fixed error handler trace to work correctly with XDebug 2017-03-06 15:24:18 +03:00
Alexander Makarov
97171a0db7 Fixes #13401: Fixed lack of escaping of request dump at exception screens 2017-01-18 01:05:50 +03:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Alexander Makarov
bea7c63664 And another leftover
No pushes to master today anymore. Need more sleep :(
2016-11-02 14:17:56 +03:00
Alexander Makarov
3d9945958d Removed accidentally committed leftovers 2016-11-02 14:13:49 +03:00
Alexander Makarov
dd71fa3958 Fixes #4113: Error page stacktrace was generating links to private methods which are not part of the API docs 2016-11-02 13:42:11 +03:00
SilverFire - Dmitry Naumenko
eb02b362be Revert "Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility"
This reverts commit f7bd7c2b6b.
2016-09-07 11:33:57 +03:00
SilverFire - Dmitry Naumenko
f7bd7c2b6b Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility 2016-09-06 22:50:00 +03:00
Roman Grinyov
b54ef3f9e3 Typos in docblock of $errorAction (#12250) [skip ci] 2016-08-22 16:38:58 +03:00
Alexander Makarov
c7d5e69cda Eliminated unused variables 2016-07-29 23:06:38 +03:00
Carsten Brandt
55b858df6d use already existing error string
this one is already available and translated to some languages.
2016-04-28 02:53:39 +02:00
Arzamastsev Mikhail
59ed5e18d6 ErrorHandler HttpException message translation (#11303) 2016-04-07 19:26:25 +03:00
Carsten Brandt
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
SilverFire - Dmitry Naumenko
7ac2bc13f7 Overrides c651dbb7. yii\web\ErrorHandler::loggableGlobals renamed to displayVars 2015-11-22 17:47:48 +02:00
SilverFire - Dmitry Naumenko
c651dbb798 Added yii\web\ErrorHandler::loggableGlobals, removed $_ENV and $_SERVER from dumping by default 2015-11-22 17:14:16 +02:00
SilverFire - Dima Naumenko
ac7b0ef6ff ErrorHandler - hardcoded UTF-8 in mb_* functions
As `Yii::$app` may be not initialized on the moment of error,
decided to hardcode UTF-8.

PR  #10169
2015-11-17 14:18:26 +02:00
SilverFire - Dima Naumenko
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
Alexander Makarov
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
nainoon
3a313ac652 Fixes #9874: Fixed outputting exception stacktrace in non-debug mode when Response::FORMAT_RAW is used 2015-10-09 23:41:15 +03:00
jeicd
c2f83da8d8 Fix phpdoc 2015-10-05 15:00:13 +06:00
Alexander Makarov
9a87271abf Fixed missing stacktrace items on PHP syntax errors of "unexpected end of file" type 2015-07-30 16:30:36 +03:00
Carsten Brandt
5d3532c649 fixed endless error loop in error handler
this happended when `stream` was set on the response but the stream resouce was invalid
either because it was already sent or became invalid for some other cases.

fixes #9046
2015-07-08 20:30:26 +02:00
Ezekiel Fernandez
d0c01dc9ba CodeStyle fix
close #7614
2015-03-07 00:41:20 +01:00
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
Brandon Kelly
cf0d582a0b Added yii\web\ErrorHandler::getTypeUrl()
Makes it possible for classes that extend yii\web\ErrorHandler to provide their own informational URLs for types/classes/methods.
2015-01-24 11:56:09 +03:00
Qiang Xue
865a94f321 Fixes #4739: Better display of exceptions when the response format is set as "raw" format 2014-11-16 10:20:37 -05:00
Qiang Xue
880a305ee4 Fixes #5452: Errors occurring after the response is sent are not displayed 2014-11-07 11:30:25 -05:00
Alexander Makarov
355c26df8b Fixes #4188: API exceptions are now exposing less data when YII_DEBUG is false
- If exception is internal it's always returned as HTTP 500 general purpose one.
- Type isn't exposed anymore.
2014-08-27 00:50:02 +04:00
Qiang Xue
88d38b7820 Fixes #4501: Renamed the constant YII_PATH to YII2_PATH 2014-08-14 22:17:05 -04:00
Qiang Xue
9c4d4715dd guide WIP [skip ci] 2014-07-03 08:33:09 -04:00
Carsten Brandt
a28589203f do not show debug info for UserException 2014-06-24 10:21:55 +02:00
Carsten Brandt
f12316f2e8 file and line information missing from error array representation 2014-06-24 10:18:57 +02:00
Sergey Gonimar
9b31870286 Fix ErrorHandler 2014-05-28 12:34:05 +06:00
Carsten Brandt
ee2b968b7f fixed argument display in errorHandler 2014-05-25 20:30:26 +02:00
Klimov Paul
1641e057a9 VarDumper::export() applied over framework. 2014-05-20 16:35:12 +03:00
Carsten Brandt
7511de6cab added errorInfo to exception views 2014-05-12 13:31:33 +02:00
Alexander Makarov
340278b59c Fixes #3183: fixed regression after #3175 2014-04-30 01:31:11 +04:00
Alexander Makarov
178417da9b Added title for trimmed strings 2014-04-18 12:44:39 +04:00
Alexander Makarov
dad88c78b4 Fixes #2837: Error page now shows arguments in stack trace method calls 2014-04-18 04:20:22 +04:00
Qiang Xue
055455d814 updated error handler and requirement checker links. 2014-04-10 00:05:05 -04:00
Carsten Brandt
f6ce9ead97 removed unnecessary static var 2014-03-30 12:38:13 +02:00
Carsten Brandt
a4b6fb263d handle Exceptions in application init() 2014-03-30 01:27:18 +01:00
Carsten Brandt
89f6a00147 created console errorHandler 2014-03-30 01:04:43 +01:00
Carsten Brandt
c93231e26b improved session error handling
fixes #1946
2014-03-29 23:54:26 +01:00