All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
296 views

Database Connection Error after updating from Craft 2 to 3

Good evening all, I am updating a small site from Craft 2 to 3, and after following the instructions in the documents, I loaded up the backend of my site and was greeted with the install screen. I ...
1 vote
2 answers
38 views

Updated plugins keep showing in the control panel and command line

In Craft CMS 4.8.10 I have updated my plugins via command-line and in the control panel and they both come back with the updates successful. But in the control panel the updates continue to appear ...
0 votes
2 answers
20 views

Craft 4.8.0 : Hide some entries to a group of user

I have somes entries : POI-1 POI-2 POI-3 I have two groups of users : Group-1 Group-2 Needs : The Group-1 can edit only POI-1 The Group-2 can edit only POI-2 and POI-3 I see that I can set this ...
0 votes
1 answer
13 views

Reduce Api2PDF requests and store the first visit generated file

I have a page that performs a merge of a series of PDF files through the integration of Api2pdf Craft Plugin in a modified and working version for Craft 4. The problem is that the file gets generated ...
0 votes
0 answers
16 views

500 Status error with Devmode Off

My site loads perfectly fine when I have devMode set to true, but when I keep everything the same except turning devMode to false, it returns a 500 error (probably a server issue). I am really at a ...
0 votes
1 answer
29 views

EVENT_REGISTER_SITE_URL_RULES not working

