New answers tagged

1 vote

How can i disable channel list url?

Craft doesn't have any default routes for the frontend. So if you're seeing anything else than a 404 page on your /services route, it's because you've put something there. The routing documentation ...
user avatar
  • 6,360
0 votes

Problem running a sale on the site

My suggestion: The discounted price will only be shown for the item already ADDED to the cart. {% for lineItem in cart.lineItems %} {{ dump(lineItem.total) }} {% endfor %} https://i.imgur.com/VDs6NwD....
user avatar
  • 101
0 votes

Using MySQL With just InnoDB storage engine

Craft CMS 4.1 now creates the searchindex table as InnoDB by default, because the minimum MySQL version Craft CMS 4 supports will always ensure that full text searching support is available with ...
user avatar
0 votes
Accepted

Is re-running the ConvertEntryRevisions queue job safe to run after migration to Craft CMS 3.7?

After testing this on development/staging environments, I can confirm it is safe to run. When it originally ran, it likely failed due to exceeding the TTR. Looking at the queue job, simplified it is ...
user avatar
0 votes

Best way to find current/pending jobs without knowing their ID in the queue

It's not entirely clear what your goal is, but when a job is pushed onto the queue, a job id is returned which you can store and later query. $jobId = Craft::$app->getQueue()->push($job); $...
user avatar
  • 6,226
0 votes

Deleting Duplicate Fields Brings down Craft Website and Server

Pardon me, I wrote this based on my memory. The table name is read from Yaml file. But the database doesn't have the table. -> This means you did remove the table once, but due to project.yaml ...
user avatar
0 votes
Accepted

Plugin install/remove causes fatal error on local

For those that are experiencing the same issue, update your compser.json file to look like this: "config": { "allow-plugins": { "craftcms/plugin-installer&...
user avatar
0 votes

500 Internal erroron admin - session related

I found it. There were some files in my web folder that had the reference to session.save variable with that old path for php7. Both .user.ini and php.ini had the following line: session.save_path = &...
user avatar
0 votes

trying to insert super table field values using graphql in craft cms

since super table doesn't have block name like matrix and neo field. it required to points using block id. need modification in plugin code and try. refer following link for reference and its working ...
user avatar
3 votes

Recommended caches to clear after server deployments?

I recommend clearing all caches on deploy via clear-caches/all. Caches should not be used to mask performance issues, they are used to solve concurrency & scaling, by holding onto data that doesn'...
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
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
  • 101
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

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

Top 50 recent answers are included