RafaelLetras Posted July 28, 2020 Report Share Posted July 28, 2020 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 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted July 28, 2020 Administrators Report Share Posted July 28, 2020 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 I think it is not able to connect to MySQL/MariaDB - but post up the contents of line 101 Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted July 28, 2020 Author Report Share Posted July 28, 2020 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; } Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted July 28, 2020 Administrators Report Share Posted July 28, 2020 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 Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted July 29, 2020 Author Report Share Posted July 29, 2020 Hi , Everything is correct I havent touch it since day 1 And mariadb version 10.2.32-MariaDB-cll-lve - MariaDB Server Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted July 29, 2020 Administrators Report Share Posted July 29, 2020 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. Quote Link to comment Share on other sites More sharing options...
Strider Posted July 29, 2020 Report Share Posted July 29, 2020 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. Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted July 30, 2020 Author Report Share Posted July 30, 2020 Hi Thank you very much ! I will contacct the host ! And see what he says Thank you both I will keep you updated! Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted July 30, 2020 Author Report Share Posted July 30, 2020 So I got an answer from the host , he told '' please modify the script to not send invalid values to the system'' 😅 Quote Link to comment Share on other sites More sharing options...
Strider Posted July 30, 2020 Report Share Posted July 30, 2020 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." Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted July 30, 2020 Author Report Share Posted July 30, 2020 Hi @Strider I told him that , let's see what he does , because at the moment I have a VA with 100 pilots stoped because he's too lazy and rude Waiting for news Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted August 5, 2020 Author Report Share Posted August 5, 2020 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 Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted August 5, 2020 Author Report Share Posted August 5, 2020 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 Quote Link to comment Share on other sites More sharing options...
RafaelLetras Posted August 5, 2020 Author Report Share Posted August 5, 2020 Quote [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 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted August 5, 2020 Administrators Report Share Posted August 5, 2020 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.