yii-debug-toolbar icon indicating copy to clipboard operation
yii-debug-toolbar copied to clipboard

YiiDebugToolbarPanelSql sqlite exception

Open kachar opened this issue 11 years ago • 0 comments

Sometimes the last panels Sql and ViewsRendering are breaking the stylesheets and some layouts looks different. On the same page the debugbar javascript is not working anymore (panel doesn't open). At first i thought this happens because the views are outside of tag, but it seems that the reason is different.

Actually this behavior is happening because of PHP Warning:

preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 3

/protected/extensions/debug-toolbar/panels/YiiDebugToolbarPanelSql.php(365) This is the actual line:

$matchResult = preg_match_all("/(?[a-z0-9._-:]+)=(?[\d.e-+]+|''|'.+?(?<!)')/ims", $params, $paramsMatched, PREG_SET_ORDER); The layout problem is triggered because of inline styles in yii/framework/views/exception.php.

I'm using sqlite database, maybe this is raising the exception.

kachar avatar Apr 19 '13 12:04 kachar