G2 testing

ikemaunnda

Joined: 2002-08-28
Posts: 9
Posted: Wed, 2002-08-28 12:46

I have a test webserver I would be more than happy to throw (beta) G2 on for testing. I already got the gallery2 directory from CVS...now I need to figure how to configure it...

Very much looking forward to the prospects of gallery + mysql!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2002-08-28 16:26

Sign me up to, if interested.

h0bbel

 
ikemaunnda

Joined: 2002-08-28
Posts: 9
Posted: Wed, 2002-08-28 19:42

Okay...I have read what little external documentation there is, and I think I understand how it is supposed to be configured, but I am having some problems...

The database is setup correctly and can be creaded and dropped. However, when the script tries to mkdir, I am told I do not have proper permissions to do that...?

Is there something I am missing in Apache? I am certain that the apache user has rwx rights in the working dir.

 
zjs2k

Joined: 2002-08-24
Posts: 33
Posted: Thu, 2002-08-29 00:17

You need to make a dir and give it website write-permission or 777. By default, the directory is gallerydata and at the same level as your main gallery folder, that is, if your gallery is /usr/home/gallery, then make a new dir /usr/home/gallerydata.

And just so let you know, it took my server 45 seconds to create 500 identical image files. So be patient.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-08-29 06:01

The best thing to do is to lurk on the -devel mailing list and look for emails from me. Every time I hit any kind of milestone I'll fire off an email so that you can play with the latest code.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-08-29 20:21

Aye, the instructions don't mention it, but I don't believe G2 creates the data
directory, you need to manually make it and assign it proper permissions
before you'll be able to do anything.

 
ikemaunnda

Joined: 2002-08-28
Posts: 9
Posted: Thu, 2002-08-29 23:05

h0bbel is right: creating the dallerydata dir and giving it the right permissions is the right thing to do, but it's not anywhere in the docs.

As for the -devel list, I signed up two days ago *grin*

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2002-08-29 23:15
Quote:
h0bbel is right: creating the dallerydata dir and giving it the right permissions is the right thing to do, but it's not anywhere in the docs.

As for the -devel list, I signed up two days ago *grin*

Thx for the credit, but it was in fact vallimar who is right. :smile: I had NO idea. :roll:

 
ikemaunnda

Joined: 2002-08-28
Posts: 9
Posted: Fri, 2002-08-30 00:21

whoops! *grin* you're right...it's been a loooong day!

Anyways...the "ReInitializeGallery" now works 100%, but "CreateRandomTree" fails with:

<!-- 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>
Overall Status: Error (ERROR_BAD_DATA_TYPE, ERROR_GRAPHICS_FAILURE)

* in include/classes/GalleryGraphics.class at line 371
* in include/classes/GalleryGraphics.class at line 372
* in include/classes/GalleryPhotoItem.class at line 121
* in include/test/TestCase/CreateRandomTree.class at line 95
* in include/test/TestCase/CreateRandomTree.class at line 33
* in include/test/TestCase.class at line 35

Test: CreateRandomTree
Start
Status: Error (ERROR_BAD_DATA_TYPE, ERROR_GRAPHICS_FAILURE)

* in include/classes/GalleryGraphics.class at line 371
* in include/classes/GalleryGraphics.class at line 372
* in include/classes/GalleryPhotoItem.class at line 121
* in include/test/TestCase/CreateRandomTree.class at line 95
* in include/test/TestCase/CreateRandomTree.class at line 33
* in include/test/TestCase.class at line 35

Cleanup
Status: Success
Debug Output

Iterations: 1
Elapsed: 5.4922479391098
PerSec: 0.18207481000249
</TD></TR></TABLE><!-- BBCode End -->

Am I doing something wrong? Since it mentions graphics, perhaps I do not have the required graphics packages installed. Does G2 need IM?

 
uncle

Joined: 2002-08-15
Posts: 18
Posted: Fri, 2002-08-30 00:42

make sure you 'tell' G2 where your pnmtojpeg (netpbm stuff) executable is located in the config.php file. Mine is located in the /usr/bin/ not the /usr/local/bin/ folder that is in the default version of the config.php.

 
ikemaunnda

Joined: 2002-08-28
Posts: 9
Posted: Fri, 2002-08-30 01:54

That seemed to do the trick:

Quote:
Overall Status: Success

--------------------------------------------------------------------------------
Test: CreateRandomTree
Start
Status: Success

Cleanup
Status: Success

--------------------------------------------------------------------------------
Debug Output
Iterations: 500
Elapsed: 156.45045399666
PerSec: 3.1958999621099

Now that the images are generated, going to main.php displays:

Quote:
6 items in this album ... Module links will go here

....

This is a longish description with +=!@#$%^&amp;*()_-|"'?/>.<,}]{[~` chars in it

....

Gallery Debug Output

--------------------------------------------------------------------------------
(mysql): SELECT g_id, g_entityType FROM g2_GalleryEntity WHERE g_id IN (5)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_GalleryEntity.g_id, g2_GalleryEntity.g_creationTimestamp, g2_GalleryEntity.g_dataVersion, g2_GalleryEntity.g_modificationTimestamp, g2_GalleryEntity.g_serialNumber, g2_GalleryEntity.g_entityType, g2_GalleryChildEntity.g_parentId, g2_GalleryFileSystemEntity.g_pathComponent, g2_GalleryItem.g_description, g2_GalleryItem.g_isHtmlAllowed, g2_GalleryItem.g_layout, g2_GalleryItem.g_keywords, g2_GalleryItem.g_orderBy, g2_GalleryItem.g_orderDirection, g2_GalleryItem.g_orderWeight, g2_GalleryItem.g_ownerId, g2_GalleryItem.g_style, g2_GalleryItem.g_title, g2_GalleryItem.g_viewedSinceTimestamp, g2_GalleryAlbumItem.g_childIntermediateResize, g2_GalleryAlbumItem.g_childThumbSize FROM g2_GalleryEntity, g2_GalleryChildEntity, g2_GalleryFileSystemEntity, g2_GalleryItem, g2_GalleryAlbumItem WHERE g2_GalleryEntity.g_id IN (5) AND g2_GalleryChildEntity.g_id=g2_GalleryEntity.g_id AND g2_GalleryFileSystemEntity.g_id=g2_GalleryEntity.g_id AND g2_GalleryItem.g_id=g2_GalleryEntity.g_id AND g2_GalleryAlbumItem.g_id=g2_GalleryEntity.g_id

I assume I am getting that because the UI isn't complete yet, but clicking on one of the image directories gets me:

Quote:
Warning: Missing argument 2 for gallerytranslator() in /var/www/html/testing/gallery2/main.php on line 88

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/testing/gallery2/include/classes/Gallery.class on line 715

Which I assume is not supposed to happen...?

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-08-30 07:55

The loads and loads of debug output is normal, this is pre-alpha remember?
As for the error you are getting, I'm not sure, I haven't encountered it myself.