e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Method \bootstrap3_admintheme::tablestyle is declared to return mixed but has no return value
Open

    public function tablestyle($caption, $text, $mode='', $data=array())
Severity: Minor
Found in e107_themes/bootstrap3/admin_theme.php by phan

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

        e107::meta('viewport',"width=device-width, initial-scale=1.0");
Severity: Minor
Found in e107_themes/bootstrap3/theme.php by phan

Method \theme,1::init is declared to return mixed but has no return value
Open

        public function init()
Severity: Minor
Found in e107_themes/bootstrap5/theme.php by phan

Call to undeclared method \e_shortcode::sc_news_comment_count
Open

                $ret = $sc->sc_news_comment_count();

Class \theme_shortcodes defined at /code/e107_themes/voux/theme_shortcodes.php:14 was previously defined as Class \theme_shortcodes at /code/e107_themes/bootstrap3/theme_shortcodes.php:14
Open

class theme_shortcodes extends e_shortcode
Severity: Minor
Found in e107_themes/voux/theme_shortcodes.php by phan

When fetching an array index from a value of type bool|string, found an array index of type 'password', but expected the index to be of type int
Open

        $newpw = $pwdArray['password'];
Severity: Minor
Found in fpw.php by phan

Invalid offset "user_name" of array type array{expires:string,user_password_hash:string,user_password:string,activation_code:''|string,user_loginname:mixed,password_action:'User clicked on password reset link'}|array{user_email:,expires:string,user_password_hash:string,user_password:string,activation_code:''|string,user_loginname:mixed,password_action:'User clicked on password reset link'}
Open

        $admin_log->user_audit(USER_AUDIT_PW_RES,$do_log,0,$do_log['user_name']);
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        $sql->insert('tmp', $insertQry);
Severity: Minor
Found in fpw.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if ((USER || e_LOGIN != e_SELF || (empty($pref['user_reg']) && !e107::getUserProvider()->isSocialLoginEnabled())) && e_QUERY !== 'preview' && !getperms('0') ) // Disable page if user logged in, or some custom e_LOGIN value is used.
Severity: Minor
Found in login.php by phan

Variable $sql is undeclared
Open

                $sql->gen($qry);
Severity: Minor
Found in online.php by phan

Variable $textstring was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $textstring .= $tp->parseTemplate($ONLINE_TABLE, true, $scArray); // preg_replace("/\{(.*?)\}/e", '$\1', $ONLINE_TABLE);
Severity: Info
Found in online.php by phan

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

        $this->batch     = e107::getScBatch('page',null,'cpage');
Severity: Minor
Found in page.php by phan

Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:image',$mimg);
Severity: Minor
Found in page.php by phan

Variable $pref is undeclared
Open

if (!check_class($pref['search_restrict'])) 
Severity: Minor
Found in search.php by phan

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

  if ($search_prefs['selector'] == 1) 
Severity: Minor
Found in search.php by phan

Invalid offset "user_name" of array type array{user_ban:0}|array{user_ban:2}|array{user_ip:string}|array{user_join:int}|array{user_password:bool|string}|array{user_prefs:array|string}|array{user_sess:string}
Open

        if(!vartrue($allData['data']['user_name']))
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

        $scArray['ONLINE_TABLE_ICON'] = (vartrue($pref['plug_installed']['pm']) && $oid != USERID ? $tp->parseTemplate("{SENDPM={$oid}}", 'sendpm.sc') : "<img src='" . e_PLUGIN . "online_extended_menu/images/user.png' alt='' style='vertical-align:middle' />");
Severity: Minor
Found in online.php by phan

Invalid offset "chapter_parent" of array type array{book_id:int}|array{book_sef:}|null
Open

        $row['book_name']             = $this->getName($row['chapter_parent']);
Severity: Minor
Found in page.php by phan

Assigning array<string>|array<string>|array<string></string></string></string> to property but \pageClass->page is array<string></string>
Open

        $this->page['comments']         = $comments;
Severity: Minor
Found in page.php by phan

Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:description', $metaDiz);
Severity: Minor
Found in page.php by phan
Severity
Category
Status
Source
Language