All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
173 views

CraftCMS headless / Nuxt - not getting live preview to work

Over the past few weeks I've been working on a headless CraftCMS integration with Nuxt for the frontend. I use Apollo and GraphQL to fetch the data from the CMS. Almost there now, but there's one ...
Maik_BEELDR's user avatar
0 votes
0 answers
29 views

Matching entries against category custom field

I have two channels, pages and products and category groups for categories and regions. The pages entry type has a field where you can select entries from products based on their category and region. ...
Tyssen's user avatar
  • 643
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
Zoruak's user avatar
  • 11
1 vote
1 answer
79 views

Craft CMS 3.8 - Field not found after changing entry type, but then is found after running again

I'm currently using migrations to change/swap content. On certain entries, there are assigned category fields attached to specific entry types. I am consolidating all of these to a single category ...
good_afternoon's user avatar
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' => '...
bartpulse's user avatar
2 votes
2 answers
427 views

Get User ID before the user is created

I'm creating users programmatically, and in some cases, they won't have an email address. In these cases, I would like to just set the email address to [email protected] where 1234 is the User ID. It's ...
supazu's user avatar
  • 564
0 votes
0 answers
31 views

Multilingual site - how to do continuous translation?

We are making a site multilingual. It will have multiple geographical target areas as well as multiple languages per location. How can we cause ourselves the least amount of pain when constructing the ...
nitech's user avatar
  • 679
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). ...
Jaytrix's user avatar
  • 187
2 votes
2 answers
106 views

Access some sort of db in docker

I've been absent to webdev for a while and trying to get up to speed with this new ddev thingy. So I installed craft 4 via ddev and docker and such. And now I want to import an older db. Is there some ...
KSPR's user avatar
  • 3,776
1 vote
2 answers
59 views

Product URL missing category slug on production site

I upgraded a Craft CMS 3 site to version 4. The Product URI Format for my products look like this: Before I re-save a product, the URL displays correctly the way it looked in Craft 3: But when I re-...
nitech's user avatar
  • 679
2 votes
1 answer
62 views

PDF with Content-disposition: inline; only works with devMode ON

This works fine with devMode(true), but not when false. I'm calling it as a craft variable {% do craft.mymodule.pdf(entry) %} public function pdf(Entry $entry) { $asset = $entry->asset->one()...
Leoncio's user avatar
  • 463
1 vote
1 answer
38 views

Image Transform do not seem to save

We have about 700 images, with only a few transformations possible (about 10). For some reason, the queue for "Image transformation" keeps getting bigger, and even once it gets all processed ...
Ebpo's user avatar
  • 113
1 vote
1 answer
45 views

Import database too long

I am trying to optimize sql dump postgres database importation. My dumps weights about 1.5Go and it takes about 2 hours to import schema and data. My architecture is dockerized. Did you faced this ...
emilie zawadzki's user avatar
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') ?: '...
Sean G's user avatar
  • 11
2 votes
2 answers
88 views

How to prevent Twig Syntax Error when a plugin is disabled?

I am using the Sprig plugin, and for some reason I'm disabling it in some environments. In config/general.php I have added: 'disabledPlugins' => ['sprig'] And in my twig template, I have a ...
Romain P.'s user avatar
  • 1,798
1 vote
2 answers
136 views

Sprig: how to redirect to a URL after submitting to a custom controller?

I have a multi-pages form which is submitting using Sprig plugin. The action is targeting a controller in a custom module. Each step of the form is loading using the current step stored in session. ...
Romain P.'s user avatar
  • 1,798
0 votes
0 answers
25 views

Can't reference custom field in Section's Entry URI Format

Craft 3.7.33 I've got a channel Section called "Stories", and a plain text custom field, subTitle, which I want to use in the Entry URI Format. Right now, that is stories/{slug}. When I ...
Sandwich's user avatar
  • 626
1 vote
1 answer
30 views

Composer error when adding imager-x plugin

Error: "https://composer.craftcms.com/p2/aws/aws-sdk-php.json" does not contain valid JSON Parse error on line 1: ...pball\/6690347bc833"https:\/\/api.github ----------------------^ ...
JYdigital's user avatar
1 vote
1 answer
178 views

PHP version problem when upgrading to Craft CMS 4

