-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Class 'COutputProcessor' not found in [path] #2021
Comments
This is a problem with your code. As the error states, you have to add Can you post a stack trace for |
yes of course, but the problem is different than only a misplaced $event argument to be acomplished to the required declaration for onBeforeValidate. |
I am not sure what is going on in your code, but if you have error_reporing set dependant on YII_DEBUG the one or the other error might occur. Can you please post the stacktrace for COutputProcessor?
|
helo @cebe, please give me this weekend to review, i'll send a full feed back about. (i think it is possible that it is a php bug, not yii) |
@christiansalazar any news about it? |
Closed as no feedback given for 7 month. |
Отправлено с моего HTC ----- Reply message ----- — |
Using Yii 12 or 13 this error is present when you create an event "onBeforeValidate()" event in a CActiveRecord and when the DEBUG flag is FALSE. to reproduce:
case 2.1
public function onBeforeValidate()
OR case 2.2
public function onBeforeValidate(CModelEvent $event)
(both will produce the error)
Fatal error: Class 'COutputProcessor' not found in [path]
5 the error changes to:
"Declaration of Docs::onBeforeValidate() should be compatible with CModel::onBeforeValidate($event)"
The text was updated successfully, but these errors were encountered: