CMS MADE SIMPLE FORGE

MysqlDump2

 

[#12423] Warning: on Préférences

avatar
Created By: Jean-Claude Etiemble (jce76350)
Date Submitted: Fri Mar 05 13:05:53 -0500 2021

Assigned To: Yuri Haperski (cmsms)
Version: None
CMSMS Version: 2.2.15
Severity: None
Resolution: Accepted
State: Open
Summary:
Warning: on Préférences
Detailed Description:
MysqlDump2-1.0
Using CMSM 2.2.15 FR 
on local Debian 10 linux 4.19.0-14-amd64 on  x86_64 
PHP 7.3.27-9+0~20210227.82+debian10~1.gbpa4a3d6 
apache/2.4.38 (debian) 
MariaDB 10.3.27 
VirtualHost : DocumentRoot /home/jxxx/sites + Directory /home/xxx/sites/
root_path  /home/xxx/sites/d_cms/testcms2 
root_url 		http://sites/d_cms/testcms2 

Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, null given
in /modules/MysqlDump2/action.defaultadmin.php on line 73

Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, null given
in /modules/MysqlDump2/MysqlDump2.module.php on line 78


History

Comments
avatar
Date: 2021-03-05 15:08
Posted By: Yuri Haperski (cmsms)

in /modules/MysqlDump2/action.defaultadmin.php line 73 
and in /modules/MysqlDump2/MysqlDump2.module.php line 78

replace please $db->connectionId to $db->get_inner_mysql()

Let me know the result.




      
avatar
Date: 2021-03-06 03:49
Posted By: Jean-Claude Etiemble (jce76350)

OK
I replace please $db->connectionId to $db->get_inner_mysql()  in the 2 lines
So no warning now

But
If I select All tables OR I select : Only tables with cmsno_ prefix_
Dump parameters: --opt --verbose --compatible=mysql40
--default-character-set=utf8
and the backup have all the tables of the Database  ;)

and I have on the top of page Backup Database
1- Warning: Cannot modify header information - headers already sent in
/lib/include.php on line 101
line 101 =         header("Content-Type: $content_type; charset=$charset");

2- Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null
given in /modules/MysqlDump2/action.dumpdatabase.php on line 23


      
avatar
Date: 2021-03-06 06:13
Posted By: Yuri Haperski (cmsms)

in /modules/MysqlDump2/action.dumpdatabase.php on line 23 replace please
$db->connectionId to $db->get_inner_mysql()
It helps to remove warnings. 

Don`t use --compatible=mysql40 in the dump parameters. It is deprecated.

Unfortunately, I can not repeat other errors, you write. I get the correct
result. But maybe in the future, I get the same problem and find a way to fix
it.

Thank you for your feedback. You make this module better. 



      
Updates

Updated: 2021-03-06 23:51
resolution_id: 5 => 6

Updated: 2021-03-05 15:08
resolution_id: => 5