Questions tagged [craft3]

For use with questions relating to the Craft 3 version of Craft CMS, including the Beta and RC releases.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Adding fieldset tags to forms

I am new to Craft CMS and is currently using it at work. So there individual text fields created and these field can be imported to a form group and that form group can be used on an entry for the ...
1 vote
1 answer
1k views

Craft 3: admin is showing "500 Internal Server Error" (apache) after fresh install

Just successfully installed a fresh copy of Craft CMS via web browser method under: http://kultursprung.org Frontend is visible but the admin is showing raw Apache error 500 after fresh install: http:...
1 vote
2 answers
138 views

Stop customers from increasing line item

I have a site where the owners want to stop customers from ordering more than 1 type of item. The Twig logic is already in place to stop any forms showing that would allow customers adding more than ...
1 vote
2 answers
500 views

How-to display a dropdown field with optgroups?

The display of a dropdown without optgroups is defined: {% set field = craft.app.fields.getFieldByHandle('<FieldHandle>') %} <select name="fields[<FieldHandle>]"> {% for option ...
1 vote
1 answer
158 views

Updating private repo plugins from admin?

Is it possible to update private repo plugins from the admin at all? Would love that functionality, especially for smaller projects that are installed where there's no CLI access.
1 vote
2 answers
731 views

WARNING: heuristic fragment matching going on! when querying matrix fields or any query with multiple fragment types with Graph QL using Nuxt Apollo

I am relatively new to using Craft Headlessly and am trying to query matrix fields with Nuxt JS and it's Apollo module. I have discovered, that although the graphQL queries work in the GraphiQl ...
3 votes
1 answer
464 views

Displaying errors on frontend user forms

I'm trying to get some feedback for the user on registration when the username already exists but I don't know in which object the errors are. I use the form they provide in the docs: https://docs....
1 vote
1 answer
174 views

CraftCMS Image Transform returning NULL on asset.url when stored on AWS S3 Bucket

So i'm using Craft as a headless CMS with a React frontend. When querying assets on a S3 bucket and applying a transform to them in my GraphQL query the URL response is NULL. This isn't the case when ...
1 vote
1 answer
310 views

Craft Setup 3.6.5.1 with MYSQL with SSL version 5.7.29

I'm trying to install Craft version 3.6.5.1 with MYSQL version 5.7.29 from Azure. While setup it fails with the following error Testing database credentials ... failed: SQLSTATE[HY000] [9002] SSL ...
0 votes
0 answers
22 views

Multiple errors attempting to migrate MariaDB Craft CMS 3 database to PostgreSQL via pgloader. Alternatives?

I've been at this for a couple days now and it's not looking good. I'm trying to migrate a Craft CMS 3.9.5 (latest) database running on MariaDB to Postgres using pgloader 3.6.10. I've attempted this ...
1 vote
1 answer
30 views

Session token error/missing after server switch

I am duplicating a Craft 3 site from a production environment to a dev environment (local with MAMP Pro). On the "new" dev site I can't log into the control panel. The credentials are valid ...
1 vote
2 answers
44 views

Cleaning up twig query with nested and/or where

I have troubles understanding the nested twig query syntax. It works fine in PHP code but somehow when using twig I never seem to get it right. This is my raw, dirty query which I want to clean up a ...
1 vote
1 answer
61 views

How to extend or override CP template?

I need to add some custom condition to the top siteMenu selector. Template file with top menu: vendor/craftcms/cms/src/templates/_elements/sitemenu.twig Block with this menu: vendor/craftcms/cms/...
1 vote
1 answer
51 views

I have an existing project called Craft cms v3.3, what should I do if I want to run it at local?(Mac OS)

I currently have a project that is definitely craft cms v3. I want to run it but this is the first time I keep stressing over it. Please help me
1 vote
1 answer
55 views

Craft 3 DDEV Migration: "No database has been selected yet"

I've hit a snag while trying to move my Craft 3 project from MAMP to DDEV. First I installed a new DDEV project using the php project type and MySQL 8.0 for the database. Then I imported the database ...
1 vote
1 answer
54 views

Updated to PHP version 8.1.22 and one of my Craft 3 sites is getting a critical error

I upgraded my server to PHP 8.1.22 in order to start a new Craft 4 site, and one (but not all) of my existing Craft 3 (3.6.17) sites is giving me the following error. How do I resolve this error? See ...
1 vote
0 answers
36 views

Bulk Entries Migration works on local, but not updating elements in production

I'm trying to bulk update records based on a condition but the entries are NOT getting updated even though the migration seems to go through. Both code samples below work locally but NOT in production ...
0 votes
1 answer
24 views

Redirect control panel access via .htaccess

I have a website that is hosted on a subdomain, let's say: https://subdomain.maindomain.nl. My craft content is in the maindomain/public_html/subdomain/git-module To make it work on the subdomain I ...
0 votes
0 answers
37 views

Prevent user email validation message showing twice In craft panel

When i enter same email which is already exist and click on save it is showing twice message. Can you please tell me it is craft cms's behavior? I have checked by disable custom modules and also ...
0 votes
1 answer
21 views

Upgrading to Craft 3.7 errors

i am trying to upgrade one of my sites up from Craft 3.6.17 to 3.7 and if i try and upgrade at all i just seem to get the following errors: Any ideas what I need to do? Database Exception: SQLSTATE[...
0 votes
0 answers
25 views

Changing Matrix Field Propagation Settings

I built a Craft multisite a few years ago. Most of the site pages feature a content builder matrix field with multiple blocks. Many sections are shared across sites. When I built the site, it seemed ...
1 vote
1 answer
386 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
33 views

Big upgrade completed locally, how to upgrade live?

I have a site that was Craft 3.4 and Commerce 3.x (unsure of exact version). Locally, I've been spent a big chunk of today updating to the latest versions of everything and making sure all still works ...
0 votes
1 answer
248 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
851 views

ERR_EMPTY_RESPONSE when accessing order data (MAMP)

I've got a local installation of Craft 3.0.37 and Craft Commerce 2.0.0-beta.15 running on MAMP. When completing an order, an empty response is given by the browser. The same thing happens when trying ...
1 vote
1 answer
23 views

I want to pull content from a field on an entry into a matrix block that is displayed on that entry, is this possible?

I want to pull content from a field on an entry into a matrix block that is displayed on that entry. I have entries that are shared between multiple sites. I'd like to be able to add a field on these ...
1 vote
1 answer
57 views

How to completely disable entry versioning(drafts) during editing

Obviously I disabled it in the section settings: I just want to save the entry after making all the changes, but now it's trying to save the revision after each single change
1 vote
1 answer
262 views

Update Cart’s address ID from plugin

I want to try and stop Commerce 3 creating a new customer address if it’s a duplicate of an existing one. As an example, a store selling digital products has a checkout form that simply asks for the ...
0 votes
0 answers
28 views

Is there a way to expose User edit history in Control Panel (similar to Entries)?

"Users" version should work like "Entries" versioning work
2 votes
2 answers
4k views

What is the best way to deploy a Craft CMS 3 site?

I'm unclear as to the best way to deploy a Craft CMS 3 site. I'm looking for some best practices and guidance. I'm currently using Rocketeer to deploy the code from my local environment to my staging ...
1 vote
1 answer
36 views

It's possible to display "User" menu history like "Entries" menu history on admin dashboard

Or, Is there any way to modify the recent entries widget and display user history in the same widget
1 vote
1 answer
1k views

how to get request url?

I'm trying to get url from request, {{ craft.app.request.url }} but the uri is chinese, like "localhost/測試", it print out "http://localhost/����" did i miss some setting in craft ...
1 vote
1 answer
46 views

How to differentiate between draft versions in ModelEvent?

craftcms/cms : 3.6 First create new entry and it store as draft then i publish this entry then create a new draft version of this published entry so how to differentiate this is first draft or second ...
1 vote
1 answer
47 views

Syntax for URL route instead of using url parameter

I'm confused by the syntax for URL routes. Using Craft 3. I'm working with two separate category groups and have urls like this: site.com/?parameter=123 site.com/abc?parameter=123 site.com/abc/xyz?...
1 vote
1 answer
224 views

How do I solve "Unknown Property – yii\base\UnknownPropertyException Setting unknown property: craft\fields\Assets::branchLimit"

First of all I am new in CraftCms. I am trying to run the project local which I cloned, so I have a database which I must import to this project. now its giving this error when I finish importing the ...
0 votes
0 answers
37 views

How to list categories only related to enabled entries or disabled child entries

Edit: solved in comments My entries are set up as a parent > child structure. A single entry can either have children or not have any. If parent has children, the children entries are put in a ...
1 vote
1 answer
19 views

Can't disable entry versioning

I've got a page with: 15+ sites (are used for serving different languages), a structure with matrix blocks and super table blocks inside them. It took almost a minute to save an etnry, so I disabled ...
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: ...
1 vote
1 answer
151 views

How to auto enable a plugin after install?

I am developing a plugin for craft 3 and the plugin just got published to the store. I can browse through the store and install the plugin but it stays disabled. The user will have to goto Settings -&...
0 votes
0 answers
29 views

Interface "React\Promise\ExtendedPromiseInterface" not found

So I upgraded the page from Craft 2.9 to latest 3.x.x version. Now I am trying to install a plugin and I get this error - any help? Cheers
1 vote
2 answers
34 views

Help building a query with related to

I'm trying to create an or query with 2 related fields and 1 title field. My version so far is this: $searchQuery->where([ 'or', ['relatedTo', 'targetElement' => $ids, 'field' => '...
0 votes
0 answers
57 views

Duplicate entry '2022' for key 'categorygroups_sites.PRIMARY'

I'm trying to get a live site running locally (using DDEV) and having trouble importing the database. The database is an export from the live site (which is running and has been for a short time). ...
1 vote
1 answer
141 views

Weird issue with craft/setup command

I have been trying to install Craft CMS on Windows. I tried composer: composer create-project craftcms/craft d:\temp\craft After that when I try to craft setup there is a loop on the console which ...
2 votes
2 answers
463 views

Is there any plugin for Blog in Craft 3?

I want to create a Blog website in craft cms. I would like to know, is there any plugin for Blog which we can use in Craft similar kind of WordPress?
1 vote
1 answer
1k views

Craft 3 - Can't access the craft() in plugin controller

I'm making a Craft 3 plugin to read a CSV file and insert the data as Categories. I used pluginfactory.io to scaffold my plugin. I can't access craft() in my controller (ImportCsvController.php). ...
2 votes
1 answer
391 views

Craft 3: Recognize cookies created in Craft 2

In Craft 2, we could set a cookie like this... craft()->userSession->saveCookie() ... and that would make it a state cookie. This thread describes it pretty well. Essentially, you would end up ...
0 votes
1 answer
26 views

Site breaking when I call a custom module up on app.php file

My Craft CMS version 3 site is breaking when I boostrap a custom module up on app.php file. The code looks like this: <?php use craft\helpers\App; return [ 'id' => App::env('APP_ID') ?: '...
1 vote
1 answer
116 views

File Issue "A server Error Occurr" when try to upload the file

When I try to upload the file OR go to the Asset section - I have Server Error Occurr error. In console I see the error that is somehow related with ?p=admin-lime/actions/element-indexes/get-elements ...
1 vote
1 answer
235 views

New to CraftCMS and linking to an existing project using DDEV

The business I work for has just acquired another business whose CMS is CraftCMS. So am totally new to CraftCMS and how it operates. At the moment am finding it a steep / challenging learning curve. ...
1 vote
1 answer
224 views

Do the number of Sites in a Multi-Site have a practical limit?

My use case is creating microsites for hundreds to thousands of customers, allowing them to edit/create their own site. Currently it is set up with channels with auto-created entries for users and no ...

1
2 3 4 5
39