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

zip file is not created in php 8.0 #3

Open
sandeepavasthi01 opened this issue Oct 13, 2022 · 3 comments
Open

zip file is not created in php 8.0 #3

sandeepavasthi01 opened this issue Oct 13, 2022 · 3 comments

Comments

@sandeepavasthi01
Copy link

Errors are coming on PHP 8.0

Fatal error: Uncaught ValueError: Path cannot be empty in /var/www/html/socialapp/ls-local/pclzip.lib.php:2353
Stack trace:
#0 /var/www/html/socialapp/ls-local/pclzip.lib.php(2353): fopen()
#1 /var/www/html/socialapp/ls-local/pclzip.lib.php(2133): PclZip->privOpenFd()
#2 /var/www/html/socialapp/ls-local/pclzip.lib.php(2169): PclZip->privCreate()
#3 /var/www/html/socialapp/ls-local/pclzip.lib.php(592): PclZip->privAdd()
#4 /var/www/html/socialapp/ls-local/index.php(404): PclZip->add()
#5 {main}
thrown in /var/www/html/socialapp/ls-local/pclzip.lib.php on line 2353

PHP Platform : 8.0

@jawharjob
Copy link

I have the same problem

@sandeepavasthi01
Copy link
Author

I have the same problem

You have used $zip = new ZipArchive; this function in php 8.0

@williamdes
Copy link

Read the code and you will notice that new PclZip() needs a first argument to set the zipname and fopen should be happy
let me know

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

3 participants