Static Event Handler remains registered after the bound element is deleted

I’ve noticed in my logging that I get the following message:

" “function productsDataset_currentIndexChanged is registered as a static event handler but is not exported from the page code. Please remove the static event handler or export the function.”

This dataset was long since deleted so I can’t remove the static event handler (checked the layers to make sure I didn’t accidentally hide it). I’ve tried creating a new dataset element and changing the id/connecting to the appropriate collection (+re-registering and re-deleting these same event handlers in the properties and events panel) in hopes of being able to stop these messages clogging up my logs but to no avail.

Has anyone else encountered (and hopefully solved) this problem?

You should contact Wix Customer Care regarding your issue.

I tell you what Yisrael, I didn’t know this was a thing. I’ve submitted a ticket.

Thanks!

Did Customer Support resolve your problem? What was the solution? I have the same issue. Due to another issue they are working on for me I do not want to contact them and cause confusion.

Hey @jimyaccino , haven’t gotten a resolution yet - they sent me a message saying they reproduced the issue and forwarded it on to the devs. I’d suggest submitting another ticket if it’s an urgent issue just in case they manually clean it up. In any case I’ll give you a heads up when they get back to me.

Cheers

Thanks. I will look forward to hearing back from you. The issue they are working on for me is the " wixLocation . to ( “/quote” ) " statement to redirect to /quote page fails in Publish mode but works in Preview mode. no errors. Another seemingly sticky issue.

I have this same issue i deleted the static handeler but the error is there still in the console! how do you remove the error?

staticEventsManager.ts:75 function eeeRadio_click is registered as a static event handler but is not exported from the page code. Please remove the static event handler or export the function.

I thought I found a work around.

  1. Find the name of the static event handler
  2. Create a static event handler with an identical name as shown in the console warning
  3. Publish your site

This will remove the console warning

  1. When you delete the element with the static event handler, the warning comes back.

Very frustrating!