Code is working in Preview but not in Live

//-------------Lightbox Setup-------------//

$w.onReady(function () {
 // Get the data passed by the page that opened the lightbox.
    productId = wixWindow.lightbox.getContext().productId;
 
 // Set the action that occurs before the review is saved.
    $w('#SubmitReviews').onBeforeSave(() => {
 // If no rating was set:
 if ($w('#ratingsInput1').value === '') {
 // Display an error message.
            $w('#errorMsg').show();
 // Force the save to fail.
 return Promise.reject(); 
        }

        console.log("Keine Fehler im Context");
 // If a rating was set, set the element values into the fields of the dataset item.
 // These values will be saved in the collection.
        $w('#SubmitReviews').setFieldValues({
            productId,
            ratingValue: $w('#ratingsInput1').value,
            recommends: $w('#radioGroup1').value,
            ratingTextHeader: $w("#input4").value,
            ratingText: $w("#textBox1").value,
            ratingEmail: $w("#input3").value,
            ratingName: $w("#input1").value
 // ratingPicture: $w("#uploadButton1").value
        });

        console.log("Keine Fehler im Upload");
    });
 
 // Set the action that occurs after the review is saved.
    $w('#SubmitReviews').onAfterSave(async () => {
 // Update the product's statistics using the updateStatistics() function.
 // await updateStatistics($w('#radioGroup1').value);
 // When the statistics have been updated, close the lightbox to return the user to the product page.
        wixWindow.lightbox.close(); 
    });
});

Thats my current Code

Thats the error i get in Live-View

clientWorker.39f38789.bundle.min.js:1Uncaught (in promise) 

r {code: "DS_OPERATION_CANCELLED", message: "Operation cancelled by user code. DatasetError: There is no current item", name: "DatasetError", stack: "DatasetError: Operation cancelled by user code. Da…services/dbsm-viewer-app/1.1280.0/app.js:6:183290", Symbol(error-boundary-scope): "userCodeZone", …}
code: "DS_OPERATION_CANCELLED"
Symbol(error was handled): true
Symbol(error-boundary-scope): "userCodeZone"
message: "Operation cancelled by user code. DatasetError: There is no current item"
name: "DatasetError"
stack: "DatasetError: Operation cancelled by user code. DatasetError: There is no current item↵    at https://static.parastorage.com/services/dbsm-viewer-app/1.1280.0/app.js:6:183290"
__proto__: r

thats my website naturfellparadies.com
just click a random shop-item and hit the “Bewerten” Button.

It works in the Preview, maybe i missed something Vital?