too many warnings from cfield _mgr.class.php

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

too many warnings from cfield _mgr.class.php

Post by aostad »

Hi All,
I get a lot of warning in testlink log file like this:
E_WARNING
Invalid argument supplied for foreach() - in C:\inetpub\wwwroot\testlink195\lib\functions\cfield_mgr.class.php - Line 28
[<<][50f88c30b43b4922345311][DEFAULT][/testlink195/lib/general/staticPage.php][13/Jan/17 23:41:36][13/Jan/17 23:41:37][took 0.620645 secs]
[>>][50f88c315a2b5881532714][DEFAULT][/testlink195/lib/general/staticPage.php][13/Jan/17 23:41:37]
[<<][50f88c315a2b5881532714][DEFAULT][/testlink195/lib/general/staticPage.php][13/Jan/17 23:41:37][13/Jan/17 23:41:37][took 0.02441 secs]
[13/Jan/17 23:41:37][WARNING][<nosession>][GUI]

Here is the code that warning pointing to:
// Copied from mantis, allow load of user custom implementations
// some sort of poor's man plugin
$cf_files=glob( TL_ABS_PATH . "custom/cf_*.php");
if( count($cf_files) > 0 )
{

foreach($cf_files as $inc) //This is line 28 that mentioned in warning message
{
require_once($inc);
}
}



This warning causes the log file grows fast.

Thanks.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: too many warnings from cfield _mgr.class.php

Post by fman »

Do not know if depedens of configuration of ERROR LOG on php.ini, but I've just downloaded Bitnami VM for 1.9.5 (ubuntu with MySQL)

1. create test project
2. create CF for Test Case usable on design time
3. create test suite
4. create test case

only message I've got on TL event viewer is regarding
E_NOTICE Undefined index: filter_active_inactive - in /opt/bitnami/apps/testlink/htdocs/gui/templates_c/%%31^31A^31A35F5F%%inc_filter_panel.tpl.php - Line 229

is right that this has the same effect of create lots of inputs on transaction and events table.
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: too many warnings from cfield _mgr.class.php

Post by aostad »

In addition to that I get following warnings and notices. They cause the log file grows drastically. Actually that helped us detect "Clean" functionality of Event viewer during query of over 36,000 events.

Is there any solution for this?

E_WARNING is_readable(): open_basedir restriction in effect. File(C:\php\pear\plugins\modifier.json_encode.php) is not within the allowed path(s): (C:\inetpub\wwwroot) - in C:\inetpub\wwwroot\testlink\third_party\smarty\libs\internals\core.get_include_path.php - Line 34

E_NOTICE Undefined index: can_delete_execution - in C:\inetpub\wwwroot\testlink\gui\templates_c\%%8E^8EC^8ECF17FA%%inc_exec_show_tc_exec.tpl.php - Line 398

E_NOTICE Undefined index: can_delete_execution - in C:\inetpub\wwwroot\testlink\gui\templates_c\%%8E^8EC^8ECF17FA%%inc_exec_show_tc_exec.tpl.php - Line 398

E_NOTICE Undefined index: all - in C:\inetpub\wwwroot\testlink\lib\functions\tlTestCaseFilterControl.class.php - Line 1833

E_NOTICE Undefined index: all - in C:\inetpub\wwwroot\testlink\lib\functions\exec.inc.php - Line 34

E_NOTICE Undefined index: all - in C:\inetpub\wwwroot\testlink\lib\functions\execTreeMenu.inc.php - Line 228

E_NOTICE Undefined index: filter_active_inactive - in C:\inetpub\wwwroot\testlink\gui\templates_c\%%31^31A^31A35F5F%%inc_filter_panel.tpl.php - Line 229
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: too many warnings from cfield _mgr.class.php

Post by aostad »

I don't know why I get this notice. PHP is installed in "c:\program files (x86)/PHP/V5.3" and there is no "Pear" sub-directory:

E_WARNING is_readable(): open_basedir restriction in effect. File(C:\php\pear\plugins\modifier.json_encode.php) is not within the allowed path(s): (C:\inetpub\wwwroot) - in C:\inetpub\wwwroot\testlink\third_party\smarty\libs\internals\core.get_include_path.php - Line 34
Post Reply