Zip Processor PHP 3 Support Product Page
This topic is locked
Answered
PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open temporary file
Asked 18 Jan 2011 23:23:11
1
has this question
18 Jan 2011 23:23:11 Pablo SanJuan posted:
Hi,on my develepment server it works fine to get a zipped file of some other file that is on the server but I get this error on my production server.The file and everything else are ok and in the correct folder
Any Idea what I should be doing wrong or how to solve this?
Error: PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open temporary file 'pclzip-4d3603fd043e1.tmp' in binary write mode
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 279
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 280
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 281
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 282
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 283
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 284
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php on line 285
PK�����������������
Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\ScriptLibrary\DMXZip.lib.php:261) in E:\inetpub\vhosts\metodobadra.com.ar\subdomains\shop\httpdocs\vx-metodobadra\zip_download.php on line 19
Promoted Answers
Replied 24 Jan 2011 16:13:25
As Teodor suggested via Chat I placed this code:
define( 'PCLZIP_TEMPORARY_DIR', '../user_files/' );
at line 2 in the pclzip.lib.php
'../USER_FILES' was my working folder
And that solved all my problems
Thanks
Zip Processor PHP 3.0.3 Version
define( 'PCLZIP_TEMPORARY_DIR', '../user_files/' );
at line 2 in the pclzip.lib.php
'../USER_FILES' was my working folder
And that solved all my problems
Thanks
Zip Processor PHP 3.0.3 Version
Replies
Replied 19 Jan 2011 20:59:26
19 Jan 2011 20:59:26 Pablo SanJuan replied:
Im working on a Windows Server 2008 with Plesk 8.2.
I can change the configuration that you find more suitable for this case
Hope you can answer this as soon as posible
Thanks
I can change the configuration that you find more suitable for this case
Hope you can answer this as soon as posible
Thanks
Replied 20 Jan 2011 09:49:37
20 Jan 2011 09:49:37 Miroslav Zografski replied:
Hello Pablo,
Your upload folder need to have permissions set for the ASP user account. That account is depending on a settings in the IIS Application pool. To determine which user is set for that Application do following:
Go in to IIS, go to Application Pools, then find the application pool that your website is running under. Right click that app pool and select "Advanced Settings". Look for "Identity" under the "Process Model" section. This will tell you which account is being used for this app pool.
Once you determine that account you need to give to it a modify permissions for the Upload folder ( or on the temp folder assigned).
As far as I know plesk sets the IWAM_plesk user account for its Application pool.
Regards,
Your upload folder need to have permissions set for the ASP user account. That account is depending on a settings in the IIS Application pool. To determine which user is set for that Application do following:
Go in to IIS, go to Application Pools, then find the application pool that your website is running under. Right click that app pool and select "Advanced Settings". Look for "Identity" under the "Process Model" section. This will tell you which account is being used for this app pool.
Once you determine that account you need to give to it a modify permissions for the Upload folder ( or on the temp folder assigned).
As far as I know plesk sets the IWAM_plesk user account for its Application pool.
Regards,
Replied 20 Jan 2011 12:38:19
20 Jan 2011 12:38:19 Pablo SanJuan replied:
Sorry Miroslav, but I'm no trying to UPLOAD , but to DOWNLOAD in ZIP FORMAT, then all permisions are full on the folder that contains the files that I want to download
I have some experience working with this server, so I tried the most common solutions like permissions on the folders involved.
Please give me something more accurate to my problem, like on wich folder the TEMP file is supposed to be created before downloading, so I can check permissions there
Or wich is the actual interpretation of this error so I can have a clue on whats going on and ty to fix it.
Thanks
I have some experience working with this server, so I tried the most common solutions like permissions on the folders involved.
Please give me something more accurate to my problem, like on wich folder the TEMP file is supposed to be created before downloading, so I can check permissions there
Or wich is the actual interpretation of this error so I can have a clue on whats going on and ty to fix it.
Thanks
Replied 20 Jan 2011 14:02:16
20 Jan 2011 14:02:16 Pablo SanJuan replied:
I think the problem is the TEMP folder is using.
As iwas testing I realize that is using C:\Windows\TEMP as temporal folder for creating the ZIPPED FILE
is there anyway to asign a diferent one that exists only on the web site?
As iwas testing I realize that is using C:\Windows\TEMP as temporal folder for creating the ZIPPED FILE
is there anyway to asign a diferent one that exists only on the web site?
Replied 20 Jan 2011 15:48:36
20 Jan 2011 15:48:36 Teodor Kuduschiev replied:
As discussed in the live chat, this cannot be done.
As you said:
"on develepment server it works fine to get a zipped file of some other file that is on the server but I get this error on my production server"
This is a permissions issue you need to set the right permissions for the temp folder
As you said:
"on develepment server it works fine to get a zipped file of some other file that is on the server but I get this error on my production server"
This is a permissions issue you need to set the right permissions for the temp folder
Replied 20 Jan 2011 16:32:55
20 Jan 2011 16:32:55 Pablo SanJuan replied:
I ASSUMED that was the problem, but I'm not sure.
If you read this topic you can see that I posted the error.
Maybe is not a temp problem,
All I want is to find a solution because the problem persists
If you read this topic you can see that I posted the error.
Maybe is not a temp problem,
All I want is to find a solution because the problem persists
Replied 20 Jan 2011 17:10:34
20 Jan 2011 17:10:34 Pablo SanJuan replied:
I checked all permission , an everything is ok, full control for C:\windows\temp (IWAM_user, and users of the domain whith problems), to the folder where the files to be zipped are, but nothing
Could be usefull some ideas on whats happening here
The sooner the better
Thank
Could be usefull some ideas on whats happening here
The sooner the better
Thank
Replied 21 Jan 2011 18:03:31
21 Jan 2011 18:03:31 Pablo SanJuan replied:
For testing purposes:
shop.metodobadra.com.ar/pruebas/zip_download.php
shop.metodobadra.com.ar/pruebas/php_info.php
Hoping you can help me find a solution as soon as possible
Thanks
Pablo
shop.metodobadra.com.ar/pruebas/zip_download.php
shop.metodobadra.com.ar/pruebas/php_info.php
Hoping you can help me find a solution as soon as possible
Thanks
Pablo
Replied 24 Jan 2011 16:13:25
24 Jan 2011 16:13:25 Pablo SanJuan replied:
As Teodor suggested via Chat I placed this code:
define( 'PCLZIP_TEMPORARY_DIR', '../user_files/' );
at line 2 in the pclzip.lib.php
'../USER_FILES' was my working folder
And that solved all my problems
Thanks
Zip Processor PHP 3.0.3 Version
define( 'PCLZIP_TEMPORARY_DIR', '../user_files/' );
at line 2 in the pclzip.lib.php
'../USER_FILES' was my working folder
And that solved all my problems
Thanks
Zip Processor PHP 3.0.3 Version