[FIXED] Corvid Broken? Live Site Stopped Working.

Update: Thank you to the staff who responded to my inquiry and resolved the issue under 24 hours. Lightbox opens with filtered items, and am able to accept payments again.


Hello,
Recently my site members are experiencing issues where the code on our /pricing page mostly does not work on Live site as it does in Editor Preview. I’m wondering if this can be with new Corvid updates, server or API issues? I never had this issue before. This is really important as now I cannot receive any payments and am losing about $100-150/day.

Test Site - Clicking on any of the payment buttons should open up a lightbox connected to a filtered dataset. In LiveMode, it mostly stopped working. Sometimes it does, mostly not. I’m really lost here. But I doubt this is code error, as again, it works sometimes. And I had no issues with this for 6+ months.

Edit Site: (Mod Access)

In the webpage console, I’m also getting 429 - Too Many Requests error. The duplicated test website however, does not have such error, yet it still does not work. I believe this is an API or server issue?

This is my page code: (There are multiple onReady functions, but this is not the issue)

Thanks for letting us know. Our development team is offline right now, but they’ve been notified of the issue. We’ll share an update as soon as possible.

Random comment here: I advise you to read this post from Corvid’s team about good practice: https://support.wix.com/en/article/corvid-best-practices-for-building-a-corvid-website

especially the part about Code Only One onReady() Per Page

that will not solve your issue but might improve your page performance a bit :slight_smile:

I’m having issues with the basic Corvid functions on my site as well. I messed with it for about 2 hours before it occurred to me that it might be Wix.

Responding to the comment right above me though, about having only one onReady per page… I know essentially nothing about JS or Corvid and I hack it just enough to do what I want. I have a code that looks like this…

$w.onReady( function () {

$w( "#q1" ).expand(); 
$w( "#q2" ).expand(); 
$w( "#q3" ).expand(); 
$w( "#q4" ).expand(); 
$w( "#q5" ).expand(); 
$w( "#q6" ).expand(); 
$w( "#q7" ).expand(); 
$w( "#html1" ).expand(); 

$w( "#Menu" ).show(); 
$w( "#iconbutton" ).show(); 
$w( "#shoppingCartIcon" ).show(); 

});

Is this acceptable? I’m not sure if it means actually calling it up once, or only using it to control one object.

Thank you for your support and dedication.

Hey boss! Thank you, will take a look.

I tried to make my code work with only one (1) onReady function, but I wasn’t able to get a reaction from any of the button clicks unless the previous button was pressed, this is why I am using multiple onReady functions.

Would you know of way on how I can simplify or compress the code?

@danyminko this will not solve your underlying issue but this is the refactored code

import wixWindow from 'wix-window';

$w.onReady(() => {
    $w("#mainToolRepeater ").onItemReady(($item, itemData, index) => {
        $item('#mainToolButton').onClick(() => wixWindow.openLightbox('payment_panel_dynamic', itemData));
    });

    $w("#registrator2Repeater").onItemReady(($item, itemData, index) => {
        $item('#registrator2Button').onClick(() => wixWindow.openLightbox('payment_panel_dynamic', itemData));
    });

    $w("#registratorRepeater").onItemReady(($item, itemData, index) => {
        $item('#registratorButton').onClick(() => wixWindow.openLightbox('payment_panel_dynamic', itemData));
    });
});

export function reg1ButtonV2_click(event) {
    $w("#box4").show();
    $w("#box2").hide();
}

export function reg2ButtonV1_click(event) {
    $w("#box2").show();
    $w("#box4").hide();
}

@danyminko did you manage to get a solution for this “Please make sure it has an appropriate as value and it is preloaded intentionally.” error. I am getting the same on my site and I do not have any code on the page.