“Uncaught (in promise) Error” Triggered
-
Hello,
I am a developer of a different plugin (Photonic – https://wordpress.org/plugins/photonic), and I have come across something that looks like incorrect behaviour in Elementor. It looks like Elementor scripts get invoked and trigger an error even when Elementor is not active on a particular page. Specifically, it looks like Elementor is invoked in a non-Elementor page another plugin is trying to use message channels or other communication methods. Elementor seems to be intercepting the events and causing errors.
To replicate:
- Install Photonic.
- Create a new post in the Classic Editor with the traditional (non-Elementor) options.
- Click on the button that says “Add / Edit Photonic Gallery”.
- Select the option for “SmugMug” and click “Next”.
- Select the option to “Show photos from an album”, and select “Another user”. Put in “sayontan” and click “Next”.
- Select any album and click “Next”.
- Select any layout and click “Next”.
- Keep the default options and click “Next”.
- If this is the Developer Tools have not shown an error so far, you will be taken to the next screen.
- On the final screen of Photonic, if you click “Next”, you see something like this:
[angie-sdk > {“instanceId”:”y6u5qk”}] Failed to register server “elementor-capabilities”: Error: Client creation request timed out after 15000ms at editor-mcp.min.js?ver=4.1.4:7:83804Uncaught (in promise) Error: Client creation request timed out after 15000ms at editor-mcp.min.js?ver=4.1.4:7:83804 - At the final step, my plugin is simply calling the
send_to_editorfunction in the Classic Editor Code mode, or theeditor.execCommand('mceInsertContent', false, 'Some HTML')in the Classic Editor Visual mode – Elementor should not be intercepting these, particularly since the page does not have Elementor enabled.
In Step 4, if you click on “WordPress”, the bug shows up right away.
It is almost like Elementor is intercepting any message channel / port-based communication between a plugin and WP. Note that Photonic uses a dedicated MessageChannel to interact between an IFrame and the main editor – Elementor functionality is not hindered when Photonic is active on the same page.
You must be logged in to reply to this topic.