Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
17 votes

Invalid plugin: No plugin exists with the handle - Craft 3

For future reference, I had the same error and resolved it with Craft Support. In my case the project.yaml file got out of sync with what was in the database. Running craft project-config/rebuild ...
mjr's user avatar
  • 1,405
12 votes
Accepted

How can I print the name of every template being rendered in HTML comments, when in devMode?

So this sounded like a fun problem to solve... so I wrote the Template Comments plugin that does what you want: This free plugin adds a HTML comment to demarcate {% block %}s and each Twig template ...
andrew.welch's user avatar
  • 11.6k
11 votes
Accepted

Tasks and Steps

You can implement your entire Task with a single step if you want. The only point of breaking it into multiple steps is so the task progress bar has an idea of how far along the task is. In your case,...
Brandon Kelly's user avatar
10 votes
Accepted

Plugin settings - file field upload location

Unfortunately, a simple HTML file input on its own isn't enough to upload an image (in Craft or anywhere else) – the input simply exposes the file on your local filesystem to the browser/server. In ...
Mats Mikkel Rummelhoff's user avatar
10 votes
Accepted

how to uninstall a plugin when there is no cp option

It isn't possible to uninstall a disabled plugin; you'll need to first enable the plugin, and then the Uninstall option will be available. The correct way to remove a plugin is actually to first ...
Mats Mikkel Rummelhoff's user avatar
9 votes

How do I add custom styles/plugins to the rich text editor in Craft?

It's worth noting that as of Craft 2.5, it's now using Redactor II, so the above code examples don't work if you have upgraded. Here's a working JSON config example you can build on: { "buttons": ...
neekster's user avatar
  • 403
8 votes
Accepted

Cannot declare class because the name is already in use

At this point, after much playing around it seems to be working (at least on to the next bit of debugging). To sum up, it was mostly changes to composer.json, followed by composer remove kr37/...
kr37's user avatar
  • 1,355
7 votes
Accepted

Are there any plugins for Craft 3?

Update: Since Craft 3 was officially released (4/4/18), all plugins can be found in the Craft Plugin Store! Original: Now that the Craft 3 Beta is out and we’re done making breaking changes to ...
7 votes
Accepted

Manual Plugin installation on Craft 3

You have to create the folder where you want to include your plugins by yourself. There are no requirements how you name it. Let's say you want to create the folder plugins in your Craft folder, then ...
Robin Schambach's user avatar
6 votes

How can I check if a plugin is installed and enabled?

For craft cms 3 {% set plugin = craft.app.plugins.getPlugin('plugin-handle', false) %} {% if plugin is not null and plugin.isInstalled %} .... call plugin related stuff here ..... {% endif %} ...
inrsaurabh's user avatar
6 votes

How to build a transactional email platform with Craft

This answer will focus on using Sprout Email for transactional emails. Transactional Emails First, a comment on semantics. I feel the question above is drawing a distinction between two types of ...
Ben Parizek's user avatar
  • 13.5k
6 votes
Accepted

Does anyone use Craft CMS to set up an intranet for client?

There currently isn't a single plugin that does everything that BuddyPress does. There are calender plugins, commenting plugins, social login and oauth plugins and Craft Pro has built-in front-end ...
Brad Bell's user avatar
  • 67.5k
6 votes
Accepted

Store Hours (group days by hours)

I think I have a solution to this problem, but it's kind of complicated. There may be a way to simplify this more. The basic idea is to loop thru your Store Hours field (entry.hoursOfOperation) and ...
Alex Roper's user avatar
  • 2,632
6 votes

Plugins not showing in Admin

Probably the name of the folder isn't the plugin handle. Check inside the plugin's folder to see if the actual plugin folder is inside there. For instance: forge@nys-production ~/nystudio107.com/...
andrew.welch's user avatar
  • 11.6k
6 votes
Accepted

How can I check if a plugin is installed and enabled, in Craft 3?

PHP \Craft::$app->plugins->isPluginInstalled('plugin-handle') Twig {% set installed = craft.app.plugins.isPluginInstalled('plugin-handle') %} There is also a isPluginDisabled and a ...
Robin Schambach's user avatar
6 votes
Accepted

Unable to delete plugin

Although I'm not in favor of the nuclear option in international politics, it works very fine and simply this case. Brad's suggestion of deleting the craft/vendor folder and composer.lock and then ...
kr37's user avatar
  • 1,355
6 votes

Looking for an advanced form plugin for Craft CMS

To answer your questions in regards to how they will fit with Freeform... If what you mean by pre-populating fields with existing data is being able to fill fields with data from other elements, ...
Solspace's user avatar
  • 1,410
5 votes

Cannot enable Craft plugin in control panel

My guess is it's a case sensitivity issue with the main plugin class/file name (some operating systems have case sensitive filesystems and some don't). You can review the requirements for how things ...
Brad Bell's user avatar
  • 67.5k
