Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#1015 Cannot sync local database

Posted in ‘Event Gallery - General’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Tuesday, 11 November 2014 07:16 UTC

billericayessex
Hi Sven,
Great component and responsive features work really well. I've had the gallery live for a couple of months and all was working fine. I recently started doing some work to optimise scripts generally on my site and I fear I may have removed some code or misconfigured something somewhere.
At the moment images will not display and I cannot sync the database.
Any chance of a hand? Happy to send over login details if that helps.
Page is here: http://www.billericayessex.co.uk/gallery

sbluege
Your front end does not work because of a JavaScript error. It's caused by a jQuery inclucde. If you use jQuery with Joomla make sure you cann jQuery.noConflict() after each jQuery include. Otherwise thinks break. 
I can't help you with the sync without additional information. What exactly does not work? Any error messages?

billericayessex
Hi Sven,
Sorry for the delay in getting back to you. I've updated to the most recent version but the "Sync database" option doesn't seem to work at the moment. I have attached a screenshot.
The page loads the list of folders to sync, but nothing happens. Previously the green progress banner would load for each folder but that doesn't happen now.
I get an Uncaught TypeError: undefined is not a funtcion index.php:493 error on the sync database page

billericayessex
Sorry here is the attachment.

sbluege
Unfortunately the screenshot does not help since it does not show any kind of error. No sure how experienced you are with web development. But if you can check the result of the xhr requests in the network tab of your browser you can help solving this.

billericayessex
Hi Sven,
Using Google Chrome i've found the following error when using the sync page:
Uncaught TypeError: undefined is not a function on line index.php:493 which is the line in bold:

function start() {
$$(".eventgallery-folder").each(function(item){
folderContainers.push(item);
}.bind(this));

max = folderContainers.length;
$('syncprogress').setAttribute('max', max);
$('syncprogress').setAttribute('value', 0);


syncFolder();

}

Any ideas please?

Thanks
Tom

sbluege
Seems link $('syncprogress') does not return a result. Please check if your back end template loads jQuery. If so, please check that each jQuery-Include is followed by a jQuery.noConflict() statement. Please double check. Joomla uses MooTools so jQuery needs to be loaded in the right way.

billericayessex
I've had soooo many issues with JQuery because different modules/components load it etc. Tried hard to combine them but it's a nightmare with mootools as well. Will do some investigation and try to find the cause!
Thanks again!

sbluege
But there are some good news for you too. Event Gallery 3.3 does not longer use MooTools. Unfortunately this will not fix all the other issues which you'll run into if you use components/plugins/modules which do not respect the way Joomla works.

billericayessex
That's great news! I've got the sync database working now. I went through each of the jquery files that are called and jQuery.noConflict(); to the end. Is this an acceptable way to do it?

Is 3.3 available to upgrade to now?

It's a great component btw. I want to try out the option for people to buy photos soon.

Thanks a lot.

sbluege

Event Gallery 3.3 is currently available as a release candidate for users with a subscription.