e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Variable $POLL_DISALLOWED_LOOP is undeclared
Open

            $template['denied']['item'] = $POLL_DISALLOWED_LOOP ;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

$comments_return['poll'] = "po.poll_id, po.poll_title";

Call to method getCode from undeclared class \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Open

                e107::getMessage()->addError("[{$e->getCode()}] {$e->getMessage()}");
Severity: Critical
Found in e107_plugins/social/admin_config.php by phan

Argument 2 (fname) is false but \e107::lan() takes string defined at /code/e107_handlers/e107_class.php:3987
Open

e107::lan('social',false, true);
Severity: Minor
Found in e107_plugins/social/e_comment.php by phan

Argument 3 (default) is false but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

        if($ogImage = e107::pref('social', 'og_image', false))
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Reference to undeclared property \private_msg_ui->sql
Open

                    $results[E_MESSAGE_ERROR][$start] = str_replace(array('[y]', '[z]'), array($this->sql->getLastErrorNum, $this->sql->getLastErrorText), ADLAN_PM_70);
Severity: Minor
Found in e107_plugins/pm/admin_config.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_73);
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'] = 99999999;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender($caption, $pm->breadcrumb(LAN_PLUGIN_PM_OUTBOX) . $mes->render() . $pm->show_outbox($pm_proc_id), 'PM');
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Call to deprecated function \show_admin_menu() defined at /code/e107_admin/boot.php:354
Open

    show_admin_menu(ADLAN_PM_12, $action, $var);
Severity: Minor
Found in e107_plugins/pm/pm_conf.php by phan

Invalid offset "user_name" of array type array{}
Open

                $ret = "<a href='".$url->create('user/profile/view', array('id' => $this->pmBlocked['pm_block_from'], 'name' => $this->pmBlocked['user_name']))."'>{$this->pmBlocked['user_name']}</a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

$PM_MENU_WRAPPER['PM_SEND_PM_LINK']= "<a class='btn btn-sm btn-mini btn-xs btn-primary' href='{---}'>".LAN_PLUGIN_PM_NEW."</a>";

Argument 6 (year) is string|string[] but \mktime() takes int
Open

        $active_end        = (!$_POST['endmonth'] || !$_POST['endday'] || !$_POST['endyear'] ? 0 : mktime (0, 0, 0, $_POST['endmonth'], $_POST['endday'], $_POST['endyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

    $sc = e107::getScBatch('rss_menu', true);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                        if($row['media'])
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Argument 4 (options) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

                <atom:link href=\"".$tp->toRss(e107::url('rss_menu','atom', array('rss_url'=>$this->contentType, 'rss_topicid'=>$this->topicid),'full'))."\" rel=\"self\" type=\"application/rss+xml\" />\n";
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Assigning array<string></string> to property but \social_adminarea->adminMenu is array{main/pages:array{caption:'Pages',perm:'P'},main/configure:array{caption:'Configured Login Providers',perm:'P'},main/add:array{caption:'Add New Provider',perm:'P'},main/unsupported:array{caption:'Broken Configured Providers',perm:'P'},main/prefs:array{caption:'Preferences',perm:'P'}}
Open

            $this->adminMenu['main/unsupported']['badge'] = array('value' => count($unsupported_providers), 'type'=>'warning');
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Argument 1 (id) is null but \e_render::setUniqueId() takes string defined at /code/e107_handlers/e_render_class.php:212
Open

        $ns->setUniqueId(null);
Severity: Minor
Found in e107_plugins/news/news_months_menu.php by phan

Reference to instance property channel from undeclared class \MagpieRSS
Open

                            $newsfeed_des = $tp -> toDB($rss->channel['description']);

Variable $caption is undeclared
Open

        $ns->tablerender($caption, $mes->render() . $text);
Severity
Category
Status
Source
Language