You are not logged in.
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
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
Yeah, I built my site on top of the demo site to take advantage of some of the work that was already done I'll take a look. Thanks.
Offline
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 I might have to rename that file so it's more descriptive: customphotogallery.js.
Offline
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
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
Thanks Tim. All good now
Offline