Hot answers tagged

16 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 ...
user avatar
  • 1,395
13 votes
Accepted

Bulk resave entries to trigger onSaveEntry event

If you re-save the section(s) that your entries are in, it should re-trigger a save of all of the entries. Hope that helps!
user avatar
  • 736
12 votes

"Unknown package has no name defined" composer error on upgrade

Very similar to Devin's answer. I came up against this on Friday and I had to follow these steps to resolve this issue. Nuke the vendor folder within the project. rm -rf vendor/ Nuke the composer....
user avatar
  • 1,834
7 votes

Where is Auto Update?

When the folks at Craft cut a release they can tag an update in one of several ways: One-click Update Manual Update They can also tag their updates with a level of importance: Normal Update ...
user avatar
  • 13.3k
7 votes
Accepted

Craft 3: Update database after CMS upgrade via console command

You can use Yii's migrate console command. Triggered in Craft 3 via craft migrate --type=app.
user avatar
  • 66.5k
7 votes
Accepted

"Craft isn't installed yet" error after updating to Craft 3.1

Have you tried running ./craft setup to double check if your setup is correct? If ./craft setup completes successfully ./craft should find the existing installation and complete any required setup. ...
user avatar
7 votes

"Unknown package has no name defined" composer error on upgrade

The problem seems to be with parsing vendor/composer/installed.json Once I deleted it - install went well. Even without deleting other files. This one is generated one. You can also simply remove ...
user avatar
  • 171
6 votes
Accepted

Composer was unable to install the updates

You'll need to remove every required packages besides the plugins you installed and craftcms/cms as well as vlucas/phpdotenv, clear your vendor folder and run composer update again. For whatever ...
user avatar
5 votes

"Craft isn't installed yet" error after updating to Craft 3.1

You can get this error message even if Craft installation is OK. If you work in MAMP environment and have this error message, check if your PHP and MySQL are available from command line (Terminal). ...
user avatar
5 votes

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

Also wanted to chime in here, that you should try running ./craft project-config/rebuild even if you're not using project.yaml. Internally, Craft uses the project config functionality even if you're ...
user avatar
  • 3,402
5 votes

"Unknown package has no name defined" composer error on upgrade

I managed to solve this by running: rm -rf vendor/ rm composer.lock At this point, the error still persisted when running composer update or composer dumpauto but then after running: composer ...
user avatar
4 votes

Best method to update Craft on a live site to avoid losing data

I’ve written a plugin that allows to announce scheduled maintenance in the CP and on the front-end by making use of the template variables it provides. https://github.com/carlcs/craft-maintenance ...
user avatar
  • 35.9k
4 votes

Is it safe to make the 'app' folder writeable by the web server?

Security is not off or on, it's layers of an onion. Anything you do has to factor into the bigger picture. My layers include: What user does the web server run as? What user is your content? Your ...
user avatar
  • 6,477
4 votes

Bulk resave entries to trigger onSaveEntry event

Craft can now do this via the CLI https://craftcms.com/docs/3.x/console-commands.html#resave-entries
user avatar
4 votes

DB Update Trigger

My dilemma is that for the DB updates to run for Craft, I have to hit visit the control panel and initiate them. Currently true, but only if a new database migration has been introduced during the ...
user avatar
  • 66.5k
4 votes

ext-zip trouble

None of various attempts to get ext-zip going under Catalina had worked for me, including the above, but here’s what did, with thanks to Chad for showing the essence of the issue: “the Craft system ...
user avatar
3 votes

Manual update to 2.6.2931

Replace the /app folder, per the Manual Update instructions. It sounds like you may have already done this, but rolled it back. Once the new /app folder is in place, you must visit the admin section. ...
user avatar
  • 23.6k
3 votes

Did a crtitical update now getting errors

Most likely you've got an Assets field inside of a Matrix field somewhere on your site and you're referencing project-images/{slug} in that field's upload location setting when it should be project-...
user avatar
  • 66.5k
3 votes

PHP error after one click update

This has been fixed in Craft 2.6.2804.
user avatar
3 votes

Cannot update Craft, only download the zip

You can do manual installs easily, all you really need it's the app folder inside the craft folder. but don't just replace it. I would rename the new app folder to something like "app-new" move it ...
user avatar
  • 191
3 votes

Best method to update Craft on a live site to avoid losing data

I think you're asking the IT equivalent of "If I go outside when it's storming, how can I not be hit by lightning?" There's always going to be that chance. When you run a public server, that'...
user avatar
  • 6,477
3 votes
Accepted

Craft is unable to determine if an update is available at this time

You're getting that error message because there is an existing craft/config/license.key file in place for your local installation and there is no record of that install on the Craft/web service end. ...
user avatar
  • 66.5k
3 votes
Accepted

Getting HTTP 500 error at end of update process when going from Craft 2 to Craft 3 with MAMP

Try switching MAMP out of Fast CGI mode. Go to the PHP Tab and select "Identical PHP Version for all hosts (Module mode)". Restart the servers and then. Then run the update. You can normally switch ...
user avatar
  • 1,999
3 votes
Accepted

Can't update or install plugins locally, macOS

error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version Your local OpenSSL setup is trying to connect with an older, insecure TLS 1.0 protocol, which Github (and a lot of ...
user avatar
  • 66.5k
3 votes
Accepted

Can't update past 3.0.15

I had a similar issue - update your composer.json file as per this question: Composer was unable to install the updates Alot of additional things may have got added to your composer.json file.
user avatar
  • 1,769
3 votes
Accepted

How to determine source of Elements save event

First, you'll want to check if what is being saved is a draft or revision, and if so, ignore it for your purposes. You can check via: use craft\helpers\ElementHelper; if (!ElementHelper::...
user avatar
3 votes

"Unknown package has no name defined" composer error on upgrade

rm vendor/composer/installed.json composer install Maybe installed.json was generated with composer 2.x and you are trying run it now with composer 1.6 or 1.8. Also maybe update composer it also ...
user avatar
  • 131
2 votes

500 error on updating Craft

Step 01. Open your php.ini file. File path for php 5.6: /etc/php/5.6/apache2/php.ini File path for php 7.1: /etc/php/7.1/apache2/php.ini Step 02: Then increase max_exection_time from 30 to 300 or ...
user avatar
  • 185
2 votes
Accepted

Invalid path after Craft update

In whatever Section you're getting that error in, you've got an Assets field inside of Matrix (or possibly SuperTable) and that Assets field has “Restrict uploads to a single folder” set and you've ...
user avatar
  • 66.5k
2 votes
Accepted

Updating Craft Produced Fatal Error.What now?

How big is your database? It could be that Craft is failing to backup your database as part of the update process because it is running out of memory. Try setting the backupDbOnUpdate config setting ...
user avatar

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