Hot answers tagged

2 votes
Accepted

Getting error in craft cms after composer update

Troubleshooting this in a separate discussion, the issue is that the DB has a version and schemaVersion of 3.7.x, where as the composer project is fixed at 3.3.10. At some point something has ...
user avatar
2 votes
Accepted

Craft warning: Attempting to set settings on a plugin that doesn't have settings: [handle]

I think I've figured it out, it would appear looking at project config that the field settings have been added as plugin settings under the plugins config key, looking at one project: tablemaker: ...
user avatar
2 votes
Accepted

How I'll get the orderId in EVENT_AFTER_COMPLETE_ORDER in craft commerce?

Since it's a property-read, you can't do it with Order as an element, but you can try to deal with it via recorders, something like that use yii\base\Event; use craft\commerce\elements\Order; use ...
user avatar
1 vote

Recommended caches to clear after server deployments?

This is a complicated question, because... it depends :) Clearing all the caches is often cited as a good practice, because it completely avoids any potential problems due to stale data, during or ...
user avatar
1 vote

Installation issues of Nitro Craft on Linux

To answer myself, permissions were problem. After nitro create, had to set 777 permissions to that newly created folder and run nitro composer install. Than nitro craft setup installs everything ...
user avatar
1 vote
Accepted

Sprig resets value on render

You can maintain state within your component either by using a hidden input field: {{ hiddenInput('count', count) }} Or by adding another s-val attribute to each button. <button sprig s-val:count=&...
user avatar
  • 6,226
1 vote

Pedigree In channel type entry

This is a rather extensive topic and there are multiple ways to solve it. First, are you sure you need that kind of graphical tree diagram for the input field? Because that's gonna be a a bit involved....
user avatar
  • 6,315
1 vote

How do you upload an asset via an API or GraphQL

An Asset mutation looks like this: mutation MyMutation( $filename: String = "", $url: String = "", $title: String = "" ) { save_assets_Asset( _file: {...
user avatar
  • 7,160
1 vote
Accepted

Entry query on field using the `and` parameter

The problem here is join(",") as it is returning a string of your values, something like "123, 456" instead of a comma separated list of int as you expect. Try this: {# Create an ...
user avatar
  • 7,160
1 vote

Import large number of entries every day - 1 million

I've recently looked at this problem myself due to having feeds that lack any pagination capability e.g. CSV file and while you can offload the queue to a completely separate worker process to avoid ...
user avatar

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