e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Reference to instance property api2 from undeclared class \cpanelAPI
Open

        $remote_hosts = $cPanel->api2->MysqlFE->gethosts()->{'cpanelresult'}->{'data'};

Reference to instance property uapi from undeclared class \cpanelAPI
Open

            $cPanel->uapi->Mysql->add_host(['host' => '%']);

Invalid offset "title" of array type array{link:array|mixed|string|string[]}
Open

                    $vars['FEEDTITLE']          = "<a href='".$rss['channel']['link']."' rel='external'>".vartrue($rss['channel']['title'])."</a>";

Call to undeclared method \e_db::db_getList
Open

            $nlArray = $sql->db_getList();
Severity: Critical
Found in e107_plugins/newsletter/admin_config.php by phan

Variable $letter was undeclared, but array fields are being added to it.
Open

        $letter['newsletter_title']        = $tp->toDB($_POST['newsletter_title']);

Returning type false but selectInit() is declared to return int
Open

        if (!($sql->gen($qry))) return FALSE;
Severity: Minor
Found in e107_plugins/newsletter/e_mailout.php by phan

Default value for string $selectVals can't be false
Open

    public function showSelect($allow_edit = FALSE, $selectVals = FALSE)
Severity: Minor
Found in e107_plugins/newsletter/e_mailout.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

$online_shortcodes = e107::getScBatch('online', true);
Severity: Minor
Found in e107_plugins/online/lastseen_menu.php by phan

Assigning array{oid:mixed,oname:mixed,page:null,pinfo:null,oimage:mixed} to property but \online_shortcodes->currentMember is array{oid:'0',oname:'??',page:'lost'}
Open

                $this->currentMember =  array('oid'    => $row['user_id'], 'oname'=> $row['user_name'], 'page' => null, 'pinfo' => null,'oimage' => $row['user_image']    );

Call to method get on non-class type array{}
Open

        return intval($this->memberInfo->get('most_members_online') + $this->memberInfo->get('most_guests_online'));
Severity: Critical
Found in e107_plugins/online/online_shortcodes.php by phan

Returning type null but sc_book_chapters() is declared to return string
Open

                    return null;
Severity: Minor
Found in e107_plugins/page/e_shortcode.php by phan

Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
Open

if(!$data = $sql->retrieve("SELECT * FROM #page WHERE page_class IN (".USERCLASS_LIST.") AND FIND_IN_SET('panel', page_template) LIMIT 3", true))
Severity: Minor
Found in e107_plugins/page/page_menu.php by phan

Argument 1 (str) is int but \md5() takes string
Open

            $pmInfo = array ( 'numsent' => '1', 'pm_to' => USERID, 'pm_sent'=>time(), 'pm_userclass' => false, 'pm_subject' => 'Test Subject Random:'.md5(time()), 'pm_message' => 'Test Message '.md5(time()), 'postpm' => 'Send Private Message', 'keyword' => NULL,
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Assigning array<string></string> to property but \private_msg_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},pm_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_from:array{title:'From',type:'method',noedit:true,data:'int',filter:true,width:'5%%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_to:array{title:'To',type:'user',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_sent:array{title:'Date',type:'datestamp',data:'int',width:'15%',help:'',readParms:array{},writeParms:'auto=1&readonly=1',class:'center',thclass:'center'},pm_subject:array{title:'Subject',type:'text',data:'str',width:'15%',help:'',readParms:array{},writeParms:array{size:'xlarge'},class:'left',thclass:'left'},pm_text:array{title:'Message',type:'bbarea',data:'str',width:'40%',help:'',readParms:'expand=1&truncate=50',writeParms:'rows=5&size=block&cols=80',class:'left',thclass:'left'},pm_read:array{title:'Read',type:'boolean',noedit:1,data:'int',batch:true,filter:true,width:'5%',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_sent_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_read_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_attachments:array{title:'Attachment',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_option:array{title:'Option',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_size:array{title:'Size',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                    $this->fields['pm_to']['writeParms']['default'] = intval($_GET['to']);
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Method \pm_cron::logLine is declared to return \none but has no return value
Open

    function logLine($logText, $closeAfter = FALSE, $addTimeDate = FALSE)
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Variable $tp is undeclared
Open

        $action = $tp->filter($_GET['mode']);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Variable $PM_OUTBOX_TABLE is undeclared
Open

                $PM_OUTBOX['item'] = $this->updateTemplate($PM_OUTBOX_TABLE);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Variable $PM_BLOCKED_FOOTER is undeclared
Open

                $PM_BLOCKED['end'] = $this->updateTemplate($PM_BLOCKED_FOOTER);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Argument 2 (replace) is 0 but \str_replace() takes array|string
Open

        $results[E_MESSAGE_SUCCESS][$start] = str_replace('[x]', $cnt, ADLAN_PM_74);
Severity: Minor
Found in e107_plugins/pm/pm_conf.php by phan

Variable $PM_WRAPPER was undeclared, but array fields are being added to it.
Open

$PM_WRAPPER['PM_ATTACHMENT_ICON']= " {---}";
Severity
Category
Status
Source
Language