Skip to main content

Questions tagged [craft3]

For use with questions relating to the Craft 3 version of Craft CMS, including the Beta and RC releases.

0 votes
0 answers
29 views

Reduce Unnecessary Database Entries in Craft CMS After Changing Propagation Settings

In one of our Craft CMS projects, we have accumulated around 100 subsites over the years. This has resulted in a large number of unnecessary database entries due to incorrect propagation settings. Our ...
Stefan Prammer's user avatar
2 votes
1 answer
32 views

Craft 3 site – users suddenly cannot login to back-end

I built a site with Craft 3 in 2018. I have barely touched it since (or worked with Craft, to be honest). The front-end is fine and the end-users have been using it without problem until last week ...
Philip Buckley's user avatar
0 votes
0 answers
21 views

No plugins will install on cloned site - Craft 3

I am in the process of cloning a Craft 3 site to a new server (from GoDaddy to SiteGround). I have set up the new craft space and imported the database, assets, templates, etc., which all went ...
Justin Kendall's user avatar
1 vote
1 answer
36 views

How can I display a message to the user that the field is filled in incorrectly?

I have a form: <form method="POST" enctype="multipart/form-data"> {{ csrfInput() }} {{ actionInput('families/families/start') }} <input type="text" name="...
Dimi's user avatar
  • 325
0 votes
0 answers
12 views

Dynamic recipient in Freeform plugin Pro

I'm trying to set up a process with Freeform and I haven't managed to do it. I'd like your input on feasibility. To prevent spamming, I don't want content editors to add email addresses in plain text ...
PatCraft's user avatar
1 vote
1 answer
56 views

How can I check the size of the file uploaded via the form?

I have a simple form on the website: <form method="POST" enctype="multipart/form-data"> {{ csrfInput() }} {{ actionInput('families/families/start') }} <input type="...
Dimi's user avatar
  • 325
1 vote
2 answers
56 views

How can I add an element with an image to a section from the site?

please tell me how to add an entry that contains an image to the desired section. I use Craft CMS 4.9.6. At the moment, I have a form on my website: <form method="POST"> {{ ...
Dimi's user avatar
  • 325
0 votes
0 answers
23 views

500 Status error with Devmode Off

My site loads perfectly fine when I have devMode set to true, but when I keep everything the same except turning devMode to false, it returns a 500 error (probably a server issue). I am really at a ...
Mandy's user avatar
  • 1
1 vote
1 answer
34 views

How to disable X-Rewrite-URL Header in Craft CMS 3?

I'm trying to disable the X-Rewrite-URL header from my Craft CMS site. I have already tried disabling it via the secureHeaders setting in the general settings, but it still doesn't work. Remove 'X-...
Sall's user avatar
  • 11
1 vote
1 answer
27 views

How to batch delete obsolete PDF files from site assets

I inherited a CraftCMS project and there are currently close to 1200 obseletes pdf documents, still present in the site assets. The documents are stored in an S3 Bucket. What is the best way to do ...
PatCraft's user avatar
1 vote
2 answers
23 views

Error when calling renderPdfForOrder() in Module

The error I'm receiving is: Call to a member function getRenderLanguage() on null My Code (Edit - simplified): $mergeService = new Merger(); $batchFileName = 'VAT-' . $country . ( $date ? '-' . $...
cherrykoda's user avatar
  • 1,114
1 vote
1 answer
51 views

Eager-loading content and merging queries

sorry if the following question is too basic, but I've spent quite some time digging now so I decided to reach out for help. Is 250 DB queries too many? I have a Neo field "modules" that can ...
Roman Sobkuliak's user avatar
1 vote
1 answer
33 views

Can't use matrix.one() and matrix.all() at the same page

i try to get blockMatrix value with different way(.one() & .all()) in the same page (this page consists of several templates) but the result is weird. Here how i do it: i have a blockMatrix("...
Nixxian365's user avatar
1 vote
1 answer
57 views

Event on new user created

please can someone help me with this snippet of code I have written. I basically would like to check if a user is new. However, the below only triggers when an existing user is saved, not when a new ...
Mark's user avatar
  • 741
2 votes
1 answer
97 views

Deployment strategy that removes tables from uninstalled plugins

I have read the following article best practices for deployments. https://craftcms.com/knowledge-base/deployment-best-practices here the following is recommended: git pull composer install php craft ...
antdev's user avatar
  • 149

15 30 50 per page
1
2 3 4 5
129