CArt error help

radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 17:10

I have installed and the gallery is working fine. The cart had difficaulty find zip.exe have resolved that and in modules it show inactivate only. When I try and download from cart I get the following error. Thanks

Error (ERROR_PLATFORM_FAILURE) :
in c:\Inetpub\wwwroot\gallery2\modules\zipcart\classes\ZipCartPlugin.class at line 193 (ZipCartPlugin::error)
in c:\Inetpub\wwwroot\gallery2\modules\cart\ModifyCart.inc at line 126 (ZipCartPlugin::fulfillCart)
in c:\Inetpub\wwwroot\gallery2\main.php at line 173 (ModifyCartController::handleRequest)
in c:\Inetpub\wwwroot\gallery2\main.php at line 87
in c:\Inetpub\wwwroot\gallery2\main.php at line 78

----

Gallery URL (optional):http://www.kmr-studios.com/gallery/
Gallery version: g2 latest
Webserver (with version):IIS 6
Datatabase (with version):mysql 4
PHP version (eg 4.2.1):5.04
phpinfo URL (optional):http//www.kmr-studios.com/phpinfo.php
Graphics Toolkit(s):gd
Operating system:windows server 2003
Web browser/version:ie 6
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-24 17:25

you still get the download as zip option even when the corresponding module is not active?

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 17:38

It is active currently as I want it to be.I have inactivated it, and then activated it agian in the hopes of getting a config screen, but no luck goes right to active like it found everything it needed.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-24 17:47

please deactivate and UNINSTALL the module, then install it again. maybe you can then change / test the zip path etc.

else: if you get an error during download as zip, activate the buffered debug mode in config.php and try again downloading something. then you'll get more debug data.

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 18:18

Here is the screen info that came up. Let me know if you need all the info at the bottom of the screen that loaded. I have also left in in the dubug buffered mode if some someone would like to take a look...

Thanks

Smarty Debug Console
included templates & config files (load time in seconds):
themes/matrix/templates/error.tpl (0.03467) (total)
modules/core/templates/ErrorPage.tpl (0.01171)
assigned template variables:
{$ErrorPage} Array (2)
isAdmin =>
stackTrace => Error (ERROR_PLATFORM_FAILURE) : <UL...
{$SCRIPT_NAME} /gallery2/main.php
{$head} Array (3)
tpl => Array (0)
style => Array (0)
javascript => Array (1)
0 => http://localhost/gallery2/lib/javascr...
{$l10Domain} themes_matrix
{$theme} Array (1)
errorTemplate => modules/core/templates/ErrorPage.tpl
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 18:41

This part of the debug file may help..

