PHP Error
Description
include( CProfileLogRoute.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
I receive this error with the situation below:
code:
In main.php
(...)
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning, info, profile, trace',
//'categories' => 'profile, actDelProj, dentroFuncaoDelComp',
),
// uncomment the following to show log messages on web pages
array(
'class'=>'CWebLogRoute',
),
array(
'class'=>' CProfileLogRoute',
'report'=>'summary',
),
),
),
(...)
In model
(...)
Yii::beginProfile('dentroFuncaoDelComp');
if($idComponente == 'null')
{
(...)
}
Yii::endProfile('dentroFuncaoDelComp');
(...)
Help, please!!!
mikl
(Mike)
October 26, 2010, 6:07pm
2
If you use APC can you try with this extension disabled?
Edit: Talking about PHP extension, not the CApcCache component in Yii!
If you use APC can you try with this extension disabled?
Edit: Talking about PHP extension, not the CApcCache component in Yii!
php.ini:
this:
extension=php_apc.dll
to this:
;extension=php_apc.dll
restarted xampp and this is came to me:
PHP Error
Description
include( CProfileLogRoute.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
Source File
C:\xampp\htdocs\yii\framework\YiiBase.php(341)
(…)
mikl
(Mike)
October 27, 2010, 7:26am
4
That’s odd. There was a problem with older APC versions that caused the same error. But obviously that’s not your problem.
Did you alter YiiBase.php for some reason? If you check line 341 you’ll see, that this error should not happen, since in line 335 it will search for the class to load in self::$_coreClasses. And CProfileLogRoute is part of the coreClasses (defined in the same file).