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

Prevent stock notification email if certain conditions

We have a client who wants to be able to create a manual order in Craft Commerce when a product/variant is out of stock. Currently to do a manual order they have to add 1 stock to Commerce then do the ...
user avatar
  • 107
0 votes
0 answers
9 views

Plugin 'editableTable' settings field returns incorrect type when empty

My plugin uses a {{ forms.editableTable({...}) }} field within the settings.twig. When the field has row items it will save just fine, but when the table is empty it attempts to save it as an empty ...
user avatar
  • 2,265
0 votes
0 answers
2 views

Getting revisions from GraphQL explorer

I am on my GraphQL explorer trying to retrieve all the revisions from a specific entry, I am able to get the entry but not the revisions flag that appears in the the documentation (https://craftcms....
user avatar
0 votes
1 answer
51 views

Composer was unable to install the updates. Error: Unknown package has no name defined

Hi I cannot install Craft CMS updates. I have version 3.1.18 and I'm trying to update to 3.7.50 I have updated Composer successfully. I did however have a platform PHP 7 issue listed in composer.json ...
user avatar
  • 299
0 votes
0 answers
15 views

Filter submission based on a date period

How do i list submissions based on a date period, e.g. list all submissions that are less than a month old, or less than 6 months old. Docs dont appear to suggest how to do this, and i have tried ...
user avatar
0 votes
1 answer
13 views

Search query ignoring custom fields in search in search index

I have a site with around 300 entries and at least 50 custom fields. But I'm only getting results if the keyword(s) are part of the title field, I have the "Use this field's value as keywords&...
user avatar
  • 99
0 votes
1 answer
23 views

P&T Contact Form Plugin - How to Retrieve the inserted values?

I have been looking for how to retrieve the inserted values when the submission is failed. Other than prepared fields (Name, Email, etc.), the inserted values disappear from the fields. I already ...
user avatar
  • 391
0 votes
1 answer
20 views

Way to translate days in CraftCMS 'Opening Hours'

Maybe I'm overlooking something here, but I can't find a way to translate the week day names. This is my template code: {% set storeHours = storeHoursGlob.storeHours.getRange(1) %} <div class=&...
user avatar
  • 61
0 votes
1 answer
10 views

How to regenerate missing folders

TLDR: How do I re download / re generate the base Craft CMS folders / files if they are missing from a project? I know you can clone the base Craft CMS project from github (this might be the answer?) ...
user avatar
  • 289
0 votes
1 answer
13 views

Admin user can't login

I need help getting an admin user logged in. The password was reset and doesn't work. After resetting the admin user password using forgot password, I get prompted with Invalid username or password. I ...
user avatar
0 votes
1 answer
10 views

Is possible to select a site in a multisite installation to show his url, sitename, and more properties? (Craft 3)

I'm working on a multisite installation on Craft, and i want to know if it's possible to select a specific site to show for example a link to it, sitename and other attributes. I couldn't find a way, ...
user avatar
1 vote
1 answer
34 views

Uncaught TypeError Dotenv Create on updating to Craft CMS 4

Just updated to Craft 4, migrated my /web folder over as well as my /assets folder and trying to load the index page gives me the following error. Any help would be great as I can no longer access my /...
user avatar
  • 1,230
0 votes
1 answer
15 views

Order entries query of a structure by lightswitch field

I have a bunch of entries in a structure and I want to have all the "featured" entries returned first. Then everything else returned in the order set for that structure in the admin. The ...
user avatar
  • 101
0 votes
1 answer
27 views

DB Falling Over

Currently helping out on a family run craft commerce site after agency was not very helpful. We are having issues with downtime and I can see a LOT of errors in phperrors.log This is an example of a ...
user avatar
  • 33
0 votes
1 answer
25 views

Where can I find documentation on built-in flash message for `users/save-user`?

I'm trying to customize my user profile twig template UX to be a little more user friendly, but I can't figure out where to find what the built-in default errors/notices flash messages for the users/...
user avatar
  • 101
0 votes
0 answers
22 views

Recommended Redis data eviction policy for Craft CMS

I have recently switched from memcached to Redis. The cache, session, template caching and mutex is now using Redis on a project. While Redis generally gets managed by Yii/Craft CMS, Redis features a ...
user avatar
  • 1,031
0 votes
0 answers
23 views

GraphQL query orderBy number including null

I am attempting to query entries via that have a field (ex numberField) with field type Number. Some of the entries don't have a value for this field, so in the response it has null. I am wanting to ...
user avatar
  • 1
0 votes
1 answer
28 views

Wheelform ~ Email Notification with file upload attachment, but **not** store the file upload in assets?

I have a craft v3 site using Wheelform plugin to power a custom 'job application' form. The 'job application' form has a 'CV' upload file field. The submissions from the form are sent as email user ...
user avatar
1 vote
1 answer
42 views

Get entries in an entry type in twig template

I have two channel types section namely "Services" and "Cases". I have added caseServices as entry field in cases. I can get services of a case in twig as entry.caseServices. But ...
user avatar
1 vote
1 answer
31 views

Website transfer places /web in all urls, cs and js not loaded when moved up directory

I just transfered my website from one server to one.com. Now nothing works anymore cuz apparently one.com wants the index.php in the root directory but my index.php is in the "web" directory....
user avatar
  • 11
1 vote
1 answer
54 views

MySQL 5.7.8 or higher is required to run Craft CMS Error

I'm extremely new to Craft CMS and having to ensure it can be ran from a Azure Virtual Machine. I have added, Apache, PHP and MySQL and the website does run on the server. However the issue occurs ...
user avatar
2 votes
1 answer
35 views

How can i disable channel list url?

I have a channel type entry where I'm inserting services. I have created a channel and add route services/{slug} and added template services\_entry.twig. I want to keep url for single service as ...
user avatar
0 votes
0 answers
23 views

Craft cms environment Variable not parse

I am using craft cms version 3.7.42. when i use my system email that give me my .env variable name only not parse value. https://prnt.sc/Xx9GorSz86JA {{ craft.app.projectConfig.get('email').fromName }}...
user avatar
0 votes
0 answers
15 views

Get previous site siteGroup

Is there a way to get the siteGroup of the previous url? I have a multiSite/multilanguage project. I want to be able to check the previous Url siteGroup and compare it with the current siteGroup
user avatar
0 votes
0 answers
15 views

Editing entry without creating a new revision in particular scenario. is this possible?

I'm updating particular field in "A" section whenever a new entry is created in "B" section. In this scenario I don't want revision to be created for "A" section. Is this ...
user avatar
2 votes
1 answer
27 views

Problem running a sale on the site

Craft shows the sale running, and can tell which products are on sale using a: {% set saleProducts = craft.products() .hasVariant({ hasSales: true, hasStock: true }).all() %} loop, but on ...
user avatar
  • 21
1 vote
1 answer
27 views

Is re-running the ConvertEntryRevisions queue job safe to run after migration to Craft CMS 3.7?

I have a fairly large Craft CMS 2 site was recently migrated to Craft CMS 3, because of the large amount of entry revisions, the migration that runs the ConvertEntryRevisions queue job did not ...
user avatar
  • 1,031
1 vote
1 answer
29 views

Best way to find current/pending jobs without knowing their ID in the queue

In Craft 2, you used to be able to do something like this to find pending tasks: craft()->tasks->getPendingTasks('MyPlugin_CustomTask') In Craft 3 we of course now have the Queue, however there ...
user avatar
  • 1,031
0 votes
1 answer
24 views

500 Internal erroron admin - session related

I am working on trying to get a local copy of a site working, but ran into an issue where the front end is working, but the admin page is not responding when I try to login. This site is Craft 3.7.44 ...
user avatar
0 votes
0 answers
31 views

Lozad doesn't swap images on staging site

I inherited some lozad.js lazy loading code that broke when I pushed to the staging server. Code swaps out the thumbnail image for the high quality version. The ones in the view on load aren't getting ...
user avatar
  • 65
1 vote
1 answer
32 views

Plugin install/remove causes fatal error on local

After updating to Craft Pro 3.7.44 my local MAMP site now throws a server error when adding/removing a plugin within the Craft CMS UI. Editing the composer.json file manually and running composer ...
user avatar
2 votes
2 answers
70 views

Recommended caches to clear after server deployments?

Craft has this article about deployment best practices: https://craftcms.com/knowledge-base/deployment-best-practices It also states that you might want to clear caches after deployments, which is of ...
user avatar
2 votes
1 answer
54 views

How I'll get the orderId in EVENT_AFTER_COMPLETE_ORDER in craft commerce?

I'll want to update an orderStatus in craft commerce after the order is complete for a specific (digital) pruduct type. To send an extra email with download links, confirm email is already send based ...
user avatar
0 votes
1 answer
41 views

trying to insert super table field values using graphql in craft cms

cant able to store values from super table field,need a correct format to do Graphql mutation saveEntry($superTable: [demoSuperTable_SuperTableBlockContainerInput] = {demoSuperTable_0: {id: "&...
user avatar
0 votes
0 answers
20 views

Craft cms with graphql How to make reverse query(In terms of relation)

entries(limit: 50, section: "branches", orderBy: "dateUpdated") { id branchTitle: title ... on branches_standard_Entry { branchAddress: map bank: ...
user avatar
0 votes
0 answers
26 views

Prevent {% requireLogin %} from effecting plugins

We user several plugins that export the current entry via buttons in the Admin CP. One plugin exports the entry as a PDF and another downloads it as HTML along with its assets in a zip. I need to add {...
user avatar
1 vote
1 answer
24 views

Installation issues of Nitro Craft on Linux

I am having hard time installing Nitro Craft, I am probably have to do it manually. Spent entire day and not getting much of progress. Anyways, I suspect that main issue I have is that I am on Linux, ...
user avatar
1 vote
1 answer
44 views

Sprig resets value on render

I Have a sprig component that has two variables, but the moment Sprig changes one of them, the other value resets. Please Help products.twig {% extends "_layout/base" %} {% set wrapClass = '...
user avatar
1 vote
1 answer
15 views

Pedigree In channel type entry

I want to create a pedigree for user. I have created a section (channel type) and added some properties like about, name and some other user properties. I also want to add a pedigree for that user but ...
user avatar
1 vote
1 answer
18 views

How do you upload an asset via an API or GraphQL

Is it possible to upload a new asset via some POST request to craft's API? Or maybe through a graphql mutation? I noticed in the public schema there is the option for Creating assets within a volume. ...
user avatar
1 vote
1 answer
53 views

MySQL server has gone away / max_allowed_packet

After adding a second block type to an existing matrix field, we started receiving a "General error: 2006 MySQL server has gone away" error when additional content was saved to the new block ...
user avatar
  • 448
1 vote
1 answer
48 views

Craft warning: Attempting to set settings on a plugin that doesn't have settings: [handle]

I've noticed that this warning is being output in logs constantly Attempting to set settings on a plugin that doesn't have settings: tablemaker The tablemaker plugin does not define a settings model ...
user avatar
  • 1,031
1 vote
1 answer
21 views

Entry query on field using the `and` parameter

I'm struggling to get a and entry query to work - it seems to be stuck on or. Query is {% set blogQ = blogQ.blogTags(['and', blogTag|join(",")]) %} where blogTag is [2291,2290] in this case. ...
user avatar
  • 107
1 vote
1 answer
158 views

Getting error in craft cms after composer update

I am getting the error below after I migrated from another server I copied all the files and DB and did composer install on the root directory folder it asked to question 1.yiisoft/yii2-composer ...
user avatar
  • 13
1 vote
1 answer
53 views

Getting column not found when using 'Entry::find()' to find the matching channel entry in custom plugin

We are building a plugin to perform some custom operations with an ERP system. We created a section for managing the users from ERP. We are able to create new users as channel entries and update them ...
user avatar
1 vote
1 answer
27 views

Increment automatically the number field

I'm building a component in which the value of a number should be increased every 2 hours by 0.1. What would be the best solution for that? I have a field type number with the value 1200 by default. ...
user avatar
  • 151
1 vote
0 answers
32 views

Dropdown field value printing cause additional DB queries in craft CMS 3.7

I am fetching an entry with drop-down values and When I print the entry the values are in the entry object. When I try to print the value like entry.dropdown.value it causes additional DB queries to ...
user avatar
0 votes
0 answers
19 views

Expiry Date not being saved

we are trying to take advantage of the expiry date of Entries in Craft, but have observed that this field is not being saved into the database. Any ideas why this isn't being saved? Craft CMS 3.7.39
user avatar
0 votes
0 answers
50 views

Why is my database stuck at the 'Creating sort index' query?

So I imported the production database locally and it is getting stuck at the 'creating sort index' stage of the query when I try to log in to the CMS. This is the Server Process table from SequelAce ...
user avatar
  • 1
0 votes
0 answers
16 views

Craft CMS - Free Form builder plugin create form issue

I trying to create form with Free Form builder https://plugins.craftcms.com/freeform and when I submit it just disappear, nothing happens ( licence is activated ). Any idea?
user avatar

1
2 3 4 5
37