Search code examples
phpcentospostfix-mta

Undefined offset: 0 in mail_queue.php | CentOS Web Panel


I am using Postfix. The mails are being sent and received properly but I am getting below PHP notice on CentOS Web Panel's mail queue page:

Notice: Undefined offset: 0 in /usr/local/cwpsrv/htdocs/resources/admin/modules/mail_queue.php on line 0

Notice: Undefined offset: 0 in /usr/local/cwpsrv/htdocs/resources/admin/modules/mail_queue.php on line 0

Below is the content of /usr/local/cwpsrv/htdocs/resources/admin/modules/mail_queue.php:

<?php //003ed
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('No Loader is installed. Please contact support.');exit(199);
?>
some encryption key here

How can I resolve this?


Solution

  • So, sendmail was causing the issue in my case. Someone from CWP support fixed it by uninstalling it.