Running Task Dump MySQL Task

GET /dev/tasks/A2nt-CMSNiceties-Tasks-DumpMySQL

[Notice] ob_clean(): Failed to delete buffer. No buffer to delete

GET /dev/tasks/A2nt-CMSNiceties-Tasks-DumpMySQL

Line 21 in /home/thewebsitemarket/public_html/vendor/a2nt/cms-niceties/src/Tasks/DumpMySQL.php

Source

12     protected $description = 'Create MySQL dump';
13     protected $enabled = true;
14 
15     public function run($request)
16     {
17         $fileName = 'backup-'.date('d-m-Y').'.sql';
18         $cfg = DB::getConfig();
19 
20         try {
21             ob_clean();
22         } catch (Exception $e) {
23         }
24 
25         // check if gzip is on
26         try {
27             if (count(array_intersect(['mod_deflate', 'mod_gzip'], apache_get_modules())) > 0) {

Trace

GET /dev/tasks/A2nt-CMSNiceties-Tasks-DumpMySQL

[Emergency] Uncaught Error: Call to undefined function A2nt\CMSNiceties\Tasks\apache_get_modules()

GET /dev/tasks/A2nt-CMSNiceties-Tasks-DumpMySQL

Line 27 in /home/thewebsitemarket/public_html/vendor/a2nt/cms-niceties/src/Tasks/DumpMySQL.php

Source

18         $cfg = DB::getConfig();
19 
20         try {
21             ob_clean();
22         } catch (Exception $e) {
23         }
24 
25         // check if gzip is on
26         try {
27             if (count(array_intersect(['mod_deflate', 'mod_gzip'], apache_get_modules())) > 0) {
28                 $fileName .= '.gz';
29             }
30         } catch (Exception $e) {
31         }
32 
33         header('Content-Disposition: attachment; filename="'.$fileName.'"');

Trace