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??
Posts: 18
I get the same error. I just was going to wait a few days to see if CVS was updated again.
Posts: 16
i get the same
Fatal error: Undefined class name 'gallerytranslator'
error as well. :???:
Posts: 7994
Thanks. I'll look into this.
Posts: 21
The first time in months that I decide to check out how G2 is progressing and I get the same error :cry:
Posts: 8194
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 -->
Posts: 4
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
Posts: 4
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
Posts: 7994
I checked in a fix for this on 1/29. Check the latest code from CVS.
Posts: 16
hi bharat,
thanks for fixing it!
i noticed one prob in latest modules.inc which was causing a error after nuking the gallery & 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 -->
Posts: 8194
I am still recieving a similar error using the fix checked in:
Posts: 7994
That's 'cause I'm a numbskull and checked in the wrong fix :smile:
NOW it's fixed :smile:
Posts: 8194
Sure enough :smile: Good work.