realpath(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../..) Binding text domain: modules_comment -> c:\Inetpub\wwwroot\gallery2/modules/comment/locale file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/7.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/7.inc, rb, 0) fread(Resource id #88, 4096) fclose(Resource id #88) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) is_dir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) copy(c:\Inetpub\wwwroot\gallery2\g2data\albums\_KMR2944.jpg, c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir\_KMR2944.jpg) [1122230335] can't guarantee 30 -- extending! file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) is_dir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) copy(c:\Inetpub\wwwroot\gallery2\g2data\albums\_KMR2943.jpg, c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir\_KMR2943.jpg) getcwd() chdir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) [1122230336] can't guarantee 60 -- extending! Executing: cmd /c " "C:\WINDOWS\system32\zip.exe" "c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.zip" "_KMR2944.jpg" "_KMR2943.jpg" 2> "c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d18.tmp" " file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d18.tmp) filesize(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d18.tmp) fopen(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d18.tmp, r, 0) feof(Resource id #96) fgets(Resource id #96, 4096) feof(Resource id #96) fgets(Resource id #96, 4096) feof(Resource id #96) fclose(Resource id #96) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d18.tmp) Regular Output: Error Output: Access is denied. Status: 1 (expected 0) chdir(c:\Inetpub\wwwroot\gallery2) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir\_KMR2944.jpg) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir\_KMR2943.jpg) rmdir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp.dir) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip17.tmp) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes\helpers/../../../../themes/matrix/theme.inc) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc, rb, 0) fread(Resource id #99, 4096) fclose(Resource id #99) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../modules/core/ErrorPage.inc)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-24 19:09

the smarty debug pop up isn't helpful. the output on the main page is what is interesting.

you should look for debug information about what commands g2 is executing.

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 22:24

here is the full debug... Thanks

Debug Output
file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/core/0/0/0.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/core/0/0/0.inc, rb, 0) fread(Resource id #19, 4096) fclose(Resource id #19) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc, rb, 0) fread(Resource id #30, 4096) fread(Resource id #30, 4096) fread(Resource id #30, 4096) fclose(Resource id #30) Unimplemented: GalleryUrlGenerator file_exists(c:\Inetpub\wwwroot\gallery2\g2data\sessions\45b84991b1fff34c827e5323bb2d36a8) fopen(c:\Inetpub\wwwroot\gallery2\g2data\sessions\45b84991b1fff34c827e5323bb2d36a8, rb, 0) feof(Resource id #35) fread(Resource id #35, 4096) feof(Resource id #35) fclose(Resource id #35) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes\helpers/../../../../modules/core/module.inc) realpath(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../..) Binding text domain: modules_core -> c:\Inetpub\wwwroot\gallery2/modules/core/locale file_exists(c:\Inetpub\wwwroot\gallery2\g2data\versions.dat) file(c:\Inetpub\wwwroot\gallery2\g2data\versions.dat, ) [1122242224] can't guarantee 5 -- extending! file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/5.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/5.inc, rb, 0) fread(Resource id #40, 4096) fclose(Resource id #40) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes\helpers/../../../../modules/cart/module.inc) realpath(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../..) Binding text domain: modules_cart -> c:\Inetpub\wwwroot\gallery2/modules/cart/locale file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc, rb, 0) fread(Resource id #48, 4096) fread(Resource id #48, 4096) fread(Resource id #48, 4096) fclose(Resource id #48) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../modules/cart/ModifyCart.inc) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes\helpers/../../../../modules/zipcart/classes/ZipCartPlugin.class) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/14.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/14.inc, rb, 0) fread(Resource id #54, 4096) fclose(Resource id #54) tempnam(c:\Inetpub\wwwroot\gallery2\g2data\tmp\, zip_) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp) is_dir(c:\Inetpub\wwwroot\gallery2\g2data\tmp) mkdir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir, 755) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/zipcart/0/0/0.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\module/zipcart/0/0/0.inc, rb, 0) fread(Resource id #65, 4096) fclose(Resource id #65)
--------------------------------------------------------------------------------
(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 (14) AND g2_Derivative.g_derivativeType IN (3)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(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 (14) AND g2_Derivative.g_derivativeType IN (2)
--------------------------------------------------------------------------------
file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/16.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/16.inc, rb, 0) fread(Resource id #72, 4096) fclose(Resource id #72)
--------------------------------------------------------------------------------
(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 (14) AND g2_Derivative.g_derivativeType IN (1)
--------------------------------------------------------------------------------
file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/15.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/1/15.inc, rb, 0) fread(Resource id #78, 4096) fclose(Resource id #78)
--------------------------------------------------------------------------------
(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_AccessSubscriberMap.g_itemId, BIT_OR(g2_AccessMap.g_permission) FROM g2_AccessMap, g2_AccessSubscriberMap WHERE g2_AccessSubscriberMap.g_itemId IN (14) AND g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId AND (g2_AccessMap.g_userId = 5 OR g2_AccessMap.g_groupId IN (4)) GROUP BY g2_AccessSubscriberMap.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:\Inetpub\wwwroot\gallery2\modules\core\classes/../../..) Binding text domain: modules_comment -> c:\Inetpub\wwwroot\gallery2/modules/comment/locale file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/7.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\entity/0/0/7.inc, rb, 0) fread(Resource id #85, 4096) fclose(Resource id #85) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) is_dir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) copy(c:\Inetpub\wwwroot\gallery2\g2data\albums\_KMR2943.jpg, c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir\_KMR2943.jpg) getcwd() chdir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) [1122242224] can't guarantee 60 -- extending! Executing: cmd /c " "C:\WINDOWS\system32\zip.exe" "c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.zip" "_KMR2943.jpg" 2> "c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp" " file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) filesize(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) fopen(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp, r, 0) feof(Resource id #91) fgets(Resource id #91, 4096) feof(Resource id #91) fgets(Resource id #91, 4096) feof(Resource id #91) fclose(Resource id #91) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) Regular Output: Error Output: Access is denied. Status: 1 (expected 0) chdir(c:\Inetpub\wwwroot\gallery2) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir\_KMR2943.jpg) rmdir(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes\helpers/../../../../themes/matrix/theme.inc) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\cache\theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) fopen(c:\Inetpub\wwwroot\gallery2\g2data\cache\theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc, rb, 0) fread(Resource id #94, 4096) fclose(Resource id #94) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../modules/core/ErrorPage.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_UserGroupMap.g_userId FROM g2_UserGroupMap WHERE g2_UserGroupMap.g_userId = 5 AND g2_UserGroupMap.g_groupId = '3' LIMIT 1
--------------------------------------------------------------------------------
realpath(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../) file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../lib/javascript/local/BlockToggle.js) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\smarty\templates_c\%%1606700778) is_dir(c:\Inetpub\wwwroot\gallery2\g2data\smarty\templates_c\%%1606700778) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\smarty\templates_c\%%1606700778) is_writeable(c:\Inetpub\wwwroot\gallery2\g2data\smarty\templates_c\%%1606700778) file_exists(c:\Inetpub\wwwroot\gallery2\g2data\smarty\templates_c\%%1606700778/v_6) realpath(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../..) Binding text domain: themes_matrix -> c:\Inetpub\wwwroot\gallery2/themes/matrix/locale file_exists(c:\Inetpub\wwwroot\gallery2\modules\core\classes/../../../themes/matrix/local/theme.css)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-24 22:40
Executing: cmd /c " "C:\WINDOWS\system32\zip.exe" "c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.zip" "_KMR2943.jpg" 2> "c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp" " file_exists(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) filesize(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) fopen(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp, r, 0) feof(Resource id #91) fgets(Resource id #91, 4096) feof(Resource id #91) fgets(Resource id #91, 4096) feof(Resource id #91) fclose(Resource id #91) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d2C.tmp) 

Regular Output: Error Output: Access is denied. Status: 1 (expected 0) chdir(c:\Inetpub\wwwroot\gallery2) unlink(c:\Inetpub\wwwroot\gallery2\g2data\tmp\zip2B.tmp.dir\_KMR2943.jpg)

-> access denied -> permissions problem. can't help you there, must be a iis issue.

see:

http://codex.gallery2.org/index.php/Gallery2:Installation_on_Windows_Server_2003_and_IIS6

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Sun, 2005-07-24 22:59

Any one have any idea what permission are not right...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-07-24 23:05

I can't tell exactly from that error, but I would make sure that the user IIS runs as has:

at least read and execute permissions on your zip.exe

at least write, read, delete permission for your %temp%

at least write, read, delete permission for your g2data directory and all files and directories below g2data.

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Mon, 2005-07-25 00:27

I have made sure and still can not get it to work.

 
osubz3ro
osubz3ro's picture

Joined: 2005-07-26
Posts: 5
Posted: Tue, 2005-07-26 22:17

Has anyone given a clue or understandable answer to this problem? I know no one like IIS but its here to stay...

Warning: exec(): Unable to fork [cmd /c " "C:\Zip\zip.exe" "F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\zip331.tmp.zip" "F:\InetPub\managementusa.com\httpdocs\gallery\modules\zipcart\ZipCartAdmin.inc" 2> "F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\g2d332.tmp" "] in F:\InetPub\managementusa.com\httpdocs\gallery\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 106

Executing: cmd /c " "C:\Zip\zip.exe"
"F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\zip331.tmp.zip"
"F:\InetPub\managementusa.com\httpdocs\gallery\modules\zipcart\ZipCartAdmin.inc"
2> "F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\g2d332.tmp" "
file_exists(F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\g2d332.tmp)
filesize(F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\g2d332.tmp)
unlink(F:\InetPub\managementusa.com\httpdocs\gallery\g2data\tmp\g2d332.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 22:19
 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Wed, 2005-07-27 10:39

If I put zip program in my windows system32 folder I get the permission error. I have given Iuser access to cmd.exe and zip.exe and the temp dir. When I have the zip.exe in another dir such as the one above still giving permission to iuser to this dir and cmd.exe, the program say the same as osubz3ro. Still trying to get this cart to work.

 
osubz3ro
osubz3ro's picture

Joined: 2005-07-26
Posts: 5
Posted: Wed, 2005-07-27 14:50

I am sorry but that link does not help. And the worse thing in the world to do is allow access by an anonymous user to read and write to a file or comand in the windows system directory, that is like a smb share or sym link to your /usr/local/apache/conf with read and write access.

I installed zip.exe adn unzip.exe to the g2data directory where anonymous web users can read and write and that still does not work. This is something else.

 
osubz3ro
osubz3ro's picture

Joined: 2005-07-26
Posts: 5
Posted: Wed, 2005-07-27 14:54

Everything else in gallery 2 beta seems to be working fine on windows 2003 server standard edition. Installed this behind Plesk hosting shell and works great, excpet this zip stuff.

I belive previous versions have worked with winzip, theres no love there either, tried that and no dice.

If anyone has a paypal account and wants to make a quick buck to fix this, I am open to suggestions.

Gallery 2 rocks!

 
radmanmike

Joined: 2005-07-21
Posts: 23
Posted: Wed, 2005-07-27 21:02

Has anyone sucessfully set Beta 3 or 4 up on Windows 2003 IIS where the zip cart works? If so where are your zip.exe file located and what permission did you have to set. I have looked at the Windows 2003 setup guide and I believe that I have it setup correctly. The only thing that I did not do is run it as a PHP ISAPI extension.
PHP is working fine I can bring up PHP info fine and Gallery2 works fine except for zip cart.

Thanks