#1 July 16, 2014 2:04pm

jesse.glaves
Member
Registered: June 28, 2014
Posts: 124

Uncaught ReferenceError: CustomPhotoGallery is not defined

I'm getting this error when I edit my homepage gallery:

Uncaught ReferenceError: CustomPhotoGallery is not defined

I'm not sure when this started happening, it has been a while since I've tried adding or removing photos from the gallery. I can dig into this, but first I wanted to see if you might have an idea.

Last edited by jesse.glaves (July 16, 2014 2:04pm)

Offline

#2 July 16, 2014 2:06pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

CustomPhotoGallery is, I believe, an extension of the BigTreePhotoGallery class that adds attribution (in addition to just caption) for the base demo site. It's probably defined in /custom/admin/js/demo.js if that file has been removed or edited.

Offline

#3 July 16, 2014 2:08pm

jesse.glaves
Member
Registered: June 28, 2014
Posts: 124

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

Yeah, I built my site on top of the demo site to take advantage of some of the work that was already done smile I'll take a look. Thanks.

Offline

#4 July 16, 2014 2:16pm

jesse.glaves
Member
Registered: June 28, 2014
Posts: 124

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

Thanks, that worked. I had commented out the demo.js include in settings.php at some point, trying to save resources. Demo.js didn't sound like something that was necessary to my site at the time smile I might have to rename that file so it's more descriptive: customphotogallery.js.

Offline

#5 February 25, 2015 2:58am

10n6
Member
From: Staffordshire UK
Registered: February 25, 2015
Posts: 2

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

Sorry Newbie to BigTree. What exactly was the line and what did it look like. I am testing out the example site and getting used to it on my local machine and I'm coming up with this error. Just wondered what I should put where as there is no mention of demo.js in my settings php file.

Offline

#6 February 25, 2015 11:20am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

It appears that the JS was missing from the demo site install, should be fixed in the 4.1.6 release. To fix it now, you'll want to edit /custom/settings.php. I believe it's line 97. You'll want to change that empty array to:

$bigtree["config"]["admin_js"] = array("demo.js");

Offline

#7 February 25, 2015 3:16pm

10n6
Member
From: Staffordshire UK
Registered: February 25, 2015
Posts: 2

Re: Uncaught ReferenceError: CustomPhotoGallery is not defined

Thanks Tim. All good now smile

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.