thimt8-yii
(Thimt8 Yii)
January 11, 2012, 3:40pm
1
Still can not understand the reason for Yii be recording all the files it processes in the root folder Xampp.
In every execution, all files handled by Yii make a copy empty (zero bytes) in C: \ XAMPP.
Does anyone know what might be happening?
I have other applications running on the same machine and the problem only occurs with Yii.
wisp
(Wisp)
January 16, 2012, 6:48pm
3
Have you checked the log in the runtime folder? By comparing the file creation time with the log entry time, you should be able to see what Yii was trying to do…
thimt8-yii
(Thimt8 Yii)
January 16, 2012, 8:18pm
4
Nothing special in the log.
All processed files are created in the same run. The creation time is the same for everyone.
Jampire
(Jampire Blr)
January 16, 2012, 8:37pm
5
Show all you logs, please.
thimt8-yii
(Thimt8 Yii)
January 16, 2012, 10:50pm
6
I cleared the log, delete all files previously created and then updated a page.
Here the log:
2012/01/16 20:44:01 [trace] [system.CModule] Loading "log" application component
in D:\www\index.php (9)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "request" application component
in D:\www\index.php (9)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "urlManager" application component
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "cache" application component
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.caching.CFileCache] Serving "Yii.CUrlManager.rules" from cache
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.web.filters.CFilterChain] Running filter DashboardController.filterrights()
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "user" application component
in D:\www\protected\modules\rights\components\RightsFilter.php (24)
in D:\www\protected\modules\rights\components\RController.php (36)
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "session" application component
in D:\www\protected\modules\rights\components\RightsFilter.php (24)
in D:\www\protected\modules\rights\components\RController.php (36)
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "widgetFactory" application component
in D:\www\protected\views\layouts\column1.php (1)
in D:\www\protected\controllers\DashboardController.php (7)
in D:\www\protected\modules\rights\components\RController.php (36)
in D:\www\index.php (12)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "assetManager" application component
in D:\www\protected\extensions\mbmenu\MbMenu.php (138)
in D:\www\protected\extensions\mbmenu\MbMenu.php (234)
in D:\www\protected\views\layouts\main.php (132)
in D:\www\protected\views\layouts\column1.php (7)
in D:\www\protected\controllers\DashboardController.php (7)
2012/01/16 20:44:01 [trace] [system.CModule] Loading "clientScript" application component
in D:\www\protected\extensions\mbmenu\MbMenu.php (147)
in D:\www\protected\extensions\mbmenu\MbMenu.php (235)
in D:\www\protected\views\layouts\main.php (132)
in D:\www\protected\views\layouts\column1.php (7)
in D:\www\protected\controllers\DashboardController.php (7)
Files created (probably in that order):
Controle.php
RController.php
RightsFilter.php
TWebUser.php
RWebUser.php
tri
(tri - Tommy Riboe)
January 16, 2012, 11:08pm
7
Just a thought, what will happen if you remove file caching? E.g. swap CFileCache with CDummyCache.
/Tommy
thimt8-yii
(Thimt8 Yii)
January 16, 2012, 11:23pm
8
The files are still being created.
Jampire
(Jampire Blr)
January 17, 2012, 8:37am
9
Can you run your app with xdebug and breakpoints on every step? And then find on witch step the files are created.
sidewinder
(Adam Klosiu)
January 17, 2012, 9:18am
10
My 2 cents. What about publishing assets? Maybe there are some wrongly set paths?
thimt8-yii
(Thimt8 Yii)
January 17, 2012, 11:41am
11
Following the suggestion of Jampire, the files are created in the include() functions of the method autoload() class YiiBase.
I realized then that only included files without full path are created - include(‘RWebUser.php’);
Those that are included with the full path of the files are not created - include(‘D:\www\protected\controllers\DashboardController.php’);
Jampire
(Jampire Blr)
January 17, 2012, 12:59pm
12
It seems that your php.ini file has wrong option for error_log directive.
thimt8-yii
(Thimt8 Yii)
January 17, 2012, 2:56pm
13
phpinfo();
(…)
display_errors On On
display_startup_errors On On
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 22519
(…)