That does it! Thanks for the rapid response and bugfix :)
I am using Phamtom version 2.0.
I had this problem for my galleries (both on website and in preview box), and there were three causes:
– SWF-based galleries needed a browser cache clear (e.g. Slider)
– If there is an error in an early call to jQuery(document).ready(), later calls will not be executed. No previews were being shown because of a bug in my theme causing it to abort before executing the Gmedia code.
– The photobox module v0.5 has a bug related to unmigrated settings (I assume). In the rendered HTML:
jQuery(document).ready(function(){
var data = null;
data.content = [
This causes an error (cannot set a property on null), and because of the second point above any gallery displayed after this one would also not display.
This appears to be caused by the following lines:
$settings = array_merge($settings, ...)
var data = <?php echo json_encode($settings); ?>;
To fix, set any setting in the photobox settings and save (it can be unset later) – this recreates the settings object internally.