Warning (2): Missing argument 1 for XmlController::download_xml_t() [APP/Controller/XmlController.php, line 465]Code Context }
public function download_xml_t($path) {
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 465
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Notice (8): Undefined variable: path [APP/Controller/XmlController.php, line 466]Code Context
public function download_xml_t($path) {
$path = base64_decode($path);
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 466
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Notice (8): Undefined offset: 1 [APP/Controller/XmlController.php, line 473]Code Context $filename='../tmp/download/'.$uuid.'.zip';
$zip = new zip();
if ($ext[1] === 'pdf' || $ext[1] === 'PDF') {
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array()
ctrl_dir => array()
eof_ctrl_dir => 'PK '
old_offset => (int) 0
}
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 473
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Notice (8): Undefined offset: 1 [APP/Controller/XmlController.php, line 473]Code Context $filename='../tmp/download/'.$uuid.'.zip';
$zip = new zip();
if ($ext[1] === 'pdf' || $ext[1] === 'PDF') {
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array()
ctrl_dir => array()
eof_ctrl_dir => 'PK '
old_offset => (int) 0
}
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 473
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fopen(.xml) [function.fopen]: failed to open stream: No such file or directory [APP/Vendor/zip.php, line 105]Code Context
function add_file($data, $name) {
$fp = fopen($data,"r");
$data = '.xml'
$name = 'factura.xml'
fopen - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 105
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 477
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): filesize() [function.filesize]: stat failed for .xml [APP/Vendor/zip.php, line 106]Code Context function add_file($data, $name) {
$fp = fopen($data,"r");
$data = fread($fp,filesize($data));
$data = '.xml'
$name = 'factura.xml'
$fp = false
filesize - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 106
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 477
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fread() expects parameter 1 to be resource, boolean given [APP/Vendor/zip.php, line 106]Code Context function add_file($data, $name) {
$fp = fopen($data,"r");
$data = fread($fp,filesize($data));
$data = '.xml'
$name = 'factura.xml'
$fp = false
fread - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 106
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 477
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fclose() expects parameter 1 to be resource, boolean given [APP/Vendor/zip.php, line 107]Code Context $fp = fopen($data,"r");
$data = fread($fp,filesize($data));
fclose($fp);
$data = false
$name = 'factura.xml'
$fp = false
fclose - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 107
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 477
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fopen(.pdf) [function.fopen]: failed to open stream: No such file or directory [APP/Vendor/zip.php, line 105]Code Context
function add_file($data, $name) {
$fp = fopen($data,"r");
$data = '.pdf'
$name = 'factura.pdf'
fopen - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 105
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 478
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): filesize() [function.filesize]: stat failed for .pdf [APP/Vendor/zip.php, line 106]Code Context function add_file($data, $name) {
$fp = fopen($data,"r");
$data = fread($fp,filesize($data));
$data = '.pdf'
$name = 'factura.pdf'
$fp = false
filesize - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 106
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 478
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fread() expects parameter 1 to be resource, boolean given [APP/Vendor/zip.php, line 106]Code Context function add_file($data, $name) {
$fp = fopen($data,"r");
$data = fread($fp,filesize($data));
$data = '.pdf'
$name = 'factura.pdf'
$fp = false
fread - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 106
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 478
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): fclose() expects parameter 1 to be resource, boolean given [APP/Vendor/zip.php, line 107]Code Context $fp = fopen($data,"r");
$data = fread($fp,filesize($data));
fclose($fp);
$data = false
$name = 'factura.pdf'
$fp = false
fclose - [internal], line ??
zip::add_file() - APP/Vendor/zip.php, line 107
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 478
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwwcfdis/public_html/terecazola/lib/Cake/Utility/Debugger.php:801) [APP/Controller/XmlController.php, line 481]Code Context }
//$zip->close();
header("Content-type: application/force-download");
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
header - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 481
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwwcfdis/public_html/terecazola/lib/Cake/Utility/Debugger.php:801) [APP/Controller/XmlController.php, line 482]Code Context //$zip->close();
header("Content-type: application/force-download");
header("Content-Transfer-Encoding: Binary");
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
header - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 482
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwwcfdis/public_html/terecazola/lib/Cake/Utility/Debugger.php:801) [APP/Controller/XmlController.php, line 483]Code Context header("Content-type: application/force-download");
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".strlen($zip->file()));
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
header - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 483
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwwcfdis/public_html/terecazola/lib/Cake/Utility/Debugger.php:801) [APP/Controller/XmlController.php, line 484]Code Context header("Content-Transfer-Encoding: Binary");
header("Content-length: ".strlen($zip->file()));
header("Content-Type: application/octet-stream");
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
header - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 484
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwwcfdis/public_html/terecazola/lib/Cake/Utility/Debugger.php:801) [APP/Controller/XmlController.php, line 485]Code Context header("Content-length: ".strlen($zip->file()));
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\" " . $uuid . '.zip' . "\"");
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
header - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 485
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120
PK factura.xml PK factura.pdf PK factura.xmlPK 7 factura.pdfPK r n Warning (2): unlink(../tmp/download/factura.zip) [function.unlink]: No such file or directory [APP/Controller/XmlController.php, line 489]Code Context echo $zip->file();
unlink($filename);
$path = ''
$ext = array(
(int) 0 => ''
)
$uuid = 'factura'
$filename = '../tmp/download/factura.zip'
$zip = object(zip) {
datasec => array(
(int) 0 => 'PK factura.xml ',
(int) 1 => 'PK factura.pdf '
)
ctrl_dir => array(
(int) 0 => 'PK factura.xml',
(int) 1 => 'PK 7 factura.pdf'
)
eof_ctrl_dir => 'PK '
old_offset => (int) 110
}
unlink - [internal], line ??
XmlController::download_xml_t() - APP/Controller/XmlController.php, line 489
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 120