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
1 answer
21 views

Discord Link dead? [closed]

Anyone have the correct invite link for discord? The one on the craft site is invalid. Here is the one on the website: https://discord.com/invite/uuDFCTX
user avatar
  • 29
0 votes
0 answers
30 views

500 errors, fix them then lose plugins and site won't load

I've been going around in circles. Moved a site yesterday, all seemed OK. Went to install a plugin this evening, and got a fatal error (I had been getting the same error when transferring the site, ...
user avatar
0 votes
0 answers
41 views

Guest Entries form freezing site after Craft update

I'm using this answer along with the Guest Entries plugin to allow guest users to edit entries via a frontend form. It was working beautifully before, and after updating Craft it's now taking ages and ...
user avatar
  • 249
0 votes
0 answers
39 views

Need help combining an item with free shipping and an item with paid for shipping

Hi I'm going around in circles with Craft Commerce shipping functionality and I don't mind saying I'm pretty confused. This should, however, be fairly simple to solve... hopefully. My website has a ...
user avatar
  • 299
1 vote
1 answer
37 views

How to create a follow system "button" for "Event" entries?

First of all, Please excuse my English Q: I have a section called "Events" And and has some entries On the front-end i have a list of card "Events" and each card has a "...
user avatar
  • 125
1 vote
1 answer
38 views

What's the attribute of a Matrix field to add error message

I try to validate some fields before saving the entry, if the field is invalid, prevent the entry from saving and return the error message, I'm doing it via Element::EVENT_BEFORE_SAVE event. It works ...
user avatar
  • 27
0 votes
1 answer
47 views

How to bind JavaScript events to entry form fields in the control panel

When adding an entry, there is a field called resource id, I want to build a front end event on this field, after the value input or changed, trigger ajax to call an external api to check whether the ...
user avatar
  • 27
1 vote
1 answer
22 views

Composer Unexpected end of file on new plugin

I'm making a new Plugin for CraftCMS, it works fine locally but when I call the services class on our staging server it throws a Syntax Error, Unexpected end of file. I've installed them both through ...
user avatar
1 vote
1 answer
13 views

Settings for redactor's plugin Special characters

Is there a way to adjust Special Characters plugin's list of characters in Redactor settings (or in other config file)? I can make the changes I need (reduce plugins menu, add new characters) directly ...
user avatar
  • 65
1 vote
1 answer
23 views

how to write db-commands on custom table (PHP syntax) inside twig file?

if i have a custom table (ct_table) and i have to use MySQLi commands on it using the PHP syntax, it won't work if i put the PHP snippets inside a twig file. So are there any tools or official methods ...
user avatar
  • 125
0 votes
0 answers
100 views

internal server error when creating new field

whenever i try to save a new field I get an internal server error in the backend of craft 3. This happens whenever i want to create or modify a field that has an input like date, plain text, reactor......
user avatar
1 vote
1 answer
48 views

Do i need a [ Craft PRO ] to create accounts/User management for my LMS website?

I'm still a new to Craft and trying to make an LMS website when i started to search about the [ Sign up/Sign in ] i read that the official docs : https://craftcms.com/knowledge-base/front-end-user-...
user avatar
  • 125
1 vote
1 answer
34 views

Limit elementSelectField to specific sections