5 votes

Move unused Assets to a specific Folder

I found the solution: The moveFiles function provide the function to move a file: /** * Move or rename files. * * @param $fileIds * @param $folderId * @param string $filename If this is ...
Tom Bauer's user avatar
  • 1,327
5 votes
Accepted

Validate a lineItem option within a plugin?

I've achieved something similar but used commerce_lineItems.onBeforeSaveLineItem. This event is fired every time a line item is created or edited. Fired on /updateCart (product page) or /...
Luke Pearce's user avatar
  • 3,863
5 votes

How can I set a BOGOF (Buy One, Get One Free) promotion using Craft Commerce?

I've used a relatively simple plugin to listen to commerce_cart.onBeforeAddToCartwhich checks what is being added to a cart and if it is a certain item it will automatically add the free item to the ...
Jeremy Daalder's user avatar
5 votes
Accepted

Hacksaw replacing "&" with "&"

You could try to fight that ampersand with the htmlEntityDecode filter that is included in my Craft Helpers plugin https://github.com/carlcs/craft-helpers
carlcs's user avatar
  • 36.3k
5 votes
Accepted

Get parent entry from a section using the Element API

A couple of issues: First, the EntryModel::getParent() method returns an EntryModel, not an ElementCriteriaModel, which means that calling getParent()->first() will throw an exception. In other ...
Mats Mikkel Rummelhoff's user avatar
5 votes

SEOMATIC v1.1.45 install

To update plugins like SeoMatic, just download the latest (either clicking on the direct download link from the /admin/updates/ page in your admin area or from github). Then you just then need to ...
alexr's user avatar
  • 618
5 votes
Accepted

Plugins not showing in Admin

I'm an idiot. In the Settings area, I was expecting the plugin to show up in the Plugin section after uploading. Don't know why, but noticed last night that under the System section, there was a ...
Shad's user avatar
  • 451
5 votes
Accepted

How can I loop through my entries to export them using Beam?

This is what I ended up doing... obviously remove anything that is specific to your project. But this essentially will export all fields and entries from a passed in sectionHandle as a URL Param. {# @...
andrew.welch's user avatar
  • 11.6k
5 votes
Accepted

Plugin Store install buttons are not visible

Most likely you have the allowUpdates config setting in your config/general.php file set to false.
Brad Bell's user avatar
  • 67.5k
5 votes

How to delete tags in Craft CMS 3

Yes the same still applies. You can either delete it via DB directly in your {{%elements}} column or you can just run PHP Craft::$app->getElements()->deleteElementById(x) Twig {% do craft....
Robin Schambach's user avatar
5 votes
Accepted

How to delete tags in Craft CMS 3

I do believe this plugin can help? https://github.com/ethercreative/tags
Jay's user avatar
  • 1,042
5 votes
Accepted

Can't Install Plugin Via Composer

From looking at your plugin's composer.json file, I think you've got the package name wrong – instead of composer require kgrote/siteutilities you'll probably want composer require kgrote/site-...
Mats Mikkel Rummelhoff's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible