Widget saving but showing "waiting" animation

github.com/rhavin/QWidgets/blob/main/src/WPWidgets/Company.php

I’m coding my first plugin for widgets and while saving updated settings, it shows the animation (spinning wheel) that it is waiting for something. Can someone spot the error and tell me what I have to do?

I mean: it is saving, it just doesnt show the user that it is done.

I tried different ways: the only time I get this spinner deactivated is by returning false form the widgets update(), but then nothing gets saved and the wp-included widgets also return the instance.

I’m not sure if this is a clear-press bug.

Maybe it would be easier to write it again from scratch.

The error occured in
ClassicPress/src/wp-admin/js/widgets.js:

This widget didnt have an input field for a title (it doesnt need one), but the js code didnt handle that case correctly

Your GitHub code is currently not a functioning plugin (fatal error), so it’s difficult helping you with this. I also saw your Issue at GitHub and the replies, it’s not caused by CP itself.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.