How do I limit this elementSelectField to only allow entries within a certain section? {{ forms.elementSelectField({ label: 'Blog post', name: 'blogpost', elementType: 'craft\\elements\\Entry', ...
user avatar
  • 147
1 vote
1 answer
61 views

Redirect to Craft CMS Website Results in 403 "Request forbidden by administrative rules"

My Setup I added a stripe checkout redirect from my craft website using Stripe Checkout so I can accept payments from customers using payments handled by stripe. In simple, I use AJAX on the frontend ...
user avatar
  • 21
0 votes
0 answers
105 views

HTTP 400 – Bad Request – yii\web\BadRequestHttpException

Hi I'm getting this error on every other save when in the page editor in Craft CMS: HTTP 404 – Not Found – yii\web\NotFoundHttpException Draft not found The only things I am certain of are: The error ...
user avatar
  • 299
0 votes
0 answers
16 views

How to select entries based on site group?

I have multiple sites with multiple languages. In Craft 3, each language is a separate site, we can group them by site group. For example, In the USA site group, I have USA - English and USA - Chinese....
user avatar
0 votes
0 answers
85 views

Craft Commerce/Sprig - change add to cart button dependent on what is in cart

I am using Craft Commerce with Sprig and I am hoping to get some help with the add to cart button, which I need to change dynamically dependent on what is already in the cart. Essentially I have two ...
user avatar
  • 1
4 votes
2 answers
514 views

Get array of titles instead of whole collection of entries' attributes

I know that to get the entries I can do: craft.entries.all() but instead of getting the whole collection of entries, I would like to get an array of titles from those entries (or any other field). ...
user avatar
0 votes
0 answers
12 views

How to apply discount after taxes in Craft Commerce

I have a unique situation where the discount applied must be done AFTER taxes are applied to the total cart price. Can I reorganize the discounts to come after tax? Or is there another way to make it ...
user avatar
0 votes
0 answers
17 views

How to display entry on home page from backend

I am using a version of 3.6 I want to display data on the homepage from the backend when I'm trying with {{ entry.displayName }} then getting an error Variable "entry" does not exist. how to ...
user avatar
1 vote
1 answer
69 views

Eager loading a photo within a matrix field

Thanks to some help recieved on another question I have discovered Eager loading which makes a lot of sense. I am now trying to output an image from a matrix field. I am part way there as my imageAlt ...
user avatar
1 vote
1 answer
44 views

Output post category

I have created a blog channel and a blog category along with a category field. Now I wish output the category within the blog post. {% set categoryEntry = craft.categories().group('blog') %} {% set ...
user avatar
1 vote
1 answer
23 views

Output Matrix field within Channel

Very new to craft and hence sorry if this is very basic. I have created a service channel which contains some matrix fields. One for a list and one for button. My approach here may be wrong and hence ...
user avatar
0 votes
0 answers
51 views

Craft CMS starts throwing HTTP status 500 after a few hours of uptime

I'm working on a "hello world" Craft CMS deployment to AWS ECS. To build my Craft CMS Docker images I use the official base image craftcms/nginx:8.0. The first few hours after the deployment,...
user avatar
0 votes
0 answers
36 views

How can we create the Martix type field?

In Plugin development, I have created a field, Is it possible to create a field as a matrix field or I will have to create custom add more functionality?
user avatar
0 votes
0 answers
245 views

SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''

My website is running on Fortrabbit with the following settings: PHP version 7.4.15 OS version Linux 4.15.0-50-generic Database driver & version MySQL 8.0.23 Image driver & version Imagick ...
user avatar
1 vote
1 answer
108 views

How to display controller response on twig template?

In the plugin, I created a form and after the process, return the below response from the controller and redirect to the template. I am trying to print the response to the template but it's not ...
user avatar
0 votes
0 answers
48 views

CraftCMS + ReactJS (NextJS) send form

I build a website which has the frontend in NextJS and the backend is Craft. Everything works fine except for the emails. Does anyone have any experience on how I can send the submitted form to the ...
user avatar
  • 151
1 vote
2 answers
153 views

Generating srcset in a similar way to WordPress

I come from a WordPress background, so I'm attempting to create responsive images the way I'm accustomed to with WordPress. Perhaps that's the wrong approach, I'm not sure. In WordPress I would ...
user avatar
  • 111
1 vote
1 answer
87 views

Post Request Required Error Solspace Freeform

I installed Solspace Freeform onto a new site and am getting this error on form submission.
user avatar
0 votes
0 answers
149 views

Guzzle fatal error using Craft Guzzle client

Using the code below to get 3rd party API $uri = $baseUri . '/area/' . $areaId . '.geojson?api_key=' . $mapAPIkey; $client = Craft::createGuzzleClient(); $response= $client->request('...
user avatar
  • 1,900
0 votes
0 answers
42 views

Error uploading to asset field from front end form

I'm getting an error when uploading to an asset field from a front end form during entry creation. SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "...
user avatar
1 vote
2 answers
159 views

Send automated emails to users that haven't logged in for X amount of time

What would be the preferred method to send an automated email to users that haven't logged in for a set amount of time? Let's say for a month. Are there any plugins that have this feature, or will it ...
user avatar
  • 37
0 votes
0 answers
13 views

Running a a join query in a plugin with a background job API call

I'm working on a plugin and need some steering. I have two sets of entries that are linked by a foreign key value. (They are not related entries but lsoaname value corresponds to a field in 2nd set of ...
user avatar
  • 1,900
1 vote
1 answer
78 views

Search query for assets

I build a search component, and it works fine. Now I would like to show all the uploaded assets from a specific page ("Downloads") in the search results that include the search key. How can ...
user avatar
  • 151
0 votes
0 answers
37 views

Craft CMS site with 5 second server responses?

After recent changes on our Craft site and the DB, we are experiencing 5-second server response times. The server checks out and it looks like scripts or the DB itself causing this as a basic HTML ...
user avatar
  • 1
1 vote
1 answer
66 views

Is there a way to query for structure Entries that have no Parent?

Suppose I have a structure Section with Entries like this: Parent A Child X Parent B Parent C Child Y How would I return this list of Entries? [Parent A, Parent B, Parent C]
user avatar
  • 11
0 votes
0 answers
58 views

Category’s group (1) is not enabled for site (1). when moving site?

I've moved my site over, importing from the previous one using the project folder. When trying to do a feedme import I'm getting the following error with Categories: Category’s group (1) is not ...
user avatar
  • 1,230
1 vote
1 answer
65 views

Can some one explain Event rules in plugins

So here is what I see in a controller: $event->rules['cpActionTrigger1'] = 'plugin/default/do-something'; What does the first part 'cpActionTrigger1' refer to and what does the second part refer ...
user avatar
  • 1,900
1 vote
1 answer
37 views

Multiple login forms

I have a need for 2 different login forms: customers and professionals. Each login form is slightly different in markup and heading and has different linkages to the registrations form(s) if a visitor ...
user avatar
1 vote
1 answer
92 views

Filter a channel entry by dropdown value inside a matrix related filed

I have a channel called 'people' where a dropdown is used to say if they like 'cricket' or 'football' Inside a matrix related entry I am trying to show what they like from that dropdown field value ...
user avatar
1 vote
2 answers
97 views

Specific emails failing in queue

I have craft 3.7.11 with commerce 3.4.2 installed. The majority of site emails send correctly, but every few days, one order status change email fails. The prior emails for these orders send correctly,...
user avatar
0 votes
1 answer
37 views

How to alter CP entry edit form

On an entry edit form I'd like to alter the options in a multiselect field to be user relative. Is there something like a form_alter hook?
user avatar
  • 387
0 votes
0 answers
46 views

Craft not using correct URL on Entries' list link button

I'm using Craft as a headless CMS and when I click on the entry link at the entries' list it uses the Craft Server URL instead of the correct frontend URL (See images). For example: https://craft-...
user avatar
0 votes
0 answers
28 views

Commerce Shipping/Tax Estimates

Within the checkout flow, I am looking to offer an up to date 'shipping/tax' estimation. Looking through the Craft Commerce docs, I found the 'Estimate Cart Addresses' (https://craftcms.com/docs/...
user avatar
  • 101
0 votes
0 answers
18 views

Images get stuck as temporary when uploaded to an Asset Field in a Matrix Block where the storage path contains the block ID

I'm facing an issue, and possibly a bug or an un-fixable kind of logical issue, where I have a Matrix Block with an Assets Field inside of it. The storage path for the Assets field is pointing to a ...
user avatar
0 votes
0 answers
17 views

How to change site propagation for channels without duplicating all entries over all sites

We currently have setup a template and quite a few sites for the same template up and running using the multi site manager. For all sites the base entries are the same so we first used the setting on ...
user avatar
1 vote
1 answer
46 views

Matrix query fails when using multiple fields

I am on Craft3.5 and trying to build a matrix block query where I would like to return results from two different matrix blocks. The docs seem to suggest that this is possible. This is the code I ...
user avatar
1 vote
1 answer
36 views

How to convert currency is there any way or any plugin available?

I am working on E-commerce website and I am using craft commerce for that.Is there any way or any plugin available for that?
user avatar
0 votes
1 answer
29 views

How can I revert a migrations from the control panel?

Is it possible to revert a migrations from the control panel?
user avatar

1 2 3
4
5
37