cpgnuke - Fatal error: Undefined class name 'gallerycapabilities'

WebSiteGuru
WebSiteGuru's picture

Joined: 2005-10-27
Posts: 19
Posted: Thu, 2005-12-22 15:40

A few days ago this error came up when I tried to preview the gallery through admin login. It wont even show up if the guess go there. It was working fine before after the initial integration to DragonflyCMS. I even tried to reinstall G2 and it still dont work.

Fatal error: Undefined class name 'gallerycapabilities' in /***OMITED***/html/modules/Gallery/index.php on line 120

PLEASE HELP!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-12-23 05:15
 
WebSiteGuru
WebSiteGuru's picture

Joined: 2005-10-27
Posts: 19
Posted: Tue, 2006-01-03 17:21

G2 Standalone work but when previewing from Dragonfly that when the error occur.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-01-03 21:07

i guess you're calling GalleryCapabilities::set() too early.
you can't call it before calling GalleryEmbed::init

 
WebSiteGuru
WebSiteGuru's picture

Joined: 2005-10-27
Posts: 19
Posted: Tue, 2006-01-03 22:28

I had GalleryCapabilities::set() calling right after GalleryEmbed::init. And also I used DragonflyCMS with Link Engine Optimization (LEO), where it translate /index.php?name=gallery2 to /gallery2.html. And from what I am understanding if LEO is turn OFF it is working.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-01-03 22:42

/html/modules/Gallery/index.php on line 120

that's where you have to start searching, remove the GalleryCapabilities::set call there

 
WebSiteGuru
WebSiteGuru's picture

Joined: 2005-10-27
Posts: 19
Posted: Sun, 2006-01-08 01:58

If I removed GalleryCapabilities::set call it will give me different error. I had re-installed the Gallery and turned OFF LEO to the site. It looks OK from general users/guest mode. But when I signed in as an admin, the error show up.

 
klinduni

Joined: 2005-02-23
Posts: 1
Posted: Mon, 2006-01-09 16:52

This error has been corrected. Missing the closing } for an if else was causing the issue.