Page 1 of 1

I have this error: Class "ZipArchive" not found...

Posted: 10 Apr 2024, 01:25
by Webbie
Hi,

I installed the necessary modules (on my TNAS) to make PHP scripts working but I have a problem with the "Create Zip" function that I cannot resolve... when I try to download several files (with the ZIP function and via 'Header'), I receive the message saying "Class Archive not found...".

These php scripts worked fine on my old hosted website, but now I can't find how to resolve the problem on my F2-223 server.

The "download" function works with single file but give this error with several files !

If anyone has a solution, I'm interested.

Thanks in advance

Re: I have this error: Class "ZipArchive" not found...

Posted: 10 Apr 2024, 09:28
by TMzethar
Which PHP version are you using?
If your PHP script can run in a lower version of PHP, you can try the system's built-in PHP 7.4.

Re: I have this error: Class "ZipArchive" not found...

Posted: 10 Apr 2024, 23:26
by Webbie
Hi,

Sorry I forgot to check for reply.

I tried with 7.4, 8.0 and 8.1

Re: I have this error: Class "ZipArchive" not found...

Posted: 15 Apr 2024, 17:06
by TMzethar
Perhaps there is a difference between the ZIP tool included in TOS and your previous system? Perhaps you can try to confirm.

Re: I have this error: Class "ZipArchive" not found...

Posted: 16 Apr 2024, 15:52
by Webbie
Yes, that's also my advies.... and I don't know how to resolve this.

The 'download command' in my scripts are wo more working for many files/images/... not so serious but so, for the moment, it is only possible one by one.

Re: I have this error: Class "ZipArchive" not found...

Posted: 17 Apr 2024, 18:53
by TMzethar
There may be differences in the use of individual commands and tools compared to the Linux version you previously used. We hope your issue can be resolved.

Re: I have this error: Class "ZipArchive" not found...

Posted: 18 Apr 2024, 18:55
by Webbie
TMzethar wrote: 17 Apr 2024, 18:53 There may be differences in the use of individual commands and tools compared to the Linux version you previously used. We hope your issue can be resolved.
I look to program an other way for multiple downloads !

Thank you anyway for you help !

Re: I have this error: Class "ZipArchive" not found...

Posted: 19 Apr 2024, 05:21
by Webbie
Hi,

I installed the apache24 (2.4.57.1) in my 'TOS-F2223' and averything is working but I found that I cannot change the status of the « output zlib compression » in 'php.ini'... I don't anderstand why ?

Perhaps is this the problem no !?
Image

Re: I have this error: Class "ZipArchive" not found...

Posted: 20 Apr 2024, 06:24
by Webbie
Hi,

'php_zip.dll' found and installed on pc, new 'Class ZipFile' (a little different) added to my scripts and also 'php_zip-1.13.4' library installed in TOS.

With adapting some php scripts, everything work with this new 'Class' correctly again.

Problem solved !

Thanks again !