You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a weird bug and I'm not exactly sure why it is happening. It might be related to WordPress/gutenberg#16850 and #868. Updating a Lesson post from Sensei LMS Pro while Popup Maker is active causes an infinite loop.
Step-by-step reproduction instructions
Steps to reproduce:
Install Sensei LMS Pro (I'm happy to upload a copy of the plugin if needed).
Install the free version of Popup Maker.
Add a new Lesson post.
In the Lesson, add the Quiz block.
Click Publish/Update.
When Popup Maker is not active, the post updates and everything is fine. However, when Popup Maker is active, the Update button gets caught in an infinite loop. See GIF below:
I dequeued every single Popup Maker script and the issue persisted. I removed the Popup Control panel and it made no difference. What finally worked was a combined PHP + JS approach, where I commented out the PUM_Admin_BlockEditor::add_attributes_to_registered_blocks method and used the pum_block_editor_popup_trigger_excluded_blocks filter to remove all Sensei LMS blocks. I'm still not sure why it's happening as my experience with Gutenberg is limited. However, it might be a good idea to add the pum_block_editor_popup_trigger_excluded_blocks filter to the PUM_Admin_BlockEditor::add_attributes_to_registered_blocks method as well.
Environment info
WordPress version: 6.3
PHP version: 7.4.30 (also tested on 8.1.9)
Popup Maker version: 1.18.2
Sensei LMS Pro version: 4.16.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated.
Yes
The text was updated successfully, but these errors were encountered:
Description
This is a weird bug and I'm not exactly sure why it is happening. It might be related to WordPress/gutenberg#16850 and #868. Updating a Lesson post from Sensei LMS Pro while Popup Maker is active causes an infinite loop.
Step-by-step reproduction instructions
Steps to reproduce:
When Popup Maker is not active, the post updates and everything is fine. However, when Popup Maker is active, the Update button gets caught in an infinite loop. See GIF below:
I dequeued every single Popup Maker script and the issue persisted. I removed the Popup Control panel and it made no difference. What finally worked was a combined PHP + JS approach, where I commented out the
PUM_Admin_BlockEditor::add_attributes_to_registered_blocks
method and used thepum_block_editor_popup_trigger_excluded_blocks
filter to remove all Sensei LMS blocks. I'm still not sure why it's happening as my experience with Gutenberg is limited. However, it might be a good idea to add thepum_block_editor_popup_trigger_excluded_blocks
filter to thePUM_Admin_BlockEditor::add_attributes_to_registered_blocks
method as well.Environment info
WordPress version: 6.3
PHP version: 7.4.30 (also tested on 8.1.9)
Popup Maker version: 1.18.2
Sensei LMS Pro version: 4.16.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated.
Yes
The text was updated successfully, but these errors were encountered: