e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Reference to undeclared constant \ADMIN_DELETE_ICON
Open

                    <button class='btn btn-default btn-secondary btn-large action delete' type='submit' name='delete[$poll_id]' value='del' onclick=\"return jsconfirm(".$tp->toAttribute($tp->toJSON(LAN_CONFIRMDEL." [".$poll_id."]")).") \" title='".LAN_DELETE."' >".ADMIN_DELETE_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

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

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

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

                    return null; // todo?
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Argument 2 (value) is 1 but \e_admin_form_ui::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

            ".$frm->button('save_social_pages',1,'submit',LAN_SAVE)."
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Argument 3 (target) is null but \e_form::open() takes string defined at /code/e107_handlers/form_handler.php:153
Open

            $ret =  $frm->open('social','post',null, 'class=form-horizontal').$text;
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Catching undeclared class \Hybridauth\Exception\UnexpectedValueException (Did you mean class \UnexpectedValueException)
Open

            catch (\Hybridauth\Exception\UnexpectedValueException $ignored)
Severity: Critical
Found in e107_plugins/social/admin_config.php by phan

Call to undeclared method \e_shortcode::getShareUrl
Open

            $shareURL = $soc->getShareUrl($key, $row['url'], $data, $options);
Severity: Critical
Found in e107_plugins/social/e_admin.php by phan

Argument 1 (name) is 'og:title' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:title', $title); // will only populate if not already defined.
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 1 (name) is 'og:image' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:image', $metaImg);
Severity: Minor
Found in e107_plugins/social/e_event.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/twitter_menu.php by phan

Assigning array<string></string> to property but \private_msg_ui->prefs is array{title:array{title:'Plugin Title',tab:0,type:'text',data:'str',help:''},pm_class:array{title:'Restrict PM use to',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},sendall_class:array{title:'Allow sending to all members',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},send_to_class:array{title:'Users may only send messages to users in this class',tab:0,type:'method',data:'str',help:''},vip_class:array{title:'VIP Class',tab:0,type:'userclass',data:'int',help:'Users in this class can only receive messages from others in this class. Overrides the above preference.',writeParms:array{size:'xlarge',classlist:'nobody,main,admin,classes'}},multi_class:array{title:'Userclass which may send to more than one user at a time',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},opt_userclass:array{title:'Userclass which may to send to entire userclasses',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},animate:array{title:'Show new PM animation',tab:1,type:'boolean',data:'str',help:''},read_timeout:array{title:'READ message timeout \x28days\x29',tab:1,type:'number',data:'int',help:''},unread_timeout:array{title:'UNREAD message timeout \x28days\x29',tab:1,type:'number',data:'int',help:''},popup:array{title:'Popup notification on new PM',tab:1,type:'boolean',data:'int',help:''},popup_delay:array{title:'Popup delay timeout',tab:1,type:'number',data:'int',help:'',writeParms:array{post:'seconds',tdClassRight:'form-inline'}},notify_class:array{title:'Enable PM email notifications',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},receipt_class:array{title:'Allow user to request read receipt email notifications',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},attach_class:array{title:'Userclass which may include attachments',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},attach_size:array{title:'Maximum attachment size',tab:1,type:'number',data:'int',help:'',writeParms:'tdClassRight=form-inline&post=Kb'},pm_max_send:array{title:'Maximum number of PMs to send immediately',tab:1,type:'number',data:'int',help:''},perpage:array{title:'Number of PMs to show per page',tab:0,type:'number',data:'int',help:''},maxlength:array{title:'Maximum message length',tab:1,type:'number',data:'int',help:'0 = unlimited',writeParms:array{post:'chars.'}}}
Open

                $this->prefs['notify_class']['writeParms']['post']= e107::getForm()->button('testNotify', 1, 'primary', ADLAN_PM_91);
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_from']['nolist'] = true;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 5 (day) is string but \mktime() takes int
Open

        $this->startTime = mktime(0, 0, 0, date('n'), date('d'), date('Y'));    // Date for start processing
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

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

        $urlInbox = e107::url('pm','index','', array('query'=>array('mode'=>'inbox')));
Severity: Minor
Found in e107_plugins/pm/e_shortcode.php by phan

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

            if(varset($this->pmPrefs['pm_limits'],0) > 0)
Severity: Minor
Found in e107_plugins/pm/pm_func.php by phan

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

                $pm_info['inbox']['limit_val'] = ($this->pmPrefs['pm_limits'] == 1 ? varset($pm_info['inbox']['total'],'') : varset($pm_info['inbox']['size'],''));
Severity: Minor
Found in e107_plugins/pm/pm_func.php by phan

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

$PM_TEMPLATE['send'] = "<div id='pm-send-pm'>

Suspicious array access to nullable ?array
Open

        if($_POST['edit'])
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_id is undeclared
Open

                    <button class='btn btn-default btn-secondary btn-large' type='submit' name='edit[{$poll_id}]' value='edit' alt='".LAN_EDIT."' title='".LAN_EDIT."' >".ADMIN_EDIT_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Argument 4 (mon) is string|string[] but \mktime() takes int
Open

        $active_start    = (!$_POST['startmonth'] || !$_POST['startday'] || !$_POST['startyear'] ? 0 : mktime (0, 0, 0, $_POST['startmonth'], $_POST['startday'], $_POST['startyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan
Severity
Category
Status
Source
Language