Questions tagged [craft4]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

Ajax response no longer returns true after updating to craft 4

I have a project that was initially built in Craft 3 and I'm upgrading it to Craft 4. I leverage ajax on one of the pages to save data to a user in the CMS. The following code worked in Craft 3 but no ...
1 vote
1 answer
22 views

Nitro: how risky is it to dev using MariaDB and then go live with MySQL?

Nitro does not support MySQL for Apple Silicon, but you can use MariaDB interchangeably. I'm using an Apple Silicon computer, and my server run with MySQL only. However, as read in the Craft Database ...
0 votes
0 answers
13 views

Craft 4 install error at craft/migrations/install

I'm trying to install a fresh copy of Craft 4. The following error: message: "An error occurred while executing the \"craft\\migrations\\Install migration: rename(): The first argument to ...
0 votes
1 answer
34 views

How to make Craft CMS 4 works with the older version of MySQL of MAMP Pro?

I'm used to working with MAMP instead of Nitro and would like to keep this setup as I find it easy to manage my other older setups. As MAMP (Pro) support is until MySQL 5.7.34 and as Craft CMS 4 ...
1 vote
2 answers
79 views

Craft 4 Custom Variables - From Env > General.php > template

Been trying for a wee while, but no joy so far. This worked in Craft 3, but not in Craft 4. It's a CSS cache buster, I basically want a variable to set in env, then taken into general.php[caveat] and ...
0 votes
0 answers
21 views

Install Craft 4 at web root

I have one client with hosting that doesn't permit me to move the Craft files below web root. It was fairly easy to point Craft 3 to the base files but I am having significant trouble finding the ...
1 vote
4 answers
96 views

Craft 4 doesn't support other languages yet?

After installing a fresh version of Craft 4, the setup didn't allow me to specify the site language fr-FR as it did with the previous version. I had to accept the default en-US. I thought that I would ...
0 votes
0 answers
13 views

Front end form entry with redactor and images

I'm attempting to create entries from a front end form with redactor for the main body content. We have an asset file upload field for the main image but we also need assets within the body text as ...
0 votes
0 answers
10 views

.htaccess giving me, 'redirected you too many times' error

I have edited my .htaccess to it directs to https but now I am getting this error; 'www.siteexample.com redirected you too many times' I have tried many versions this being the last RewriteEngine ...
1 vote
1 answer
32 views

Craft 4 - Upgrading Plugin to support Condition Fields

I've got a plugin that uses field layouts. I was asked about Craft 4 Conditional Field support so I went away to investigate. From what I gathered so far, the toggling of conditional fields happens ...
1 vote
2 answers
15 views

How to get the image from the last matrix block using twig's last filter

I am on Craft CMS version 4.0.4. I used the last filter to get the last matrix, but when I tried to get the image, I kept getting an error: Impossible to access an attribute ("image") on a ...
0 votes
0 answers
19 views

Loop out nested menu on click

I'm a new Craft user and a fairly new web developer. I have the following code: <ul class="flex flex-col items-end mb-4 text-right md:mb-0 md:flex-row md:space-x-4 md:items-center lg:space-x-8 ...
2 votes
1 answer
36 views

Craft 4: How to programmatically attach fields to entry type tab

I'm in the process of upgrading a plugin from Craft 3 to Craft 4. When the plugin is installed it creates some fields and attaches them to an entry type. The way it was done in Craft 3 is: Get the ...
0 votes
0 answers
33 views

Craft user error after upgrade to Craft 4

I have an issue after upgrading to Craft 4. It seemed like the upgrade wen't smoothly, however I have an issue where users are unable to view their account settings or create new users. I get an error,...
1 vote
1 answer
150 views

Upgrade to Craft 4

Anyone succeeded in upgrading from Craft 3 to Craft 4 ? Before staging the changes on our dev server, I tried it locally without success. Although it seems pretty strait forward, I updated all plugins ...
2 votes
1 answer
156 views

Craft 4: using the new laravel collections and related methods (in a performant way)

I am working on a website for a radio that publishes its programs as podcasts with episodes. Each of the 30 or so programs potentially has a lot of episodes. Each entry in the episodes channel has a ...
2 votes
2 answers
2k views

Questions about Craft 4 release and licenses

Being busy rethinking an existing website to rebuild in Craft I just found out Craft 4 was announced september last year. Some of the new features, like nestable Matrix fields in particular, are very ...
1 vote
1 answer
260 views

Supertable or Neo for nested Matrices and compatibility with Craft 4

I typically avoid using Supertable or Neo because I don't want the extra dependency going forward. However I'm in a project where I needed nested matrices. I know that in C4 nested matrices will be ...