[SOLVED] am i the only one and why

mugge66

Joined: 2004-12-24
Posts: 15
Posted: Thu, 2005-01-06 08:11

please help with this strange problem http://83.88.238.217/gallery2 this happend when i installed the night update from 3-1-05 i have reinstalled gallery2 and the the update 5-1-05 it only works when i run the http://ip/gallery2/upgrade then after 2 minutes goes back weirdo
----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-01-06 09:04

This is a bug I introduced a couple of days back, then fixed tonight. If you go to http://83.88.238.217/gallery2/main.php it will look ok. It'll be fixed in the next nightly snapshot .. sorry!

 
mugge66

Joined: 2004-12-24
Posts: 15
Posted: Thu, 2005-01-06 09:39

AHH ME SO STUPID thanks

 
tomcat76
tomcat76's picture

Joined: 2003-04-22
Posts: 133
Posted: Fri, 2005-01-14 11:55

Thought I would try your download cart option with your F1 photo's and I received this error...

Error An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_PLATFORM_FAILURE) :
in E:\web\gallery2\modules\zipcart\classes\ZipCartPlugin.class at line 189 (gallerystatus::error)
in E:\web\gallery2\modules\cart\ModifyCart.inc at line 126 (zipcartplugin::fulfillcart)
in E:\web\gallery2\main.php at line 147 (modifycartcontroller::handlerequest)
in E:\web\gallery2\main.php at line 46
in E:\web\gallery2\main.php at line 39

Regards Steve

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-15 00:48

We'll need to see the debugging output to figure out what went wrong there.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 06:07

Just got the same error with core the latest (26.2.) build.
Where does G2 try to make the ZIP file? Probably a folder protection?

I've enabled debug view, but can't show the debug tree on the error page. How can I get a debug output in this case?

Thanks
Lutz

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 06:09

Oh, oops - I found it - I can click the indivudal error lines ... cool

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 06:12

hmm.. hopes this helps

in file C:\Inetpub\Scripts\GALLERY2\modules\zipcart\classes\ZipCartPlugin.class at line 189 (ZipCartPlugin::error)
->
The file you're attempting to view is either not on the approved file list, or has been changed since it was added to the list.

Approved file list?????

CU
Lutz

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-27 17:35

LFrank, turn on buffered debug output in config.php and try again.. find the debug output where it is Executing the zip command and see what error it gets. it creates the zip in g2data/tmp so permissions shouldn't be a problem.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 18:18

Thanks for the reply mindless!

Ok. I'll just do that ... (after the CVS has finished the daily build ;))

But checked already - the zip*.tmp.dir are there - complete with all files to be zipped as folders under g2data\tmp. I'm really curious what the debug output will tell me - stay tuned.

Thx again,
Lutz

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 18:32

looks interesting ...
(I've only copied the part which looks interesting)

C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir\LFrank\Smallville-Cast-2004-01_1_.jpg)
getcwd()
chdir(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir)
[1109528820] can't guarantee 60 -- extending!
Executing: cmd /c " "c:/program files/winzip/unzip.exe"
"C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.zip"
"LFrank\season2-kksmaller.jpg" "LFrank\amack_1_.jpg"
"LFrank\kkreuk1_1_.jpg" "LFrank\Season_Four_-_Promo_1_1_.jpg"
"LFrank\cast0_1_.jpg" "LFrank\lois-lane_1_.jpg" "LFrank\s4-chloe_1_.jpg"
"LFrank\s4-martha_1_.jpg" "LFrank\lois-09_1_.jpg"
"LFrank\loislanesmall_1_.jpg" "LFrank\jglover1_1_.jpg"
"LFrank\s4_loislane2_2_.jpg" "LFrank\s4_loislane1_1_.jpg"
"LFrank\Smallville-Cast-2004-01_1_.jpg" 2>
"C:\Inetpub\Scripts\GALLERY2\g2data\tmp\g2d59.tmp" "
file_exists(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\g2d59.tmp)
filesize(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\g2d59.tmp)
fopen(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\g2d59.tmp, r, 0)
feof(Resource id #149)
fgets(Resource id #149, 4096)
feof(Resource id #149)
fgets(Resource id #149, 4096)
feof(Resource id #149)
fclose(Resource id #149)
unlink(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\g2d59.tmp)
Regular Output:
Error Output:
unzip: cannot find either
C:/Inetpub/Scripts/GALLERY2/g2data/tmp/zip58.tmp.zip or
C:/Inetpub/Scripts/GALLERY2/g2data/tmp/zip58.tmp.zip.zip.
Status: 9 (expected 0)
chdir(C:\Inetpub\Scripts\GALLERY2)
unlink(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir\LFrank\season2-kksmaller.jpg)
unlink(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir\LFrank\amack_1_.jpg)
unlink(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir\LFrank\kkreuk1_1_.jpg)
unlink(C:\Inetpub\Scripts\GALLERY2\g2data\tmp\zip58.tmp.dir\LFrank\Season_Four_-_Promo_1_1_.jpg)

Any idea?
(I'm a bit lost -it seems all there)

Lutz

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sun, 2005-02-27 18:46

Gosh - that can't be true ... I've linked "unzip" to the create ZIP command...
Shame on me ...
guess what, it magically works now ...

(I'll go crying a bit over such a pitty... ;))

CU
Lutz

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-27 19:20

hm.. maybe the configuration for the module needs to be smarter.. it just makes sure it can execute the file you give it.. glad it's working.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-02-28 03:24

test settings now runs the binary.