Yii writing empty files in the Xampp folder

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.

Anyone can help?

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…

Nothing special in the log.

All processed files are created in the same run. The creation time is the same for everyone.

Show all you logs, please.

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

Just a thought, what will happen if you remove file caching? E.g. swap CFileCache with CDummyCache.

/Tommy

The files are still being created.

Can you run your app with xdebug and breakpoints on every step? And then find on witch step the files are created.

My 2 cents. What about publishing assets? Maybe there are some wrongly set paths?

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’);

It seems that your php.ini file has wrong option for error_log directive.

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

(…)