I am upgrading a site from Craft CMS 3 to 4. I develop the site on ddev with docker desktop on Windows. When running composer update on PHP 7.4 and docker 2 on ddev the following happens: $ ddev ...
nitech's user avatar
  • 679
0 votes
0 answers
28 views

Hosting server's preview URL doesn't allow me to access /admin control panel

I'm running craft 3. I just switched my hosting provider. They do preview URL's to the domains different than what I had before. The preview looks like this: https://(ip address):8090/preview/domain....
Noah Yamen's user avatar
1 vote
1 answer
34 views

Events with sub-events in a matrix field - display as a calendar (combined with other events)

I'm building a site where the client has courses that run once a week. We'll have several courses and each course will have a matrix with multiple blocks detailing that weeks class. What I want to do ...
CreateSean's user avatar
  • 1,963
0 votes
0 answers
53 views

Plugins not working. "Unable to find component class 'ether\seo\fields\SeoField'."

I deployed a Craft CMS website to a webhosting space today and everything is running fine except for my Plugins (Redactor & SEO). When I open an entry and go to the SEO field, I get this error ...
Droemmelbert's user avatar
2 votes
2 answers
61 views

Get children of multiple entries

I'm sure this must be simple but I've tried multiple options with little success. What is the best way to build a query to get the children of more than one entry via an entry field? For one parent ...
SplendidRob's user avatar
1 vote
1 answer
237 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. ...
daolwede's user avatar
1 vote
1 answer
20 views

Matrix Field - Call block that matches block field value

I've got an event entry with each day of the event in a matrix field block. The block has a date field eventDate and I've got it set up so each block has a unique page that display with the date in ...
CreateSean's user avatar
  • 1,963
0 votes
0 answers
29 views

Feed me config setup

I am trying to do an import of course data into craft but I am running into a problem with the feed me config (feed-me.php). He is the curl request I want to run and this works and outputs the data I ...
bhackett's user avatar
  • 127
0 votes
1 answer
63 views

Craft version 4.x: multiple instances of Craft in same hosting account

This is related to me asking about multiple instances of Craft in same hosting account root 2 years ago, but that was for version 3.x, since when bootstrap.php is now part of the Craft infrastructure. ...
Jonathan Schofield's user avatar
2 votes
2 answers
858 views

3.7.9 and above update issue

I'm trying to update Craft to the latest version of Craft 3, I can get as far as version 3.7.8, but any version higher than that causes an error 500 on both front and backend. I'm using a Mac and Mamp ...
Mark's user avatar
  • 277
0 votes
0 answers
21 views

Query user by code and id parameters found in set password path OR custom reset password path

Is there any way to query users using the parameters of set password URLs? I need to distinguish between the very first activation (welcome) email and reset password email because their corresponding ...
biko's user avatar
  • 660
0 votes
0 answers
19 views

Multisite - display the translation status in the entries list

I have a main website with lot of articles and still growing. I would like to translate all articles into another language, so I created another site. Our process is not to save the entry to the other ...
Michal Bulla's user avatar
0 votes
0 answers
35 views

Import Image on Matrixblock via GraphQL Mutation

I'm trying to create an Entry via a GraphQL mutation. The whole Entry consists of one Matrix(handle: siteimportmatrix ) with one Block(handle: importblock ) which has 4 fields one of the fields is an ...
Maximilian Enzinger's user avatar
1 vote
1 answer
89 views

Commerce LineItem Option validation

I have Line Item options that I'm trying to validate in a module. I'm using the example code from the docs here on the front-end of the cart. Below that it says: Commerce does not validate the ...
supazu's user avatar
  • 564
0 votes
0 answers
19 views

New install, re-indexed Amazon S3 folders, Craft not creating/finding transforms

Yesterday I re-indexed the contents of my image library on Amazon S3 to a fresh install. I can see the images in Assets, I can use the images in entries and then tags/templates, I can import entries ...
Emma Swann's user avatar
1 vote
1 answer
39 views

Creating a new SINGLES page presents a PAGE CAN'T BE FOUND or TEMPLATE CAN'T BE FOUND

I'm hoping you can help resolve my issue or point me in the right direction. Sincere apologies if this question has been asked a million times, however I can't seem to find anything specific to this ...
OGW's user avatar
  • 13
1 vote
1 answer
47 views

How to migrate a selection of users passwords from a Craft 3 to a separate Craft 4?

