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

Error Class name must be a valid object or a string | Installing Craft CMS3 plugin

I am trying to build a plugin for craftcms3 and I am stuck with an error while installing the plugin which says: Class name must be a valid object or a string in in /Users/rohan0793/Code/craftcms/...
1
vote
1answer
11 views

CraftCMS Redactor is adding <p> tags to viewable source code… but then removes them when saving

We are in the midst of a migration from WordPress to Craft. Much of the content contains line breaks, which are converted to <p> tags in Redactor (as seen in Redactor's view source plugin). ...
0
votes
0answers
9 views

Default stock levels when importing Commerce products with FeedMe

I've got a Commerce 3 store where the customer maintains the majority of the product listings by updating a Google Sheet, very few fields are edited via the Control Panel. However, now they are ...
1
vote
1answer
14 views

Feed me: set entrytype dynamically

Can someone confirm that when importing entries with Feed-Me, the entrytype can NOT be set dynamically based on a field of the feed?
0
votes
0answers
6 views

Feed Me: import assets with folder structure when importing entries

Can someone confirm that is currently not possible to take the folders (directories), into which an asset are imported, from the feed, when importing entries (with assets it seems to be possible)? I ...
0
votes
0answers
9 views

Is there a guide for using Craft Commerce headless?

I’m trying to figure out the work involved in using Craft Commerce in a headless setup. Is it possible? I think so. How do I expose the Commerce functionality via an API, instead of through Twig ...
1
vote
3answers
772 views

yii\web\ServerErrorHttpException Craft 3 install

I'm new with Craft CMS and receive this error when I try to install it -------------------ERROR----------------------------- An Error occurred while handling another error: yii\web\...
1
vote
1answer
22 views

How to change the Craft 3 activation email?

In my organization many of the employees believe the user activation email sent out by Craft is spam. How do I change the email text and possibly add an image, like our company logo, to the email?
1
vote
1answer
22 views

Getting invalid verification code for email confirmation

I am using Craft CMS as a backend for react Next app. On our live site we are sometimes getting complaints from the user about error when user try to verify code sent in the email. This case doesn't ...
1
vote
1answer
28 views

Calls to /actions return 400 Bad Request

I'm trying to use jquery ( and/or VueJS with axios) to delete an asset from a frontend form (user is logged in and they have permissions to delete assets from this volume) I have an HTML element that ...
1
vote
0answers
25 views

Set default status in CP admin for queried entries from “All” to “Live”

Just wondering if there's a way to set the default status for the entry listing pages in the admin, in my case from "All" to "Live". This would need to account for a page "refresh" and navigation ...
0
votes
0answers
19 views

Admin and Dashboard showing 404

I am deploying a Craft site, I have it installed and everything is working fine, but whenever I try to access the admin panel I get a generic 404. I have tried every solution offered in similar ...
0
votes
0answers
15 views

Super Table fields in Matrix blocks not automatically propagating content across sites

Please bear with me as I try to explain what's going on. Feel free to ask for more details if needed. Simply put, Super Table fields in Matrix blocks are giving me trouble for multi-site. I am ...
1
vote
0answers
69 views

Feed Me - feed format for importing into Super Table field

I am trying to import a list with the following format in each list item: <Date> - <Title> - <Icon> - <External Link> into a Super Table block containing fields for each of ...
0
votes
1answer
85 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
0answers
20 views

Max Backups General Config Is not removing old sql backup files

Reading the docs here https://docs.craftcms.com/v3/config/config-settings.html I was under the impression if I set this config in my general config it'll delete my db sql dumps in my storage folder ...
0
votes
1answer
17 views

Export from Craft 3.4 to Craft 3.0 using Feedback

I have a very strange situation. A production site is running Craft3.0 - there is no easy way to get this site up to Craft3.4. This is not possible at present because of the server and upgrading PHP....
1
vote
1answer
12 views

entry is available without query when templates are set in the CP, is this an acceptable method?

Craft Pro 3.4.20 New to craft development. I was following the documentation and calling my entries via the suggested method as outlined https://docs.craftcms.com/v3/dev/element-queries/entry-queries....
0
votes
0answers
47 views

Date Field Validation by PHP plugin

I have a form for updating user info, with a field of birth date. However, I am struggling to develop a validation for this date field by PHP. Its frontend code is this; {% set tz = craft.app....
1
vote
2answers
28 views

Query Entries based on current Entry's related Entries

I'm wanting to show related articles based on the current article's related Markets. How do I get the current markets and filter relevant posts based on those related markets? This is what I have so ...
1
vote
1answer
33 views

How to get the previous or next two entries with images and

To expand upon How to get the previous or next two entries I was wondering how I can also add the image and an input from each entry. I have simplified the html-structure in this example but ...
1
vote
1answer
19 views

Existing contents get deleted on Live Preview when adding new content on a matrix field

When I add a new content for a matrix block field on an existing entry, all its previous contents gets deleted from the Live Preview, except for the editor which still has the previous contents. And ...
0
votes
1answer
31 views

if statement in a template not working

I am making a condition to use a certain template for a specific article category, but it's not working and giving me an error. {% extends "_layout" %} {% set title = category.title %} {% block ...
1
vote
1answer
21 views

How to create a category filter for a portfolio site?

I want to create a category filter similar to this website http://www.mypoorbrain.com/ (just a random website i found with the desired effect). Basically I want the categories to be displayed ...
1
vote
1answer
15 views

How to disable the Javascript “actions/queue/run” on frontend?

After upgraded our Craft from 3.3 to 3.4.14 we have noticed that there is a new Javascript on the footer of the homepage (frontend) that runs "index.php?p=actions/queue/run". We run the tasks via ...
1
vote
1answer
23 views

How to search based on a Multi select category field in Craft 3?

I have a blog section with multi select categories. I want to filter all the blogs based on that multi select categories in the website. When I tried .search('category:ui-ux OR category:web-designs')...
0
votes
1answer
509 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 ...
2
votes
1answer
28 views

Dynamically populating select input fields using jquery $.load and twig template

EDIT: the below code now works! I have two select inputs, the choice of 1 should populate the second. I have an external twig file (data.twig) (MAKE SURE TO PUT THIS IN YOUR TEMPLATES FOLDER) that ...
1
vote
2answers
73 views

How does one get an order confirmation email to fire immediately in Commerce 3?

Curious if there is a way to fire order confirmation emails immediately? Basically how this was handled in Commerce 2. There are cases, and I'm dealing with one currently, where there is no command ...
1
vote
1answer
35 views

What is causing Craft CP assets(JS/CSS) to appear in front-end pages?

Perhaps in some way related to this, I've got a couple of front-end pages on our website that pull in the following files, which seem to all be CP files. These two pages each utilize plugins I've ...
4
votes
1answer
397 views

Can't get setFieldValue to work

I've got this // Creating users through frontend Event::on(Users::class, Users::EVENT_BEFORE_ACTIVATE_USER, function(UserEvent $event) { $userId = $event->user->id; // ...
0
votes
0answers
50 views

Overwrite template-files

I want to use one template on several Craft websites (different installations, not multi-sites). Is there a way in Craft I can do something like this? I want to update/overwrite the /templates/core/ ...
0
votes
0answers
16 views

Add additional entry fields to backend search

The search field in the craft backend entry section searches the title and slug field by default. Is it possible to add custom entry fields to this search function (in my case e.g. a custom item ...
1
vote
1answer
17 views

“Field Limit is too big for your chosen Column Type” error on already existing fields when updating matrix

I'm getting the following error when I'm trying to update a matrix: "Field Limit is too big for your chosen Column Type."" I'm trying to add a new block type but this error keeps getting up on ...
0
votes
0answers
15 views

How to add new Matrix block to entry field in php?

$draft = new Drafts(); var_dump($entry->slug); $draftEntry = Entry::find()->slug($entry->slug)->one(); $draftEntry->typeId = 32; ...
1
vote
1answer
37 views

Get entries related to tags with a score & order by

TL:DR; How do I add a custom sorting to Craft? I am currently building a system which is very tag-centric. I am rebuilding my side project in CraftCMS (https://email.subscribeto.at/) which was custom ...
1
vote
1answer
52 views

How to build a web page using different sections created in Craft

I am a beginner in Craft. I have a Craft website. There is an HTML design with me. From admin, I divided the HTML into sections and created entries based on that. All the coding related to each ...
1
vote
1answer
31 views

Can fields be reused with a different name per section?

I've got a redactor field used on several sections, and category groups. Is there a way to change the displayed name per section in the edit form? On a category group the field is, 'Category ...
1
vote
2answers
30 views

Frontend Form Search Users based on Tags

Context: I'm trying to build a search form that will filter users based on Name, Skills and School. Users who have any of the search criteria should appear in my results. Name Is a fuzzy keyword ...
1
vote
1answer
24 views

How to implement “cookie consent message” to visitors of our website using Craft 3

I want to implement cookie using message to the visitors of our site. How we will implement this in craft 3? A sample message is "Hi there, we use cookies to offer you a better browsing experience ...
0
votes
0answers
9 views

Craft Commerce cart carrying over to other sites

I've never noticed this before and am wondering if this is what is supposed to happen. I have my main site and a subdomain set up, I've never noticed my orders carrying over from one site cart to the ...
0
votes
0answers
11 views

Redactor Link Encoding create 404 errors

Has anyone come across scrambled link encoding in Redactor resulting in 404 errors? How do we solve this? What should be: https://www.dazeddigital.com/​f​a​s​h​i​o​n​/​a​r​t​i​c​l​e​/​3​3​0​3​0​/​1​...
1
vote
2answers
31 views

How to display multiple entry loops on the homepage (Single section type)

I've been learning Craft 3 for a couple weeks and I've run into a little snag. I have a homepage that I would like to display multiple entry loops and/or types. However, I cannot find how to do this ...
1
vote
1answer
81 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 ...
1
vote
1answer
25 views

Uploading Asset Doesn't Clear GraphQl Cache with VueJS/Axios

Context: I have a VueJS method that uses a form and Axios to upload an asset to an entry's asset field. The method successfully uploads the asset to the entry, and I can prove that fact via the ...
1
vote
3answers
53 views

Craft v3 gives 500 error on installation… how to get v2 instead

I installed Craft v3 on a live server running Debian 10, apache, latest PHP, and Mariadb. My structure is /var/www/html, and everything except for the files in "web" are in the www folder (along with ...
1
vote
1answer
51 views

How many simultaneous visitors Craft CMS can handle?

I am looking for a CMS as a backbone for front-end work and I like CraftCMS by its interface and structure, so I wonder if CraftCMS is capable for this project. In practice, most of the work will be ...
0
votes
0answers
7 views

Cache Control Panel resources

Is it possible to enable Browser Caching for the cp resources? Did not find anything in the documentation about it and my custom set headers in nginx does not work for them. I am working with craft 3 ...
0
votes
0answers
23 views

MySQL Problem fetching the info row

since yesterday i have been trying to setup Craft CMS for the first time, but the installation fails and tells me to check the logs. The database account has all rights. (This is only a part of the ...
1
vote
1answer
9 views

Matrix-field with a category-field to output category-title on single entry page

Me and categories, always giving trouble :) On blogs, we are using a matrix field and in one of the matrix-types, I have a category field. This is to output the title of the category. {% extends "...

1
2 3 4 5
30