I was looking for a photo archival system, but since I didn't find any worth buying I've decided to build my own off G2. I installed it off CVS without hitch, there were literally no problems on my local dev server (win2k, apache 1.3.23, php 4.2.1). This was yesterday. I did a cvs update today and found that bharat's been working on the netpbm.class which is (of course) a good thing, however whenever I try to create a random tree I get an error, here's the stack:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>Test: core :: CreateRandomTree [1 iteration(s)]
Timing: 0.1387 elapsed, 7.2075 per second
Error: Error (ERROR_UNSUPPORTED_FILE_TYPE, ERROR_BAD_DATA_TYPE)
* in d:crusadegtgallery2modules
etpbmclassesNetPbmGraphics.class at line 263
* in d:crusadegtgallery2modules
etpbmclassesNetPbmGraphics.class at line 58
* in d:crusadegtgallery2modulescoreclassesGalleryPhotoItem.class at line 122
* in d:crusadegtgallery2modulescore estTestCaseCreateRandomTree.class at line 126
* in d:crusadegtgallery2modulescore estTestCaseCreateRandomTree.class at line 46
* in d:crusadegtgallery2setup estTestCase.class at line 18
* in d:crusadegtgallery2setup estindex.php at line 212</TD></TR></TABLE><!-- BBCode End -->
I figured this would be a simple problem to fix, the relevant code is a switch for mime types, the default case is:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> default:
$gallery->debug('Unsupported file type: ' . $mimeType);
return array(GalleryStatus::error(ERROR_UNSUPPORTED_FILE_TYPE, __FILE__, __LINE__), null);
}</TD></TR></TABLE><!-- BBCode End -->
And so I've spent all this time getting to my point. Why doesn't the debug statement show up in the output for the test harness?
So the results are:
1. I'm getting a null mime type for any image when creating a random tree (win2k,apache 1.3.23, php4.2.1)
2. I'm not sure if this is the fault of the test code, but when this error occurs the item is still created but without any pictures. Since the entire point of the gallery is the pictures, I'd think that failing to create an image would invalidate the creation of the item.
Hopefully you find this helpful to you, Bharat, (I can't find a single file written by anybody else :smile: and hopefully I can give you a hand once I get more familiar with your system. I'm impressed with the amout of thought that went into creating the core and with how extensible the system is. I think I can do everything to implement the system I want using a set of modules!