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
2
votes
0answers
145 views

What is the correct way to update a production site with composer?

I disable admin updates on production sites, and update Craft and its plugins by updating in the development environment, and then deploying to production using Git. My basic process starts like this: ...
1
vote
1answer
11 views

Title Format - Object Label instead of Value

I am trying to get the label from an object instead of its value to use as the automatic title for my entries. For example: I have an entry that contains a dropdown with the handle exampleOne with ...
1
vote
1answer
28 views

Error with Craft CMS set up and composer: failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Hi I am trying to set up craft CMS with composer. I am using MAMP on a mac and I just cannot get it to connect. I get this error even though I know the password is correct. failed: SQLSTATE[HY000] [...
0
votes
0answers
10 views

Express Form: Get submitted data on success page

I have a very simple question. In Craft CMS, using Express Forms (free edition), I have a classic scenario. Page with the form, created by the form.openTag() method A success page which has '/success'...
0
votes
0answers
17 views

Craft3, Plugin Craft Commerce, Tax without percentages

Is it possible to set Tax in the Rate field other than percentage?. In Tax I want to place an example amount: 10.50 without percentages.
0
votes
0answers
11 views

Non-admin users cannot preview/view entries when site front end is disabled (multisite)

I am running a multisite setup on 3.6.11.2. We are attempting to generate a new site and while we work on the structure/content I have the 'Enable on the front end' setting switched off. As an admin, ...
0
votes
0answers
13 views

Craft CMS GraphQL count query

I've got the GraphQL code posted below, but I'm not sure how do I count the total of returned products . Do I need another query just for the products without offset ? I need it for a pagination ...
1
vote
1answer
723 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
1answer
46 views

Search return wrong result with special character like @#! in Craft 3

I have implemented search in Craft 3, but it returns wrong result when I enter some special characters like @#!. Is there a way to prevent it?
1
vote
1answer
495 views

ERROR 1370 (42000) alter routine command denied to user

I am trying to upload my DB using MySQL Workbench but am getting this error: ERROR 1370 (42000) at line 4534: alter routine command denied to user 'detectalocal'@'%' for routine 'detectalocal....
0
votes
1answer
45 views

How do I upgrade the MYSQL database from Craft 2 to Craft 3 on GoDaddy

How do I upgrade my MySQL DB for a Craft 2 site to Craft 3. I don't have access to the SSH server or use of Composer, so I have to move files via FTP and do everything manually. My client is on ...
0
votes
0answers
18 views

Craft 3 entry.author.getPhoto() is coming up null on template, but the author has a photo uploaded in the user > details section, any ideas why?

The site is utilizing a Servd bucket to store all assets. The backend shows a photo successfully uploaded to the user > details section, but does not provide a url in the entry.author.getPhoto(), ...
0
votes
0answers
8 views

Forse craft to do another job (queue) and pause the current one

I'm currently working on a plug-in for Craft. I have to work with a lot of data and, some staps are slow. So that's why I added them to a job system. This job is doing a lot of stuff. That job is ...
0
votes
0answers
22 views

Problems cloning an old production Craft CMS project

I'm attempting to clone a craft CMS (v3.3.15) project into a new local development environment and as expected, I'm experiencing many dependency issues. For various reasons, including having to ...
1
vote
1answer
211 views

Craft 3: Searching within back-end & front-end isn't giving all entries/results

Searching within Control Panel as well as the front-end is not going through all entries. When I try searching in the Content tab I see the pages are listed but when I try to search for the entry it ...
1
vote
1answer
83 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
0answers
20 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
0answers
19 views

Nitro 2 on WSL craft failed permission change in cpresources

I get the following yii exception after installing and adding a Nitro2 site to WSL. Failed to change permissions for directory "/app/web/cpresources/1453c57f": chmod(): Operation not ...
0
votes
1answer
27 views

How to remove entries with craft migration safeDown elegantly

I am migrating some entries into Craft for the first time and my saveUp is quite simple where I use the saveElement function. The problem is after doing a few safeUp's and safeDown's I'm getting some ...
1
vote
1answer
43 views

Craft CMS - 3.6.11.1 - Why are Assets Backed Up to Temporary Storage?

Since updating Craft CMS to the latest version I noticed that our uploaded files get backed-up daily to temporary storage. Uploaded files live on DigitalOcean Spaces so we have no need to back up ...
1
vote
1answer
36 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
1answer
100 views

Adding 301 permanent redirections in Craft CMS

I am not able to redirect any dead page. Although I have added the redirection but it is not getting reflected. Please help.
1
vote
1answer
27 views

Invalid path alias: @ error

I have a site running Craft 3.6.11.1. I've been working on it for a while, have multi environment config set up and everything working great. I have recently installed and uninstalled quite a few ...
1
vote
1answer
61 views

Sprig “Load more” not loading over https

I've recently added an SSL to the site I'm working on, and it seems to have broken my "load more" buttons via sprig. When I click the button now, I get Blocked loading mixed active content “...
2
votes
1answer
239 views

How can I debug `craft\web\User::_validateUserAgentAndIp()` warnings

On a production site, we're seeing a ton of the following warning in our web.log files for (seemingly) every request, creating a ton of noise in the logs and making it hard to spot "real" issues: &...
1
vote
2answers
289 views

Craft queue not being processed, listen not running

I built a site on a dev server and the Craft queue worked in that with no extra setup needed. In fact I installed Async Queue Manager because Crafts way was too slow. They both worked fine. I moved ...
0
votes
0answers
12 views

Craft warning: Tried to release a savepoint, but it does not exist

I'm working on a plug-in for Craft 3. For this plug-in is a migration is needed. When this migration runs and adds the entries, fields, and groups then the following warning occurs in the logs. [...
1
vote
1answer
37 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 ...
1
vote
1answer
45 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
0answers
15 views

Mailer Service Error when sending notifications emails on Freeform Pro

Can anyone give me a bit more insight into why I'm getting a "Mailer Service" error when trying to send an Admin Notification with Freeform Pro? I get an error like this: Unexpected end of ...
1
vote
1answer
36 views

How to search for Entries that have a particular Category set within a Matrix field in the Control Panel?

I have an arrangement like this: Entry type 'people' └ Matrix field 'offices' └ Block type 'office' └ Category field 'building' On the Entries screen, how can I search for people that have a ...
1
vote
1answer
38 views

In Craft Commerce, is it possible to show a more meaningful error when the customer tries to add more of a product than is in stock to the cart

Currently, if a customer attempts to add a greater quantity of a product to the cart than is in stock, an "Unable to update cart" flash message in shown. e.g. there are 3 in stock and the ...
1
vote
1answer
174 views

“Could not find composer.json file” error in CraftCMS 3

I recently updated my CraftCMS 3 with the help of Composer. When I try to install a plugin with the plugin store, I get an error saying that Craft couldn't find my composer.json file. He proposes me ...
1
vote
1answer
21 views

In Craft Commerce, is it possible to make the product variant weight a required field?

In Craft Commerce, is it possible to make the product variant weight a required field? We are using weight to calculate shipping so it would be good if we could make it a required field to ensure that ...
0
votes
0answers
12 views

How to programatically (e.g. in a custom a plugin) create a Discount Code? (Craft Commerce)

I've been working on some custom plugins recently to handle various bits of API functionality for the project I'm working on, and I'm now roughly familiar with Craft's OO approach to carrying out this ...
1
vote
1answer
68 views

How to define table attribute in the record file

Following code is working on Craft 2: class My_TableRecord extends BaseRecord { public function getTableName() { return 'my_table'; } protected function defineAttributes() { return [ ...
3
votes
1answer
27 views

How to detect the current report in settings.twig

I have several reports to create but their settings are going to be very similar. So I want to use one settings.twig for all of them and detect which report is the current one to show any extra ...
1
vote
1answer
492 views

Checking which version of Craft CMS a site is using

I've been asked to look at Craft CMS site where my would-be client has been ghosted by his previous developer. I have no handover information and only FTP and phpmyadmin access presently. Looking ...
0
votes
0answers
24 views

Changing URL format in craft commerce products error 502

I have more than 150k products on craft commerce, and i need to do some changes in the URL format, but when i click save, the server returns a 502 error. I think that is because craft is trying yo re-...
1
vote
1answer
55 views

Get entry by language in a module

I'm trying to get some auto translating done in a craft module. In order to do this I need to get the entry of another language in a save event. Is it possible to get this by language? Event::on( ...
1
vote
1answer
47 views

Image Transforms not generated - permission problem?

Since I installed my Craft based website on the production server the image transforms are no longer generated. The tasks runs through more than 5000 images but doesn't generate new ones. There have ...
1
vote
2answers
67 views

How to filter entries by checkboxes using Sprig

I am using the Sprig plugin to filter news entries on a news overview page. I have three checkboxes for the categories related to the news entries. I have the page working for the basic functions by ...
1
vote
1answer
25 views

Saving matrix field of a duplicate of an entry not working

I'm creating a cron job to automatically import new entries (vacancies). I have an entry that I use as a template with some standard data fields and matrix fields. If it's an entry that has not been ...
1
vote
1answer
15 views

Making custom changes to CP language

I want to change a few words in the CP (Craft 3). What's the best way to do it, without being overwritten by a Craft update if possible...? I was thinking about creating my own language file, but can'...
2
votes
1answer
25 views

How to create a new Tag group and save it?

I'm new to the Craft CMS framework and have a question about tags. How can I create a new tag group? You can create a tag list by hand via the admin panel > settings > Tag Groups > New Tag ...
1
vote
2answers
52 views

Craft3 - Getting rid of /web in my URL

I am very new to craft. installed craft3 very long ago, as a beginner, and trying to solve a long-lasted-issue with my url. my goal: Change my base url from www.mywebsite.com/web to www.mywebsite.com ...
1
vote
1answer
41 views

How do I display entries depending on multiple relations?

In this example, I'm trying to show entries with the category "Beer". This works: {% set myCategory = craft.categories.slug('beer') %} {% if entry.relatedDrinks.relatedTo(myCategory)|length ...
1
vote
1answer
126 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 ...
0
votes
0answers
31 views

Barba.js (with gsap) 'leave' and 'enter' hooks not working in Craft 3 - same code works in WordPress

The below code (Barba/gsap) works as expected in WordPress, but in Craft 3 only the 'once' (i.e. not the 'leave' and 'enter') hooks fire. There are no errors or anything unusual in the Barba debug ...
3
votes
4answers
1k views

Craft 3 - Recommended development environment for Windows?

I was wondering what people who are developing on Windows 10 are using as webserver environment in 2018? I have had ok results previously using ampps, but I'm having a lot of problems with Craft 3 as ...

1
2 3 4 5
34