e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

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

            e107::meta('twitter:image', $metaImg);
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_sent', '', LAN_YES, LAN_NO)."</td>
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_attach', '', LAN_YES, LAN_NO)."</td>
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_74);
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['options']['readParms'] = 'editClass='.e_UC_NOBODY;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Variable $PM_INBOX_FOOTER is undeclared
Open

                $PM_INBOX['end'] = $this->updateTemplate($PM_INBOX_FOOTER);
Severity: Minor
Found in e107_plugins/pm/pm.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('pm', true, 'pm');
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Returning type false but pm_send_notify() is declared to return \none
Open

            return false;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Suspicious array access to nullable ?array
Open

if (varset($_POST['edit']) || varset($_GET['mode'])=='create' && !varset($_POST['submit']))
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $POLL_NOTVOTED_LOOP is undeclared
Open

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

Variable $POLL_DISALLOWED_END is undeclared
Open

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

Variable $ns is undeclared
Open

        $ns->tablerender(LAN_ERROR, RSS_LAN_ERROR_4);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                            $this -> rssItems[$k]['custom'] = $row['custom'];
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Call to method getPageKey from undeclared class \logConsolidate
Open

    $pageName = $logObj->getPageKey(e_REQUEST_URL, false, null, e_LAN);
Severity: Critical
Found in e107_plugins/siteinfo/counter_menu.php by phan

Assigning array<string></string> to property but \social_ui->prefs is array{facebook_comments_limit:array{title:'Limit',type:'number',tab:2,data:'int',help:'Number of comments to display.'},facebook_comments_theme:array{title:'Theme',type:'dropdown',tab:2,writeParms:array{optArray:array{light:'Light',dark:'Dark'}},data:'str',help:''},facebook_comments_loadingtext:array{title:'Text while loading',type:'text',tab:2,data:'str',writeParms:array{placeholder:'Loading...'},help:''},facebook_like_menu_theme:array{title:'Theme',type:'dropdown',tab:3,writeParms:array{optArray:array{light:'Light',dark:'Dark'}},data:'str'},facebook_like_menu_action:array{title:'Action',type:'dropdown',tab:3,writeParms:array{optArray:array{like:'Like',recommend:'Recommend'}},data:'str'},facebook_like_menu_width:array{title:'Width',type:'number',tab:3,data:'int',help:'Width in px'},twitter_menu_theme:array{title:'Theme',type:'dropdown',tab:4,writeParms:array{optArray:array{light:'Light',dark:'Dark'}},data:'str'},twitter_menu_height:array{title:'Height',type:'number',tab:4,data:'int',help:'Height in px'},twitter_menu_limit:array{title:'Limit',type:'number',tab:4,data:'int',help:'Number of tweets to display.'},sharing_mode:array{title:'Display Mode',type:'dropdown',tab:1,writeParms:array{optArray:array{normal:'Normal',dropdown:'Dropdown',off:'Disabled'}},data:'str',help:''},sharing_hashtags:array{title:'Hashtags',type:'tags',tab:1,data:'str',help:'Excluding the # symbol.'},sharing_providers:array{title:'Providers',type:'checkboxes',tab:1,writeParms:array{},data:'str',help:''},xup_login_update_username:array{title:'Update User Display Name',type:'bool',tab:0,writeParms:array{},data:'str',help:''},xup_login_update_avatar:array{title:'Update User Avatar',type:'bool',tab:0,writeParms:array{},data:'str',help:''},og_image:array{title:'Custom Image',type:'image',tab:5,data:'str',help:'og:image'},xurl_rss:array{title:'RSS',type:'bool',tab:'pages',data:'str',help:'Enable to include RSS with Social page icons \x28XURL\x29'}}
Open

                $this->prefs['sharing_providers']['writeParms']['optArray'][$k] = $k;
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Returning type void but logLine() is declared to return \none
Open

                return; 
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Returning type true but processPM() is declared to return \none
Open

        return TRUE;
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Argument 1 (uid) is string but \private_message::canSendTo() takes int defined at /code/e107_plugins/pm/pm_class.php:688
Open

        if(isset($pm_prefs['pm_class']) && check_class($pm_prefs['pm_class']) && $pm->canSendTo($parm['user'])) // check $this->pmPrefs['send_to_class'].
Severity: Minor
Found in e107_plugins/pm/e_shortcode.php by phan

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

    $retrieve_prefs[] = 'pm_prefs';
Severity: Info
Found in e107_plugins/pm/pm.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('pm', true, 'pm');
Severity: Minor
Found in e107_plugins/pm/pm.php by phan
Severity
Category
Status
Source
Language