e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Variable $sql is undeclared
Open

            $tmp = $sql->fetch();
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

                if($newid = $sql->insert('user',$insert,true))
Severity: Minor
Found in index.php by phan

Argument 3 (force) is 0|3 but \UserHandler::HashPassword() takes false|string defined at /code/e107_handlers/user_handler.php:226
Open

        $hash = $us->HashPassword($this->previous_steps['admin']['password'],$this->previous_steps['admin']['user'], $pwdEncoding);
Severity: Minor
Found in install.php by phan

Reference to instance property api2 from undeclared class \cpanelAPI
Open

        $cPanel->api2->Fileman

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

        $var[0]['caption']     = "Sample configuration field";
Severity: Info
Found in e107_themes/_blank/theme_config.php by phan

Call to undeclared method \e_shortcode::sc_news_author
Open

                $ret = $sc->sc_news_author();

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

$NEWS_TEMPLATE['list']['caption']    = '{NEWSCATEGORY}';

Function tablestyle defined at /code/e107_themes/voux/theme.php:58 was previously defined at /code/e107_themes/_blank/theme.php:22
Open

function tablestyle($caption, $text, $id='', $info=array()) 
Severity: Minor
Found in e107_themes/voux/theme.php by phan

Call to deprecated function \secure_image::r_image() defined at /code/e107_handlers/secure_img_handler.php:172
Open

    $text .= $sec_img->r_image();
Severity: Minor
Found in email.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

                $imgUrl = (strpos($imgUrl, 'http') === 0) ? $imgUrl : SITEURL.$tp->replaceConstants($imgUrl,true);
Severity: Minor
Found in gsitemap.php by phan

Function cookie defined at /code/install.php:326 was previously defined at /code/class2.php:1786
Open

function cookie($name, $value, $expire=0, $path = e_HTTP, $domain = '', $secure = false)
Severity: Minor
Found in install.php by phan

Call to undeclared method \e_db::getServerInfo
Open

            $mysql_note = e107::getDb()->getServerInfo();
Severity: Critical
Found in install.php by phan

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

        return null;
Severity: Minor
Found in install.php by phan

Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

            $error = str_replace($srch,$repl, LANINS_144); // too early to use e107::getParser() so use str_replace();
Severity: Minor
Found in install.php by phan

Variable $sql is undeclared
Open

                $sql->select("content", "content_heading, content_class", "content_id='" . intval($tmp[1]) . "'");
Severity: Minor
Found in online.php by phan

Argument 2 (content) is 'width=device-width, initial-scale=1.0' 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/_blank/theme.php by phan

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

    $MENU_TEMPLATE['default']['start']                     = ''; 

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

$NEWS_MENU_WRAPPER['category']['NEWS_CATEGORY_NEWS_COUNT'] = "({---})"; // Wrap brackets around the news count when value is returned. 

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

$NEWS_MENU_TEMPLATE['list']['start']       = '<div class="thumbnails">';

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

        if(getperms('0')) // Test Mode.
Severity: Minor
Found in fpw.php by phan
Severity
Category
Status
Source
Language