I'm trying to move a large batch of users from a Craft 3 to a separate Craft 4 websites (only some selected data should be migrated). Element API + FeedMe looks like the right solution for that, as ...
Romain P.'s user avatar
  • 1,798
1 vote
1 answer
35 views

Search Entries for HTML Code

I'm trying to use the Admin interface to search entries with specific types of HTML code entered incorrectly by a client. What is the best way to do this? Searching for the html itself "<span&...
Document Services's user avatar
1 vote
1 answer
30 views

Getting an entry's last editor

How do I get the last editor of an entry on the front end? There are answers to this question here, but they relate to plug-ins. I'd like to access the information directly. {{ entry.author.username }}...
4midori's user avatar
  • 626
2 votes
1 answer
142 views

How to use ajax call to retrieve data from craft cms entries to use in php application

I'm building a static webpage with php and Javascript. I have setup all my data in craft cms entries. I want to use ajax to retrieve the data from craft and just display it on my webpage. How do I do ...
Alyx's user avatar
  • 23
4 votes
1 answer
908 views

Yii2 not maintained?

Craft is based on the PHP framework Yii2. I heard that this framework is less and less maintained. And yes, it seems to be the case if you go on contributor page : https://github.com/yiisoft/yii2/...
emilie zawadzki's user avatar
2 votes
1 answer
40 views

200 new lines in elements_sites per entry

I noticed that the ID number of my entries has increased to almost 50.000, but I have around 1.000 entries and 2.000 files. I understand that other things like categories also affect that number, but ...
H.W. Sanden's user avatar
0 votes
0 answers
33 views

Complete Cookie Consent: The popup cannot be closed

We have installed plugin Complete Cookie Consent on a bilingual craft site. Now we have the problem that in the frontend the cookie message can not be closed: You click on the close button, but the ...
ChuckLean's user avatar
2 votes
1 answer
28 views

Expose certain content if on subdomain

Is this possible? I want domain.com and sub.domain.com to point to the same Craft installation. If you go to domain.com you see the normal site. If you go to sub.domain.com you are presented with a ...
bobartlett's user avatar
1 vote
1 answer
69 views

Can't login to control panel

not sure what I did but my DEFAULT_SITE_URL in .env was set to http instead of https 0and when I tried to login to control panel on my desktop the page would load but when I submit the login form it ...
Trevor Orr's user avatar
1 vote
1 answer
86 views

Calculating loyalty from consecutive entries on a user

I'm trying to calculate a 'loyalty' score on Users. I have an Entries field history, with Entries like 2023, 2022, 2021 etc. I want to calculate the number of consecutive years, going backward from ...
supazu's user avatar
  • 564
0 votes
0 answers
34 views

Error when creating new entry! HTTP 404 – Not Found – yii\web\NotFoundHttpException

Any help is appreciated! I just downloaded and setup craft using composer. I went to create my first blog entry, and as soon as I click "New Entry" I get this error. Setup went smoothly and ...
Alyx's user avatar
  • 23
0 votes
0 answers
58 views

Feed me and Guzzle: Use session cookies

I am using Feed me to import data from a Filemaker server via a self made Craft module. The import works well. I fail however to import the image files from the Filemaker server: Feed me gets their ...
Moritz's user avatar
  • 69
1 vote
1 answer
72 views

How can I change the local host url from http://localhost:8888 to something custom

I've looked everywhere and can't find a solution to my issue. I'm in the process of setting up a local Craft 3 site and have a question regarding the URL setup. When I originally installed Craft I did ...
wdesign's user avatar
  • 11
0 votes
0 answers
122 views

Error while trying to create Assets/Asset Volumes

If I try to create a asset field, a server error occurs when I select the Field type "Asset" and I can't edit it further. I also can't edit my Assets because when I click on it I get an ...
Lucas's user avatar
  • 1
1 vote
1 answer
44 views

Craft CMS 2 - Exporting entity issue

I installed this https://github.com/boboldehampsink/export plugin but getting error during exporting entities regarding to "count(): Parameter must be an array or an object that implements ...
Nik Dev's user avatar
  • 13
0 votes
0 answers
37 views

ETIMEDOUT on graphql requests

I'm using craft's graphql to generate a static site with a nuxt frontend. The generator manages to generate about 40 routes, then it returns Error: Network error: request to https://geo-api....
Jane's user avatar
  • 11

15 30 50 per page
1
3 4
5
6 7
286