Pro Gallery database load error

I have created a dynamic page with a gallery connected to my database, in order to make a interactive page with various photos on display.

The pic’s are loading 3 out of 10 times - all other times it ‘cannot connect’ to the database (it just don’t show the pictures…)

To see the full website visit: novamartem.wixsite.com/artmonday/canvas and select any ‘artist’.

This is how it loads, both in editor and live mode… (error is the pic i’ve set up as default pic on gallery - now that it doesn’t work most times…)

It should be looking like this - with pictures changing by title…

My database is set like below, with pic’s connected by URL…


Set ut with a dynamicDataset and the Wix Pro gallery (#gallery1)

The code im using is:
$w.onReady(() => {
$w(‘#dynamicDataset’).onReady(() => {
let itemURL = $w(‘#dynamicDataset’).getCurrentItem();
$w(‘#gallery1’).items = [
{src: itemURL.image1}, {src: itemURL.image2}, {src: itemURL.image3}, {src: itemURL.image4},{src: itemURL.image5}, {src: itemURL.image6}, {src: itemURL.image7}, {src: itemURL.image8},{src: itemURL.image9}, {src: itemURL.image10}, {src: itemURL.image11},
{src: itemURL.image12}
];
});
});

What could be the error - timeout, page loading time, anything…?
And how to correct it so that it doesn’t fail to load most of the time??

What does the console say?

Andreas: It only says:
Loading the code for the Canvas (Canvas Artist ) page. To debug this code, open onvyz.js in Developer Tools.

It often shows the pictures in editor mode - but not always… And the major problem is when in live mode…

Info: i’ve connected all pictures by external URL pic’s - could this cause a slow loading time, witch make the loading crack in any way…? thats the only thing i can see could create this error…
and if - is there any way to set up a code to make this error go away…?

Hi!

First of all, this is a problem with Wix Pro Gallery component.

I suggest you several ways to solve this problem.

  1. Use any other gallery (not pro gallery) for dyn page. As i see you don’t use possibilities like “zoomed view” or text/videos items (it’s impossible with wixCode for now BTW…), so you can use something like this - 2018-05-24_1357
  2. Convert images from PNG to JPG format / lower their resoultion. I downloaded one random image from your collection - it’s size is 3.29 megabytes, and i think all other are prety much the same. By lowering resolution/converting to jpg you will make gallery more stable + increase speed of opening these pages.

Hey Mikhail - and thank you…

Does anyone know if it’s in progress to make this ‘bug’ work correctly - the issues with ProGalleries…

It looks to work with an ordinary gallery - but the ProGallery is just making my work rock :slight_smile: and hopefully wix won’t keep on being ‘compromised’ with issues like this…

Hi All,

I had the same issue with Wix Pro Gallery. My images were displayed correctly in preview mode but not on my live site.

[Solved] Use the code below and insert a regular gallery (NOT Pro Gallery)

$w.onReady(function () {
 let item = $w("#dynamicDataset").getCurrentItem();
 
      $w("#gallery1").items = [ 
        {src: item.image1, title: item.image_title1, description: item.image_desc1},
        {src: item.image2, title: item.image_title2, description: item.image_desc2},
        {src: item.image3, title: item.image_title3, description: item.image_desc3},
        {src: item.image4, title: item.image_title4, description: item.image_desc4},
        {src: item.image5, title: item.image_title5, description: item.image_desc5},
        {src: item.image6, title: item.image_title6, description: item.image_desc6}
      ];

});

Good luck.

Regards,
Ben