I have tried all kinds of zip programs to get this zip download to work i keep geting an error... i changed into debug mode and have the code here as follows:
Error (ERROR_PLATFORM_FAILURE)
in C:\apache2triad\htdocs\gallery2\modules\zipcart\classes\ZipCartPlugin.class at line 184 (ZipCartPlugin::error)
in C:\apache2triad\htdocs\gallery2\modules\cart\ModifyCart.inc at line 126 (ZipCartPlugin::fulfillCart)
in C:\apache2triad\htdocs\gallery2\main.php at line 161 (ModifyCartController::handleRequest)
in C:\apache2triad\htdocs\gallery2\main.php at line 47
in C:\apache2triad\htdocs\gallery2\main.php at line 40
file_exists(C:\apache2triad\htdocs\gallery2\g2data\sessions\5dc6f0408af6b687bc4561bb0f2fcc7b)
clearstatcache()
filesize(C:\apache2triad\htdocs\gallery2\g2data\sessions\5dc6f0408af6b687bc4561bb0f2fcc7b)
fopen(C:\apache2triad\htdocs\gallery2\g2data\sessions\5dc6f0408af6b687bc4561bb0f2fcc7b,
rb, 0)
flock(Resource id #18, 6, )
fread(Resource id #18, 9400)
flock(Resource id #18, 3, )
fclose(Resource id #18)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc)
[1100801511] can't guarantee 5 -- extending!
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/0/0/5.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/cart/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes/../../../modules/cart/ModifyCart.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes/../../../modules/cart/ModifyCart.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_CartMap.g_itemIds
FROM
g2_CartMap
WHERE
g2_CartMap.g_sessionId = '5dc6f0408af6b687bc4561bb0f2fcc7b'
LIMIT 1
--------------------------------------------------------------------------------
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/core/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/comment/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/customfield/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/exif/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/gd/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/imageblock/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/imageframe/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/members/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/migrate/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/panorama/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/photoaccess/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/randomhighlight/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/remote/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/search/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/slideshow/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/squarethumb/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/uploadapplet/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/watermark/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/webcam/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/register/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/useralbum/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/imagemagick/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/zipcart/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/thumbpage/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/nokiaupload/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/thumbnail/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\core\classes\helpers/../../../../modules/netpbm/module.inc)
file_exists(C:\apache2triad\htdocs\gallery2\modules\zipcart/classes/ZipCartPlugin.class)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/6/167.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/170.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/172.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/174.inc)
tempnam(C:\apache2triad\htdocs\gallery2\g2data\tmp\, zip_)
mkdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir, 755)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\module/zipcart/0/0/0.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (167, 170, 172, 174)
AND
g2_Derivative.g_derivativeType IN (3)
ORDER BY g2_Derivative.g_id ASC
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (167, 170, 172, 174)
AND
g2_Derivative.g_derivativeType IN (2)
ORDER BY g2_Derivative.g_id ASC
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (167, 170, 172, 174)
AND
g2_Derivative.g_derivativeType IN (1)
ORDER BY g2_Derivative.g_id ASC
--------------------------------------------------------------------------------
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/6/168.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/171.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/173.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/7/175.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 5
ORDER BY
g2_Group.g_groupName
LIMIT 18446744073709551615
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PermissionMap.g_itemId,
BIT_OR(g2_PermissionMap.g_permission)
FROM
g2_PermissionMap
WHERE
g2_PermissionMap.g_itemId IN (167, 170, 172, 174)
AND
(g2_PermissionMap.g_userId = 5
OR
g2_PermissionMap.g_groupId IN (1, 3, 2))
GROUP BY
g2_PermissionMap.g_itemId
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PermissionSetMap.g_module,
g2_PermissionSetMap.g_permission,
g2_PermissionSetMap.g_description,
g2_PermissionSetMap.g_bits,
g2_PermissionSetMap.g_flags
FROM
g2_PermissionSetMap
--------------------------------------------------------------------------------
realpath(C:\apache2triad\htdocs\gallery2\modules\core\classes/../../..)
Binding text domain: modules_core ->
C:\apache2triad\htdocs\gallery2/modules/core/locale
realpath(C:\apache2triad\htdocs\gallery2\modules\core\classes/../../..)
Binding text domain: modules_comment ->
C:\apache2triad\htdocs\gallery2/modules/comment/locale
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/1/5/151.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/0/1/14.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\cache\entity/0/0/6.inc)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir)
is_dir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir)
mkdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics Pics,
755)
mkdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel, 755)
copy(C:\apache2triad\htdocs\gallery2\g2data\albums\Erics
Pics\KitchenRemodel\res-1796814261.jpg,
C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1796814261.jpg)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
is_dir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
copy(C:\apache2triad\htdocs\gallery2\g2data\albums\Erics
Pics\KitchenRemodel\res-1804573620.jpg,
C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1804573620.jpg)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
is_dir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
copy(C:\apache2triad\htdocs\gallery2\g2data\albums\Erics
Pics\KitchenRemodel\res-1812332979.jpg,
C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1812332979.jpg)
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
is_dir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
copy(C:\apache2triad\htdocs\gallery2\g2data\albums\Erics
Pics\KitchenRemodel\res-1820092338.jpg,
C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1820092338.jpg)
Executing: cmd /c " "C:\Unzip\unzip.exe"
"C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.zip" "Erics
Pics\KitchenRemodel\res-1796814261.jpg" "Erics
Pics\KitchenRemodel\res-1804573620.jpg" "Erics
Pics\KitchenRemodel\res-1812332979.jpg" "Erics
Pics\KitchenRemodel\res-1820092338.jpg" 2>
"C:\apache2triad\htdocs\gallery2\g2data\tmp\g2d1C2.tmp" "
file_exists(C:\apache2triad\htdocs\gallery2\g2data\tmp\g2d1C2.tmp)
filesize(C:\apache2triad\htdocs\gallery2\g2data\tmp\g2d1C2.tmp)
fopen(C:\apache2triad\htdocs\gallery2\g2data\tmp\g2d1C2.tmp, r, 0)
feof(Resource id #131)
fgets(Resource id #131, 4096)
feof(Resource id #131)
fgets(Resource id #131, 4096)
feof(Resource id #131)
fclose(Resource id #131)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\g2d1C2.tmp)
Regular Output:
Error Output:
unzip: cannot find either
C:/apache2triad/htdocs/gallery2/g2data/tmp/zip1C1.tmp.zip or
C:/apache2triad/htdocs/gallery2/g2data/tmp/zip1C1.tmp.zip.zip.
Status: 9 (expected 0)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1796814261.jpg)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1804573620.jpg)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1812332979.jpg)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel\res-1820092338.jpg)
rmdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics
Pics\KitchenRemodel)
rmdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir\Erics Pics)
rmdir(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp.dir)
unlink(C:\apache2triad\htdocs\gallery2\g2data\tmp\zip1C1.tmp)
realpath(C:\apache2triad\htdocs\gallery2\modules\core\classes/../../../)
I've tried with winrar, winzip, unzip ... I am at a loss at this point...
Is there any way to do this.... all the tutorials and FAQ's are very vague on this issue.... noone has a clear way to do this....
Anyone have a step by step tutorial? or someone can just say how to set up this portion?
Iam running Windows XP pro
Apache 2
PHP 4.3X
Mysql 4.x.x
perl 5.8.x
etc...etc...
Gallery version 2
PLEASE PLEASE HELP!
Posts: 8601
Um.. in order to send you a zip file the code needs to create a zip: try zip.exe not unzip.exe
Posts: 8
I am sorry if i sound stupid.... but i downloaded unzip and there is no zip.exe with it.... could you explain more please...
What program should i download and use?
do you have a link?
and do i use the commandline exe or the windows exe?
if using the command line ... dont i have to use switches?
Im sorry if i sound new... please help.
Posts: 8
Well. I found the zip.exe..... I put it in the same folder as the unzip program....
and set up the path in the zip download.... (c:\Unzip\zip.exe)
and when i go to the cart and download 4 images.... it just goes for alittle while and then hangs...
anysuggestions?
Posts: 8601
capture the debug output again.. just post the section from "Executing: " down to "Status: "
and you want the command line one. no switches
Posts: 8601
maybe you need to add permission for your webserver/php user to run zip.exe
Posts: 8
Umm... Does anyone know how to do this....
I am at a loss. now...
Running a prepacked Apache install called "Apache2triad"
not sure how to set up that permission.
on Windows XP pro
wait im running php 5 not 4
mysql 4.x.x
etc... etc..
Posts: 8601
see G2 FAQ (sticky topic in this forum)
Posts: 8
thanks ;-)
Posts: 8
Well I looked through the faq page and found 2 instances of permissions......
1. Q: I use apache's mod_layout and notice some odd error messages, what is the problem?
A: If you use mod_layout with Apache, make sure it is disabled for gallery files. Gallery sometimes sends binary data back from a php file, so adding a header or footer to these requests will corrupt the data! Adding the following lines to your apache config file or your .htaccess should fix it.
Code:
# Disable layout header and footer for Gallery2
LayoutIgnoreHeaderURI /path/to/gallery2/*.*
LayoutIgnoreFooterURI /path/to/gallery2/*.*
# PHP Gallery2 overide Layout
<Directory /path/to/gallery2/>
LayoutHeaderOff
LayoutFooterOff
</Directory>
(I dont have this mod on.)
2. Q: I get lots of "Warning: exec(): Unable to fork [cmd /c ...]" at the module's step in the installer for G2 (on the ImageMagick module) under Windows/IIS. Now what?
A: You need to give permissions for IIS to be able to read and execute the command interpreter ("cmd.exe"). Without it, Gallery won't be able to call external executables (like ImageMagick). Required steps:
1. Open a cmd-prompt with "Start", "Execute", then type "cmd.exe". Hit ENTER.
2. At the prompt, type:
Code:
C:\> cacls %COMSPEC% /E /G %COMPUTERNAME%\IUSR_%COMPUTERNAME%:R
This adds the "read" permission to the IIS-user for the cmd.exe. Close the prompt and then try activating the imagemagick module again.
(No Help... IIS I'm on apache)
So I need a way to set permissions to the command line using Apache 2 on a Windows XP pro Box...
I have no users exept my windows logon....
Where do I go from here any suggestions....
Maybe I will look in the G1 FAQ too.
Thanks
Posts: 8601
you should also test zip.exe from the command line and make sure you've got the right thing.
zip.exe test.zip {any_filename}
should create a file called test.zip that contains the file you specified.
if any windows pop up it will NOT work.. must be entirely command line based.
Posts: 8
Well when i do that i do get a pop up saying.... this is not a win32 program
What version of zip.exe do i need to download... do you have a link?
I will look around again.... and see.
buut in mean time could you possibly post a link?
thanks
Posts: 8
Fixed!!! Yeah!!
Thanks for your help!!