Recently Active Questions
14,621 questions
0
votes
1
answer
33
views
Excluding entries with a certain category from a query
I'm trying to build a search page on a Craft 3.x site that returns results based on values in the query string. That part I've got working OK with the code below:
{% if craft.app.request....
0
votes
1
answer
52
views
Entries Live Preview Only Reflects Changes After 'Save' and Not On Drafts
I just started using CraftCMS Pro 5.4.6 without access to the backend (only Control Panel), so did my limited research to the best of my ability.
When I'm creating entries, the 'Preview' button ...
1
vote
1
answer
475
views
Craft 3 - Moving assets between folders causes apache connection to max out
In Craft 3, I keep running into an issue when I try to move a large amount of files (around 200) by dragging and dropping from my “Holding” folder into a “Live” folder using Craft Assets section. Both ...
1
vote
1
answer
132
views
Updates always error out
Every time I try to run an update, I get these errors. Installing plugins won't work either. I'm using Media Temple / Grid server hosting. I've increased the file size limits in php.ini as well. But I'...
0
votes
1
answer
24
views
Custom field value as toEmail with CraftCMS Contact Form
Is it possible to set a recipients email address via a custom field with the Contact Form plugin?
I have tried using
{% set recipient = entry.recipientEmail %}
And then hashing the recipient variable ...
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
1
answer
371
views
Amazon S3/Cloudfront bucket providing "Unable to check if <img> exists" error when uploading an asset
I have just set up my first S3/CloudFront service to handle assets and it all seems to be connected right, but when I upload an asset into the volume that is stored on S3, I get this odd error in ...
1
vote
1
answer
133
views
Within the CP, how can I filter the listed Entries based on a Lightswitch field value?
I tried these kind of searches in the CP search field (on top of the Entry list):
fieldHandle:true / fieldHandle:false
fieldHandle:1 / fieldHandle:0
fieldHandle:* / -fieldHandle:*
fieldHandle:not 1 / ...
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
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
262
views
An unknown error has occurred in asset reindex
I am getting the error: An unknown error occurred for each file in a folder when I try Update Asset Indexes. The folder is a local folder that is outside of webroot. The files just contain json data....
0
votes
1
answer
27
views
Preview in a Craft 5 multisite setup
I am developing a multisite project in Craft 5. There are three different sites, each with their own unique domain. Each site uses the same templates, but each has its own unique content, e.g. they ...
1
vote
1
answer
298
views
Upgrading to 3.7.26 causes tempnam() error from twig's FilesystemCache.php
I am upgrading a Craft project that I have been neglecting for a little bit too long. I am upgrading to 3.7.26 from 3.4.25; on top of this, I am upgrading from PHP 7.1 to PHP 7.4.
I'm also updating a ...
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 }
...
1
vote
1
answer
56
views
Craft CMS 5 Ddev local build suddenly giving 404 page
I recently deployed a local Craft CMS install to our server and took several steps to prepare, including setting the site offline using an offline.php template and configuring a .env file to connect ...