error with the new code

nickthegreek
nickthegreek's picture

Joined: 2002-10-23
Posts: 11
Posted: Tue, 2003-01-21 11:08

With the new code thaT I downloaded today I get the following:

Fatal error: Undefined class name 'gallerytranslator' in /var/www/html/gallery2/modules/core/module.inc on line 292

If I add the line in the modile.inc
require_once($classDir . 'GalleryTranslator.class');
I get pass the first error, but when I go to configure the gallery from the administration I get the following error when I try to activate any of modules

Error (ERROR_BAD_PARAMETER)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1279
in modules/core/classes/interfaces/GalleryModuleParameterMap.inc at line 148
in modules/core/classes/GalleryModuleParameterMap.class at line 107
in modules/core/classes/Gallery.class at line 1143
in modules/netpbm/AdminNetPbm.inc at line 60
in main.php at line 90
in main.php at line 30

Am I doing something wrong??

 
uncle

Joined: 2002-08-15
Posts: 18
Posted: Tue, 2003-01-21 18:15

I get the same error. I just was going to wait a few days to see if CVS was updated again.

 
funkadelic

Joined: 2002-09-26
Posts: 16
Posted: Thu, 2003-01-23 01:49

i get the same

Fatal error: Undefined class name 'gallerytranslator'

error as well. :???:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2003-01-23 06:56

Thanks. I'll look into this.

 
Trouble

Joined: 2002-09-11
Posts: 21
Posted: Fri, 2003-01-24 20:55

The first time in months that I decide to check out how G2 is progressing and I get the same error :cry:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-24 22:44

I also get this error.

<!-- 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>
Fatal error: Undefined class name 'gallerytranslator' in /www1/virthosts/pictures.troop350.org/gallery2/modules/core/module.inc on line 292
</TD></TR></TABLE><!-- BBCode End -->

 
blub

Joined: 2003-01-31
Posts: 4
Posted: Fri, 2003-01-31 01:11

Same ERROR here:

Fatal error: Undefined class name 'gallerytranslator' in /data/htdocs/blub/gallery/modules/core/module.inc on line 292

grabed the latest snapshot Sarva's G2 Snapshot Page.
(gallery2-latest.tar.gz 413.94 KB 01/30/2003 03:00:28 am)

Tried with Opery 7 and IE 6.1 both reports these error

mfg

blub

 
blub

Joined: 2003-01-31
Posts: 4
Posted: Fri, 2003-01-31 01:11

Same ERROR here:

Fatal error: Undefined class name 'gallerytranslator' in /data/htdocs/blub/gallery/modules/core/module.inc on line 292

grabed the latest snapshot Sarva's G2 Snapshot Page.
(gallery2-latest.tar.gz 413.94 KB 01/30/2003 03:00:28 am)

Tried with Opery 7 and IE 6.1 both are reporting the same error

mfg

blub

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2003-01-31 09:47

I checked in a fix for this on 1/29. Check the latest code from CVS.

 
funkadelic

Joined: 2002-09-26
Posts: 16
Posted: Fri, 2003-01-31 11:01

hi bharat,

thanks for fixing it!

i noticed one prob in latest modules.inc which was causing a error after nuking the gallery &amp; reinitializing the store:

line 287 in modules/core/module.inc (inside install() ):

<!-- 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> require_once(dirname(__FILE__) . '/GalleryTranslator.class');</TD></TR></TABLE><!-- BBCode End -->

is looking in the wrong spot for GalleryTranslator.class, since it's now in the classes/ directory

i tried to just do a "global $classDir" inside install() since you've got $classDir declared in line 28 of module.inc, but for some reason it was returning a blank value...so i just did what was done in bootstrap() and declared a local $classDir

<!-- 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> $classDir = dirname(__FILE__) . '/classes/';</TD></TR></TABLE><!-- BBCode End -->

and used that. here's a diff against cvs:

<!-- 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>
$ cvs diff module.inc
Index: module.inc
===================================================================
RCS file: /cvsroot/gallery/gallery2/modules/core/module.inc,v
retrieving revision 1.38
diff -r1.38 module.inc
247a248
> $classDir = dirname(__FILE__) . '/classes/';
287c288
< require_once(dirname(__FILE__) . '/GalleryTranslator.class');
---
> require_once($classDir . 'GalleryTranslator.class');
</TD></TR></TABLE><!-- BBCode End -->

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-01-31 21:42

I am still recieving a similar error using the fix checked in:

Quote:
Warning: install(/www1/virthosts/pictures.troop350.org/gallery2/modules/core/GalleryTranslator.class) [function.install]: failed to create stream: No such file or directory in /www1/virthosts/pictures.troop350.org/gallery2/modules/core/module.inc on line 287

Fatal error: install() [function.install]: Failed opening required '/www1/virthosts/pictures.troop350.org/gallery2/modules/core/GalleryTranslator.class' (include_path='.:/usr/local/lib/php') in /www1/virthosts/pictures.troop350.org/gallery2/modules/core/module.inc on line 287

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2003-02-01 08:17

That's 'cause I'm a numbskull and checked in the wrong fix :smile:

NOW it's fixed :smile:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2003-02-01 20:35

Sure enough :smile: Good work.