Missing Files for inclusion tls.inc.php, ssl.inc.php etc.

Submitted by typomaniac on 2012-02-21

Hello,

in my event log there are lots of events with missing files which i do not understand because i do not even find them in the downloaded package. The system tells that it is missing:

PHP Warning: include_once(/customers/mydomain.com/pages/directory1/issues/all issues.inc.php): failed to open stream: No such file or directory in /customers/mydomain.com/pages/directory1/issues/system/bootstrap.inc.php on line 85

	PHP Warning: include_once(): Failed opening '/customers/mydomain.com/pages/directory1/issues/1 / 1,000.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /customers/mydomain.com/pages/directory1/issues/system/bootstrap.inc.php on line 85

PHP Warning: include_once(): Failed opening '/customers/mydomain.com/pages/directory1/issues/none.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /customers/mydomain.com/pages/directory1/issues/system/bootstrap.inc.php on line 85

	PHP Warning: include_once(/customers/mydomain.com/pages/directory1/issues/ssl.inc.php): failed to open stream: No such file or directory in /customers/mydomain.com/pages/directory1/issues/system/bootstrap.inc.php on line 85

PHP Warning: include_once(): Failed opening '/customers/mydomain.com/pages/directory1/issues/ssl.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /customers/mydomain.com/pages/directory1/issues/system/bootstrap.inc.php on line 85

and so on. The files seem to change all the time?

thank you very much,

tm

I think I found the reason - it's a strange bug in PHP.

Please open system/web/form.inc.php and change line 446 from this:

if ( is_array( $itemValue ) || is_a( $itemValue, 'Iterator' ) ) {

to this:

if ( is_array( $itemValue ) || is_object( $itemValue ) && is_a( $itemValue, 'Iterator' ) ) {

Regards,
Michał