[BUG]: Get Snippets not working #1197
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
Attempting to import new snippets, and JCB just sits doing nothing, saying Getting available libraries
loading.....
Steps to reproduce the Bug
Go to JCB Dashboard, click on Snippets, then click on the Get Snippets button in the upper right corner.
Which Joomla version are you compiling in?
5.2.2
Which PHP version are you compiling in?
8.2.21
Which Joomla versions are you targeting?
5.x
Which PHP version are you targeting?
8.1+
Which Web server is JCB running on?
Apache/2.4.59 (Debian)
Which Relational Database is JCB running on?
11.4.2-MariaDB-ubu2404
Which OS is JCB running on?
Ubuntu 22.04.1 LTS
Which JCB version are you using?
v5.0.3
Where in JCB did this issue occur?
Snippet(admin_view), Snippets(admin_views)
On which browsers did you encounter the issue?
Firefox
Additional Comments
I'm unsure if this supposed to work in the current version, or whether it is still a work in progress.
Looking at developer tools in FireFox, under console there is the following error:
Uncaught TypeError: jQuery.get(...).success is not a function getLibraries http://{site]/administrator/components/com_componentbuilder/assets/js/get_snippets.js?50e431:81 <anonymous> http://[site]/administrator/components/com_componentbuilder/assets/js/get_snippets.js?50e431:16 jQuery 13 mightThrow process setTimeout handler*Deferred/then/resolve/< fire fireWith fire fire fireWith ready completed EventListener.handleEvent* <anonymous> <anonymous>
Thank you for bringing this up. I want to share an update on the current progress and the new direction we're taking with JCB regarding content distribution, including Snippets.
The New SuperPower Implementation
We are moving away from the current Snippets implementation to align it with the recently introduced SuperPower architecture. This approach significantly improves stability, scalability, and maintainability. Here's a high-level overview of how the new system functions:
FieldTypes as a Model:
Repositories and Content Types:
Community-Driven Repositories:
Snippets Migration
We plan to migrate Snippets to the SuperPower system to benefit from this new architecture. This migration will include the following features:
Advantages of the New System
Stability and Scalability:
Flexibility:
Decentralization:
Next Steps
We are finalizing the API implementation and integrating it into the architecture. Once stable, we will:
This new repository-based content distribution system represents a significant step forward for JCB, providing Git-like functionality for managing and sharing component data.
Conclusion
The GetSnippets feature is part of a broader reimplementation effort to align with the new SuperPower architecture. While the existing system has limitations, the new approach will introduce enhanced stability, flexibility, and collaboration opportunities. We appreciate your patience as we continue to refine and deploy this new system.
If you have any further questions or suggestions, please feel free to reach out.
🎉 Update on Snippets: New Contribution Workflow via JCB's Built-In Push Engine
We’re excited to announce that the Snippet system in JCB has been completely rebuilt with a modern Git-based workflow that’s tightly integrated into the builder itself — and this will be part of the next stable release (not yet included in the current beta).
Previously, exporting and sharing snippets was manual and error-prone, involving ZIP files and external tools. That’s now a thing of the past.
🧩 The New Snippet Repository
All official snippets are now maintained here:
👉 https://github.com/joomengine/snippets
This repository is a GitHub mirror of our source repository:
👉 https://git.vdm.dev/joomla/snippets
We encourage everyone to use GitHub for contributions, but both repositories accept pull requests and are kept in sync.
🚀 How to Contribute Snippets (Using JCB’s Native Push Engine)
Contributing snippets is now done entirely from within JCB, using its built-in Git integration. Here's how it works:
✅ Step 1: Fork the Official Snippets Repository
✅ Step 2: Configure the Fork in JCB
Open the Repositories area in JCB.
Add a new repository entry with your forked details.
Set the Content Type to
Snippets
.Provide the following:
main
ordevelop
).✅ Step 3: Push Snippets from JCB
or open an individual snippet and use the “Push” button inside the form.
You can now go to GitHub and open a Pull Request (PR) from your fork to the upstream repository.
Once your PR is reviewed and merged, your snippets will become part of the official collection and be available to all users.
💡 Why This Is a Game-Changer
🐞 Found a Bug?
If you encounter a problem or something doesn't work as expected, please open an issue here:
👉 https://git.vdm.dev/joomla/Component-Builder/issues
💬 Want to Suggest a New Feature or Library?
Join the conversation in our Discussions area:
👉 https://github.com/orgs/joomengine/discussions
By streamlining snippet contributions into JCB itself, we’ve made it faster, safer, and easier than ever to collaborate. This isn't just a fix — it’s a complete reinvention of how JCB users build and share powerful snippets.
Let us know how it works for you! 🚀