Triggered Error with Wordpress Plugin

Anyone else experiencing this and/or have a resolution

Site: www.TattiniBoots.com

Notice : wp_enqueue_script was called incorrectly . Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts , admin_enqueue_scripts , or login_enqueue_scripts hooks. This notice was triggered by the babylon-viewer handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/lvlmkbltb67y/public_html/wp-includes/functions.php on line 5225

is that related to babylon.js? If yes, can you isolate the problem on a simple repro ?

Yes this is related to the plug-in Babylon.JS

Tanner Tattini
SE Optimix - CEO
+1 (309)-824-4814

Sure but what about a simple repro? The babylon.js plugin is not something done by the core team but probably by someone from the community

Yea it can likely be replicated. More so this seems like an issue caused by its own installation of code. I’m wondering if I could find any other Wordpress plug-in user experiencing this issue. It is not causing any problems with my site, it is just prevalent

Unfortunately I have no idea how Wordpress plugin works. Can you point me to where you found the plugin?

Of course: https://forum.babylonjs.com/t/babylon-js-3d-wordpress-plugin/5237

Ok pinging the author then @labris

1 Like

Thanks man!

The plugin itself is extremely short and simple.
One can also put Babylon Viewer js. just to the header and use all other code in functions.php in the theme folder.
Let me know if there will be any questions.

This might be what I need to do. I have just been using the plugin offered here: Babylon.js 3D WordPress Plugin – 3D is the Future of the Web

I assume this is not by you?

I currently am running v 0.1 and assume it just needed an update?

1 Like

Yes, this is my plugin :slight_smile:
I’ll update this plugin in a couple of days, I hope.

Thank you!

Here is Version 0.2.
Let me know if there are any issues.

Beautiful! - Retriever - 3D View - Tattini Boots

Thank you for getting to this so promptly, 0.2 does in fact resolve the error
I did have to delete 0.1 and then upload 0.2 as just uploading 0.2 did not “replace” 0.1; other than that thank you again for being on standby for this resolution (The plugin does keep things simple)

Here is version 0.3 of this plugin and it will have more and more functions in future.

1 Like

I currently have “Version 0.31” installed

This is the newest?

Yes, the version 0.31 it the latest one - GitHub - eldinor/babylon-wordpress-plugin: Display 3D models and 3D scenes with the help of shortcode [babylon]URL-OF-3D-FILE[/babylon] to use the 3D Viewer in Wordpress posts and pages, Woocommerce products, Elementor blocks etc. Supports GLTF, GLB, STL, OBJ+MTL and BABYLON files upload and demonstration.