Jump to content

PHPVMS pireps not working


RafaelLetras

Recommended Posts

Good morning , 
Since the 17th juin my pireps are not working 

I have the following errors 
 

[17-Jul-2020 20:44:07 UTC] PHP Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /home/voloteav/public_html/crew/core/classes/ezdb/ezdb_mysqli.class.php on line 101''

[21:46]

'' [17-Jul-2020 20:44:07 UTC] PHP Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>No such file or directory (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1>''

[21:46]

'' [17-Jul-2020 20:44:17 UTC] PHP Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>No such file or directory (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /home/voloteav/public_html/crew/core/classes/ezdb/ezdb_mysqli.class.php on line 106 [17-Jul-2020 22:38:32 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Login' does not have a method 'index.php' in /home/voloteav/public_html/crew/core/classes/MainController.class.php on line 218''

BR

Link to comment
Share on other sites

  • Administrators

phpVMS version?

PHP version?

MySQL or MariaDB version?

 

Paste the contents of line 101 in /home/voloteav/public_html/crew/core/classes/ezdb/ezdb_mysqli.class.php

 

think it is not able to connect to MySQL/MariaDB - but post up the contents of line 101

Link to comment
Share on other sites

phpVMS version? simpilots

PHP version? 5.6

MySQL or MariaDB version? MySQL 

From line 99 : 
    public function connect($dbuser='', $dbpassword='', $dbhost='localhost')
    {
        $this->dbh =  new mysqli($dbhost, $dbuser, $dbpassword);
        
        if(mysqli_connect_errno() != 0)
        {
            if($this->throw_exceptions)
                throw new ezDB_Error(mysqli_connect_error(), mysqli_connect_errno());
                
            $this->register_error(mysqli_connect_error(), mysqli_connect_errno());
            return false;
        }
        else
        {
            $this->clear_errors();
            return true;
        }
        
        return true;
    }

Link to comment
Share on other sites

  • Administrators

phpVMS - 5.5.2

PHP - 5.6

MySQL - version??? What version of MySQL??

 

Ok, so line 101 is

 $this->dbh =  new mysqli($dbhost, $dbuser, $dbpassword);

correct???

 

My guess is that there is a problem connecting to MySQL.

Are the errors you posted the only errors in the error_log file or in the console?

 

Make sure that local.config.php has the correct entries for:

define('DBASE_USER', 'xxxxxx');
define('DBASE_PASS', 'yyyyyyyy');
define('DBASE_NAME', 'zzzzzz');
define('DBASE_SERVER', 'localhost');
define('DBASE_TYPE', 'mysqli');

replace xxxxx, yyyyyyyy, zzzzzz with the correct entries for you install

Link to comment
Share on other sites

  • Administrators

Others have reported issues with MariaDB 10.2 or higher. Any chance to revert to MariaDB 10.1?

 

As an interim fix, look into disabling strict mode. While it might automatically reset itself if there is a minor update, at least you will know if diabling strict mode will allow full function.

Link to comment
Share on other sites

If you have a VPS you can disable it via the Terminal or a SSH program such as Putty. In terminal type the following:

 

nano -w /etc/my.cnf

the same with a SSH program. you should be able to edit the config for the db there. look for the line sql_mode= and delete what is there, save and then restart the SQL and strict mode should be off, if not you will have to ask your host.

Link to comment
Share on other sites

Firstly your host is very rude. Secondly, the script that worked before the upgrade is not sending invalid values, the DB is determining they are by itself. Thirdly disabling strict mode won't break sites that have worked fine even after the upgrade. Your host stinks of "I am too lazy to do it lets just tell them to modify the script."

Link to comment
Share on other sites

Hi guys 
With the host I could manage however my index.php 
Is no longer accesible I have error 403 
and the following errors

[04-Aug-2020 15:51:53 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/lib/skins/voloteavirtual/weather/wx_form.php on line 140 [04-Aug-2020 15:59:47 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/lib/skins/voloteavirtual/weather/wx_form.php on line 140 [04-Aug-2020 18:56:22 UTC] PHP Warning: imagecreatefromstring(): Data is not in a recognized format in /home/voloteav/public_html/crew/core/common/PilotData.class.php on line 1016
[05-Aug-2020 09:30:09 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 [05-Aug-2020 09:30:09 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
[05-Aug-2020 09:30:10 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 [05-Aug-2020 09:30:33 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
[05-Aug-2020 09:30:51 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 
[05-Aug-2020 09:32:08 UTC] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 
[05-Aug-2020 15:01:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/core/modules/Fltbook/Fltbook.php on line 47 [05-Aug-2020 19:03:30 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php on line 120
[05-Aug-2020 19:03:58 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php on line 120
 [05-Aug-2020 19:26:48 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/voloteav/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php on line 120

 

Link to comment
Share on other sites

Quote

[Wed Aug 05 21:26:48.700330 2020] [:error] [pid 492087] [client 86.237.36.104:0] [client 86.237.36.104] ModSecurity: Access denied with code 403 (phase 4). Pattern match "<b>Warning</b>.{0,100}?:.{0,1000}?\\\\bon line\\\\b" at RESPONSE_BODY. [file "/etc/apache2/conf.d/modsec_vendor_configs/comodo_apache/16_Outgoing_FilterPHP.conf"] [line "14"] [id "214420"] [rev "1"] [msg "COMODO WAF: PHP Information Leakage||crew.voloteavirtual.com|F|3"] [data "Matched Data: <b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/voloteav/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php</b> on line found within RESPONSE_BODY: <!DOCTYPE html PUBLIC \\x22-//W3C//DTD XHTML 1.0 Transitional//EN\\x22 \\x22http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\x22>\\x0a<html xmlns=\\x22http://www.w3.org/1999/xhtml\\x22>\\x0a<head>\\x0a<meta http-equiv=\\x22Content-Type\\x22 content=\\x22text/html; charset=utf-8\\x22 />\\x0a<title>phpVMS Admin Panel</title>\\x..."] [severity "ERROR"] [tag "CWAF"] [tag "FilterPHP"] [hostname "crew.voloteavirtual.com"] [uri "/admin/index.php/pirepadmin/approveall"] [unique_id "XysH@FxURdsGDixKhTHzWAAAAAE"], referer: https://crew.voloteavirtual.com/admin/index.php/pirepadmin/viewall?admin=viewall&start=20

 

Link to comment
Share on other sites

  • Administrators
3 minutes ago, RafaelLetras said:

[05-Aug-2020 22:45:53 UTC] PHP Warning: imagecreatefromstring(): Data is not in a recognized format in /home/voloteav/public_html/crew/core/common/PilotData.class.php on line 1016

 

That error has to do with creating an image and has nothing to do with the issue of this thread.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...