Newest Questions
14,621 questions
0
votes
0
answers
7
views
How do I make a link clear a sprig variable and trigger a reload?
I'm using Sprig to filter a set of results. The filter values are shown as 'chips' which - when clicked on - remove that filter selection.
I know I can re-render the component with a simple sprig ...
0
votes
0
answers
8
views
Craft Commerce getShippingCategory() returns null
I have a Craft Commerce store up and running — everything was great.
I got tangled up in the Shipping Methods — a small parcel shipping method was appearing when it shouldn’t. So I figured I’d delete ...
0
votes
1
answer
20
views
Factors that influence rendering time and memory consumption
We are currently trying to improve one of our project's performance and therefor I try to understand factors that influence a page's rendering time and memory consumption.
Before optimizing complex ...
0
votes
1
answer
14
views
How to make asset path work for nested matrix asset fields
So I have one asset field used in three contexts:
asset field directly in the entry { slug }
asset field in a matrix field { owner.slug }
asset field in a nested matrix field: { owner.owner.slug }
...
0
votes
0
answers
10
views
How to determine if an entry is new or a published entry on the entry edit page
I want a lightswitch to default to on if the entry is new. I originally checked for whether or not $entry->postDate is null, but postDate is already defined set to what seems like the timestamp ...
0
votes
1
answer
9
views
Craft cache for latest articles block - when there are 3 instances of it. What is the best approach?
I have a block of code at pulls in the 2 latest articles and ensures not the article of the current page.
I want to cache this as a separate piece of content, to ensure the whole article is not cache ...
0
votes
0
answers
18
views
How to manage a growing searchindex table with Craft CMS 5 + Commerce 5 (FeedMe imports)
I am running a large Craft CMS 5 website using Commerce 5.
We have a growing number of products and entries, and we regularly import new products via FeedMe.
The issue we are facing is that the ...
0
votes
1
answer
43
views
Failed Craft update to 5.7.3
Updated from 5.7 and got an error: /var/www/html/public/craft-resources doesn’t exist.
I tried restoring to the pre update state, but the error persists. The error message includes this line:
throw ...
0
votes
1
answer
64
views
Composer dependency conflicts in updating to Craft CMS breakpoint version 3.7.27.2
I am trying my darndest to update an older site (Craft v3.5.15.1) in light of the recent critical security vulnerability warnings, but all my update efforts in both development and live environments ...
0
votes
0
answers
16
views
Database exception regarding missing columns after Craft & Commerce upgrade
I'm upgrading a site from Craft 4 to 5, including upgrading Craft Commerce and Stripe for Commerce.
I've followed the upgrade docs and composer update has completed successfully - but now the front-...
0
votes
0
answers
9
views
Set dateCreated via GraphQL mutation
I'm currently creating a database where the status of objects is recorded.
Those objects get checked from time to time and then the entry of this object is updated.
Using the revisions of the entry, ...
0
votes
1
answer
18
views
Delete all entries: console command not working
I have a lot of test data I now want to get rid of. Using the CP, I can only select 100 entries and delete them, this is not very practical for me.
I found out, that there is a Console Command ...
0
votes
0
answers
9
views
Related Entries (Entry Field type) duplicating on save
When i save an entry that has a matrix field with a block called "Related Entries" which is an entries field type, on save its duplicating. So if i related "Entry 1" , after saving ...
0
votes
1
answer
24
views
Update failes on shared hosting; php not found
I transferred a site running with Craft 5 to a shared hosting environment. When I try to update Craft via the CP, I get the following error
Error: The command "'php' '/home/xyz/storage/runtime/...
0
votes
2
answers
28
views
Google search console complains about urls containing x-craft-live-preview
We have been having issues with a website that is receiving a poor indexing score on the google search console.
One of the issues google complains about is that we have 60K links that have a no-index ...