Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error al generar zip, Class 'ZipArchive' not found #37

Closed
abelnexus opened this issue Oct 17, 2018 · 2 comments
Closed

Error al generar zip, Class 'ZipArchive' not found #37

abelnexus opened this issue Oct 17, 2018 · 2 comments
Labels

Comments

@abelnexus
Copy link

hola amigo, lo subi al servidor y me da este error:
[17-Oct-2018 18:40:20 America/Lima] PHP Fatal error: Class 'ZipArchive' not found in /home/letgeahummhj/public_html/vendor/greenter/ws/src/Zip/ZipFileDecompress.php on line 28
en localhost funciona normal.

@abelnexus
Copy link
Author

utilizo esto:
use Greenter\Model\Sale\Document;
use Greenter\Model\Sale\Invoice;
use Greenter\Model\Sale\SaleDetail;
use Greenter\Model\Sale\Legend;
use Greenter\Ws\Services\SunatEndpoints;

 public function generar_comprobante($invoice)
{
		$util = Util::getInstance();
		// Envio a SUNAT.
		$see = $util->getSee(SunatEndpoints::FE_PRODUCCION);
		$res = $see->send($invoice);
		
		if ($res->isSuccess()) {
		$cdr = $res->getCdrResponse();
		$nexus = "|".$util->getResponseFromCdr($cdr);    
		$this->sms = "correcto".$nexus;
		
		Util::writeXml($invoice, $see->getFactory()->getLastXml());
		$pdf = $util->getPdf($invoice);
		$util->showPdf($pdf, $invoice->getName().'.pdf');  
		Util::writeCdr($invoice, $res->getCdrZip());                               
		} else {
		$this->sms = $res->getError()->getMessage();
		}
		return $this->sms;
}

@giansalex
Copy link
Member

giansalex commented Oct 18, 2018

Tienes que habilitar la extension zip.

@giansalex giansalex changed the title error al empaquetar en zip Error al generar zip, Class 'ZipArchive' not found Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants