- OpenX Community Forums

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Invalid Argument Supplied For Foreach() In Openx-2.8.7, MESSAGE: Invalid argument supplied for foreach() TYPE: Warning
krishna
post May 5 2012, 08:17 AM
Post #1


Beginner
*

Group: Members
Posts: 4
Joined: 19-January 11
From: coimbatore
Member No.: 158,131



HI,

Our server protocol is SFTP and openx version is openx-2.8.7

Sometimes we get the error in this page,
MESSAGE: Invalid argument supplied for foreach()
TYPE: Warning
FILE: /home/xxxxxxxxx/www/admin/userlog-index.php
LINE: 250
DEBUG INFO:

245 $aUrlParam['$orderdirection'] = ($orderdirection == 'down') ? "orderdirection=up" : "orderdirection=down";
246
247 $urlParam = implode('&', $aUrlParam);
248
249 // Replace context with translation
250 foreach ($aAuditData as $key => $aValue) {

251 $k = 'str'. str_replace(' ', '', $aValue['context']);
252 if (!empty($GLOBALS[$k])) {
253 $aAuditData[$key]['context'] = $GLOBALS[$k];
254 }
255 }


and
Sometimes we get the below error,

MESSAGE: Invalid argument supplied for foreach()
TYPE: Warning
FILE: /home/xxxxxxx/lib/max/Dal/DataObjects/DB_DataObjectCommon.php
LINE: 909
DEBUG INFO:
904 }
905
906 function _mergeIniFiles($aFiles)
907 {
908 $aResult = array();

909 foreach ($aFiles as $ini)

910 {
911 if (file_exists($ini) && is_file($ini) && is_readable($ini))
912 {
913 $aIni = parse_ini_file($ini, true);
914 $aResult = array_merge($aResult, $aIni);

refreshing the page (F5) sometimes works fine but usually gives the above error message

Anyone have a possible solution for this?

If any one know give me solution soon.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Locations of visitors to this page