Page populated from databse doesnt automatically refresh when clicking on any elements on page

The page here: https://www.southernlandsales.co.uk/projects
This page contains the normal links on the menu etc. Also links to click through the different properties for sales, which are populated by the database. The problem lies with clicking on any link on this page, it displays the new url in the browser window, but fails to load the page, unless I manually refresh the page. please can you advise urgently. Thanks.

You will need to provide more information for us to be able to help you. What do these pages do? What is their content? Are you using code on the pages?

The page is here: https://www.southernlandsales.co.uk/projects
it is displaying the projects I set up for land properties to sell, as you will see in the link

i have a simple project database in order to display the projects

Please advise asap

John,

Yisrael has advised you three (3) days ago where he asked you to provide more info about your site and any code that you have used on those pages etc.

You are also better off if you are having issues with your site to post your actual Wix Editor URL and not just your actual website.

This then gives the Wix Admin and Mods here access to your Wix Editor to see if they can see what is causing the issue on your website, either through something in the Wix Editor itself or through the used code or even something like your Tidio Live Chat app being the cause somehow etc.

Don’t worry about safety as only the Wix Admin and Mods from this forum have the permissions to access your Wix Editor through any URL link that is posted through this forum.

Looking at your website, it seems that it is only being affected once you have gone on to one of your three projects pages which are listed on your Land for Sale page through the buttons for them, have you got those listings setup in a repeater?

If you use repeaters, then please make sure that you have set them up correctly and used your code correctly as shown here in the Wix API reference - https://www.wix.com/corvid/reference/$w.Repeater.html

Have you also used the Wix Developer Console when testing it in preview mode and your own browsers developer console when testing it on a live website, as when I test those project pages I am getting a good many errors from them.

Finally, we can take it that you are using Wix Editor with Corvid to make your website and you are not using the Wix ADI? (Assuming you are as you mention about datasets etc.)

Hi.
Thanks you for the reply.
I answer these questions below:

Looking at your website, it seems that it is only being affected once you have gone on to one of your three projects pages which are listed on your Land for Sale page through the buttons for them, have you got those listings setup in a repeater?

YES, I AM USING A REPEATER ON THE PROPERTY PAGE TO DISPLAY THE IMAGE AND TITLE OF THE PROPERTIES. ON EACH SINGLE PROPERTY PAGE, I LINKED THE DATABASE PROJECT ELEMENTS OF DESCRIPTION, PHOTO, MAP AND MORE. I ATTACH SCREENSHOTS.

MY Wix editor url is: https://www.wix.com/dashboard/57cc2a1b-9f37-48cf-a94c-ac14c3a2170a/home?referralInfo=EDITOR

Finally, we can take it that you are using Wix Editor with Corvid to make your website and you are not using the Wix ADI? (Assuming you are as you mention about datasets etc.)
I STARTED WITH WIX ADI THEN SWITCHED TO CORVID IN ORDER TO USE THE LOCATIONS. I ADDED CODE TO ENABLE THE USE OF LONGITUDE AND LATITUDE LOCATIONS ON THE MAP SHOWN ON THE PROJECT PAGE, LINKED TO THE PROJECT DATABASE. I LEARNED THIS FROM THIS FORUM:

https://www.wix.com/corvid/forum/community-discussion/map-linked-to-the-database
I AM A BIT CONFUSED AS I AM NOT A DEVELOPER. I CANT SEE WHERE I ADDED THE CODE DESCRIBED IN THE ABOVE FORUM. I ADDED CODE AS ABOVE, IN ORDER TO DISPLAY THE CORRECT MAP ON EACH LOCATION (ORIGINALLY WAS DISPLAYING THE SAME MAP)

Any help is greatly appreciated please. Thank you.

Any ideas please? Just want the page refreshing each link I click please

i have this code in the properties of the location page for the location to display on each property:

$w.onReady( function () {
//TODO: write your page related code here…
});
export function dynamicDataset_ready() {
let currentItem = $w(‘#dynamicDataset’).getCurrentItem();
$w(‘#googleMaps1’).location = {
“latitude”: currentItem.latitude,
“longitude”: currentItem.longitude
}
//Add your code for this event here:
}
import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;

Okay, quick and easy answer, have you setup your repeaters…

Like this from Andreas in this previous forum post.
https://www.wix.com/corvid/forum/community-discussion/repeater-buttons-and-dynamic-pages

Or a code sample supplied here from Mustafa (Wix Mod).
https://www.wix.com/corvid/forum/community-discussion/direct-repeater-item-to-dynamic-page

Or check out other posts on it too.
https://www.wix.com/corvid/forum/community-discussion/resolved-linking-a-button-from-a-repeater-to-a-dynamic-page

As for your code sample you have shown, you will need to rework that as your imports should be at the top, so it should be something like this below with the imports at the top of your code and the dataset onReady function wrapped up within the pages own onReady function, so that the dataset loads straight after the page does so that you can read the dataset as soon as the page straight away.

import wixLocation from 'wix-location';
import wixWindow from 'wix-window';

$w.onReady( function () {
$w("#dynamicDataset").onReady( ()  => {
let currentItem = $w("#dynamicDataset").getCurrentItem();
$w("#googleMaps1").location = {
"latitude": currentItem.latitude,
"longitude": currentItem.longitude,
};
} );
} );

Note that with this code above, you don’t need to add the onReady event handler to the dataset element through the properties panel as it is already written into the code itself, so if you have this clicked in the properties panel for your dataset please delete it.

Have a look here at this previous forum post for more info on the above.

Plus, see here for more info about dataset onReady.

Thanks. The code with imports at the top worked and sorted the refresh problem. Thank tyou for your help. Its sorted

Sorry - it worked for 1 minuite, now the same problem is occurring again, even after clearing the cache, please take a look and click through the links on the project page here:
https://www.southernlandsales.co.uk/Projects/Emsworth
Basically the data is all there - the content isnt the problem. Its all the links on the page including the main navigation is frozen. The url displays in the browser but the page stays frozen. The links to not take you to the urls