I have created a custom module and registered a route like this. EVENT::on( UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES, function (...
1 vote
2 answers
107 views

Entries Related by Category with Filler Entries After

At the bottom of an entry I want to display links for eight other posts. To make this useful, what I'd like to do is: start with entries that are related to the post currently being viewed by ...
2 votes
5 answers
1k views

How to check an elements elementType

In Craft 3, I've got a service function that I'm passing either an 'entry' or 'category' element into. I'd like to know how to differentiate between the possible element types; This kinda of works: ...
38 votes
4 answers
21k views

Reset password with MySQL

Is there a way to reset an admin account's password by modifying the MySQL directly? I've found the craft_users table where the hashed password is stored but I don't know how to hash a string so that ...
5 votes
1 answer
979 views

Is there a way to convert a Craft MySQL database to PostgreSQL?

I have an existing Craft installation using MySQL and I've only recently realized the error of my ways and would like to convert the database to PostgreSQL. Is this possible?
0 votes
1 answer
425 views

Express Forms Not Sending Notification Emails

Craft 3.3.0.1 Express Forms 1.0.4 I have an Express Forms set up. It submits and saves entries to the DB which can be viewed in the CP, however email notifications are not sent. Sending a test email ...
1 vote
2 answers
73 views

Recreate {% cache %} content without clearing first

We have a setup where we use Craft's {% cache %} tag to improve performance of certain computing-cost-intensive pages. The expected way to do this is by using the {% cache %} tage and probably improve ...
1 vote
1 answer
39 views

/cpresources in a cloud storage

is it possible to have /cpresources in a cloud storage like Azure BLOB storage and that Craft writes them to the cloud when needed? Thanks!
0 votes
1 answer
26 views

Internal Server Error on Save / Dashboard

A client's site is producing Internal Server Errors randomly in the Craft backend (3.7.53.1). The Dashboard produces an error. Saving certain entries produces an error (especially when enabling ...
1 vote
1 answer
22 views

Change email transport settings based on order site

I've been trying to send Commerce emails via two different domains but I'm having very little luck getting it working fully. In app.php I have something like this: 'mailer' => function() { $...
5 votes
1 answer
1k views

How to order or filter entries by their author's custom field?

Is it possible to order and/or filter all entries from a section whose author has a custom field value that is set to "X"? Below is the starting code. in Twig: {% set elementQuery = craft.entries()...
0 votes
0 answers
18 views

Craft CMS 5 Headless live preview using nuxt not working

I'm not understanding how the preview mode exactly works trough graphql queries for Craft CMS headless. Using Craft CMS 5. From what I read, all I have to do is add the 'token' in the headers of the ...
1 vote
1 answer
28 views

How to disable X-Rewrite-URL Header in Craft CMS 3?

I'm trying to disable the X-Rewrite-URL header from my Craft CMS site. I have already tried disabling it via the secureHeaders setting in the general settings, but it still doesn't work. Remove 'X-...
1 vote
1 answer
25 views

Group matrix blocks by date

I'm trying to group events in a matrix field by day. Each date has a title and start and end time. I would like events for today, tomorrow and any dates beyond grouped separately. This is what I have ...
1 vote
1 answer
417 views

Headless Craft CSRF

I have a site that is using Craft CMS headless and React. There are a few forms that need to post to controllers but I'm not sure how to set up the CSRF tokens and keep it secure. Can anyone advise ...
1 vote
1 answer
18 views

getBodyParam('email') is empty on live server

Trying to debug a form issue which is only happening on a live server (it works on our local environments). The form makes a fetch request (using Javascript) to a route in routes.php which goes to a ...
2 votes
1 answer
67 views

Disable Two-Step Publish Workflow?

I recently updated to Craft v3.6, which appears to have changed the publishing workflow to require first publishing the draft, then saving the file in order to get back to the entries list. Is there ...
0 votes
0 answers
8 views

Filter GraphQL Response Based on Matrix Entry Type

In Craft 5, we now have a few Entry types with Matrix fields that can nest several other Entry types, or none. I'm struggling to work out a way to limit the returned results based on the content of ...
0 votes
0 answers
29 views

How to clear conditional field values when hidden?

In Craft CMS 5, I have several conditional fields that display or hide based on the value of a Category field (single selection). Depending on the selected category, different fields appear: Date, ...
1 vote
1 answer
441 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
119 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'...
15 votes
26 answers
12k views

Recommended hosting company for a Craft site?

Looking through the Google Plus community and Slack chat history, there have been many suggestions regarding hosting for Craft websites. It may not be possible to get a single conclusive answer, but I ...
0 votes
0 answers
16 views

Admin: "Add New Entry" Slide Out Fails - Cannot create new entry

Craft 4.9.2: Slide out creates draft when fields are completed. "Create Entry" results in toast that indicates a server error. No visible error in the logs but console error is: GET https://...
0 votes
0 answers
11 views

Dynamically Load Formie Entry Field Options

I have a Formie multi-page form that has an Entry field set to display as radio buttons. This entry radio field is populated with "Clinic" entries, which are channel type entries. Each ...
3 votes
2 answers
2k views

How do you get a section's ID

I need to access just the ID of a specific section. I do that like this and it works: {% set enroll = craft.sections.getSectionByHandle('workshopEnrollments') %} But when I do: {% for e in enroll %...
0 votes
0 answers
15 views

$0 Stripe Subscriptions

Has anyone successfully figured out how to do a $0 stripe subscription on commerce? Works fine in stripe but the commerce plugin requires a payment source and errors if you provide the payment source ...
1 vote
1 answer
23 views

Formie or Freeform include current page title in submissions and email notifications

I have not decided on which particular plugin to use yet, but i've been all over the docs for both Freeform and Formie trying to find a way to 'capture' the current page title and include it in both ...
1 vote
1 answer
33 views

How to run the queue via CronJob?

I am Using Craft CMS 5.x and the Formie plugin. Form submissions are entered into the Craft CMS queue. When I enter the control panel, the queue runs and notification mails for form submissions are ...
1 vote
1 answer
116 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 / ...
1 vote
1 answer
19 views

Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?

I recently updated Craft Commerce to version 4.6.0, but now whenever I run any Craft commands or navigate to site.com/admin, I encounter the following error: You need to be on at least Craft Commerce ...
17 votes
7 answers
9k views

How to write a simple navigation?

After endless trial and error I figured out the right syntax for a simple one level navigation. {% set navi = craft.entries.section('not projekteintrag' ) %} {% for entry in navi.order('id asc') %} ...
0 votes
1 answer
250 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....
1 vote
1 answer
240 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 ...
1 vote
1 answer
27 views

Setup Craft CMS 5 webroot to htdocs

For a Craft CMS 5 project installed with ddev, how can we make the webroot folder become /htdocs instead of /web? Is this something to be reconfigured after installation, or does it need to be done ...
1 vote
1 answer
112 views

Redactor to CKEditor Migration

Since Redactor is abandoned I've moved to CKEditor. There are plenty of entries with external links that are target blank with rel nofollow added. This has been altered (console command used as ...
2 votes
2 answers
356 views

Nginx Config to serve .json without CORS restriction with ddev

I have Craft 4 installed and use it locally with ddev. Ddev uses nginx in my case and I want to enable serving .json files from a subdirectory within /web. What do I have to add to the nginx.conf file?...
1 vote
0 answers
313 views

Craft CMS Headless - Preview mode

I'm new on craft and I'm using headless mode with a nextJs frontend application. I've tried to configure the preview mode to load the frontend, but I didn't find how to do that. The frontend ...
1 vote
1 answer
23 views

How to get all Matrix block fields in a templated table of all fields

I want to produce a templated table of all fields, including Matrix block fields which belong to their parent Matrix field. I've been scratching around the Craft 4 class reference and getting nowhere. ...
1 vote
1 answer
1k views

Integrity constraint violation - Not null violation

Looking for some help here - I'm working on a site that is using a PostgreSQL db and am running into an issue. When saving a large Matrix field with multiple block types I was receiving the following ...
0 votes
0 answers
16 views

Get events between specific date range

I am building a module that shows the available days in the next month based on the events in the Calendar Plugin. $criteria = Event::find(); $criteria->calendarId = $calendarId; $criteria->...
1 vote
1 answer
128 views

Front end member uploader

Hi I'm fairly new still to CraftCMS. I built one website with it a few years ago and have tinkered with it ever since and I do like it a lot. What I've been asked to do is create a website directory ...
1 vote
1 answer
34 views

Issues uploading and transforming images

I'm running into issues when uploading images, both locally (DDEV) and in staging environments. Attempting to upload images to staging gives a generic: Upload failed for “example-image.jpg" ...
1 vote
1 answer
41 views

CraftCMS S3 Plugin "Unable to write stream to..."

I've setup S3 for Craft plugin, setup the file system, put in the credentials. Fetched the bucket using the Control Panel (Refresh) option. (So it must have permissions to read) though when trying to ...
1 vote
1 answer
16 views

How to get info about an asset via cli?

I have assets configured via azure blob storage and sometimes one of 2 issues is happening : 01. The asset url remains as /en/actions/assets/generate-transform?transformId=45 In this case i would ...
1 vote
1 answer
26 views

Multi language: Multiple tree and single tree?

In TYPO3 (https://typo3.org/), there are two approaches for multilingual websites known as the "One-Tree" and "Multiple-Trees" approach. The Multiple-Trees approach is no problem ...

15 30 50 per page
1
2 3 4 5
289