Open sandeepavasthi01 opened 2 years ago
I have the same problem
I have the same problem
You have used $zip = new ZipArchive; this function in php 8.0
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
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