Jump to content
  • 0

FluxCP Errors PHP 7.3 & MariaDB 10.4


M a p l e

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   62
  • Joined:  02/04/19
  • Last Seen:  

This error is appearing in the logs, I'm using PHP 7.3 (web hosting) and MariaDB 10.4 (vps)

[2020-01-06 15:49:18] (Flux_Error) Exception Flux_Error: MySQL error (SQLSTATE: 42000, ERROR: 1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND `login`.`group_id` NOT IN ('0','1','5')' at line 1
[2020-01-06 15:49:18] (Flux_Error) **TRACE** #0 /home/ragnarok/public_html/modules/ranking/mvp.php(38): Flux_Connection_Statement->execute(Array)
[2020-01-06 15:49:18] (Flux_Error) **TRACE** #1 /home/ragnarok/public_html/lib/Flux/Template.php(375): include('/home/ragnarok/...')
[2020-01-06 15:49:18] (Flux_Error) **TRACE** #2 /home/ragnarok/public_html/lib/Flux/Dispatcher.php(170): Flux_Template->render()
[2020-01-06 15:49:18] (Flux_Error) **TRACE** #3 /home/ragnarok/public_html/index.php(169): Flux_Dispatcher->dispatch(Array)
[2020-01-06 15:49:18] (Flux_Error) **TRACE** #4 {main}

[06-Jan-2020 15:13:39 America/Sao_Paulo] PHP Warning:  A non-numeric value encountered in /home/ragnarok/public_html/lib/Flux/Template.php on line 1287

    public function equipUpper($equipUpper)
    {
        $upper   = array();
        $table   = Flux::getEquipUpperList();
        
        foreach ($table as $bit => $name) {
Line 1287 >        if ($equipUpper & $bit) {
                $upper[] = $name;
            }
        }
        
        return $upper;
    }

[07-Jan-2020 12:37:17 America/Sao_Paulo] PHP Notice:  Undefined variable: response in /home/ragnarok/public_html/lib/Flux/LoginServer.php on line 156

        elseif (Flux::config('UseCaptcha')) {
            if (Flux::config('EnableReCaptcha')) {
                if(isset($_POST['g-recaptcha-response']) && $_POST['g-recaptcha-response'] != ""){
                    $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".Flux::config('ReCaptchaPrivateKey')."&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']);
                }
Line 156 >            $responseKeys = json_decode($response,true);
                if(intval($responseKeys["success"]) !== 1) {
                    throw new Flux_RegisterError('Invalid security code', Flux_RegisterError::INVALID_SECURITY_CODE);
                }
            }
            elseif (strtolower($securityCode) !== strtolower(Flux::$sessionData->securityCode)) {
                throw new Flux_RegisterError('Invalid security code', Flux_RegisterError::INVALID_SECURITY_CODE);
            }
        }

[08-Jan-2020 12:02:44 America/Sao_Paulo] PHP Warning:  A non-numeric value encountered in /home/ragnarok/public_html/modules/account/view.php on line 192

    if ($items) {
        $cardIDs = array();

        foreach ($items as $item) {
Line 192 >        $item->cardsOver = -$item->slots;
            
            if ($item->card0) {
                $cardIDs[] = $item->card0;
                $item->cardsOver++;
            }
            if ($item->card1) {
                $cardIDs[] = $item->card1;
                $item->cardsOver++;
            }
            if ($item->card2) {
                $cardIDs[] = $item->card2;
                $item->cardsOver++;
            }
            if ($item->card3) {
                $cardIDs[] = $item->card3;
                $item->cardsOver++;
            }
            
            if ($item->card0 == 254 || $item->card0 == 255 || $item->card0 == -256 || $item->cardsOver < 0) {
                $item->cardsOver = 0;
            }
        }


[08-Jan-2020 12:06:27 America/Sao_Paulo] PHP Warning:  A non-numeric value encountered in /home/ragnarok/public_html/modules/character/view.php on line 144

    if ($items) {
        $cardIDs = array();

        foreach ($items as $item) {
Line 144>        $item->cardsOver = -$item->slots;
            
            if ($item->card0) {
                $cardIDs[] = $item->card0;
                $item->cardsOver++;
            }
            if ($item->card1) {
                $cardIDs[] = $item->card1;
                $item->cardsOver++;
            }
            if ($item->card2) {
                $cardIDs[] = $item->card2;
                $item->cardsOver++;
            }
            if ($item->card3) {
                $cardIDs[] = $item->card3;
                $item->cardsOver++;
            }
            
            if ($item->card0 == 254 || $item->card0 == 255 || $item->card0 == -256 || $item->cardsOver < 0) {
                $item->cardsOver = 0;
            }
        }

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

×
×
  • Create New...