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

Could not close zip file #16

Open
ra7bi opened this issue May 13, 2017 · 2 comments
Open

Could not close zip file #16

ra7bi opened this issue May 13, 2017 · 2 comments

Comments

@ra7bi
Copy link

ra7bi commented May 13, 2017

im using CakeExcel and it's working if i use xls extiontion but throwing exception if i use xlsx

exception is :

Could not close zip file php://output.

Thanks

@josegonzalez
Copy link
Collaborator

Can you provide the stacktrace for the error, and potentially a screenshot, as well as your configuration?

@ra7bi
Copy link
Author

ra7bi commented May 13, 2017

Error :

screen shot 2017-05-13 at 4 24 53 pm

in my bootstrap

Plugin::load('CakeExcel', ['bootstrap' => true, 'routes' => true]);

in my AppController

$this->loadComponent('RequestHandler', [ 'viewClassMap' => ['xlsx' => 'Cewi/Excel.Excel'] ]);

in my Route.php

Router::extensions('xlsx');

Then my template is like the following

screen shot 2017-05-13 at 4 27 33 pm

And my Layout

screen shot 2017-05-13 at 4 28 05 pm

my composer

{ "name": "cakephp/app", "description": "CakePHP skeleton app", "homepage": "http://cakephp.org", "type": "project", "license": "MIT", "require": { "php": ">=5.6", "cakephp/cakephp": "3.4.*", "mobiledetect/mobiledetectlib": "2.*", "cakephp/migrations": "~1.0", "cakephp/plugin-installer": "*", "dakota/cake-excel": "^2.0", "Cewi/Excel": "dev-master" }, "require-dev": { "psy/psysh": "@stable", "cakephp/debug_kit": "~3.2", "cakephp/bake": "~1.1" }, "repositories": [ { "type": "vcs", "url": "https://github.com/cewi/excel" } ] , "suggest": { "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.", "phpunit/phpunit": "Allows automated tests to be run without system-wide install.", "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP." }, "autoload": { "psr-4": { "App\\": "src" } }, "autoload-dev": { "psr-4": { "App\\Test\\": "tests", "Cake\\Test\\": "./vendor/cakephp/cakephp/tests" } }, "scripts": { "post-install-cmd": "App\\Console\\Installer::postInstall", "post-create-project-cmd": "App\\Console\\Installer::postInstall", "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump", "check": [ "@test", "@cs-check" ], "cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", "cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", "test": "phpunit --colors=always" }, "prefer-stable": true }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants