Questions tagged [error]
The error tag has no usage guidance.
214
questions
1
vote
1
answer
16
views
503 Headers already sent
We have a site running v3.7 that hasen't been changed in more than a year.
It has now stopped working, and the server responds with a
503 craft\web\ServiceUnavailableHttpException
Yii Framework/2.0.45
...
0
votes
1
answer
27
views
Updating search index fails due to following SQL error: SQLSTATE[HY001]: Memory allocation error
This error: SQLSTATE[HY001]: Memory allocation error: 1038 Out of sort memory, consider increasing server sort buffer size is causing the Updating Search Indexes job to fail. The section that is ...
2
votes
1
answer
34
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 ...
1
vote
1
answer
88
views
Baffled by connection issue
I have a client with a Craft 4 site on GoDaddy. I’m not thrilled with the hosting, but it has been working fine for months/years.
Suddenly, it’s showing an internal server error message on the front-...
1
vote
2
answers
142
views
All sections & plugins gone after local reinstall - help!
I had to reinstall the project locally to solve an issue but now when logging into the admin dashboard locally:
all sections are gone
plugins are gone
fields etc are gone
It shows as Craft Solo ...
1
vote
1
answer
51
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="...
0
votes
1
answer
36
views
Internal Server Error on Save / Dashboard
A client's site is producing Internal Server Errors randomly in the Craft backend (3.7.53.1). The Dashboard produces an error. Saving certain entries produces an error (especially when enabling ...
1
vote
1
answer
40
views
Why does my redis keep shutting my site down
I uploaded a new site (migrated) to a new server. 3 times now I've had my redis maxout memory. This causes my site to show an error 500. When I flush the redris the site goes back up immediately. I ...
1
vote
1
answer
215
views
Can't Update CraftCMS
I'm currently using Craft CMS 3.7.9. When I go into Utilities -> Updates (which shows a 5 so there must be updates), a red message appears at the top that says "A server error has occurred&...
1
vote
1
answer
32
views
Linked pages can't load entry-variable
I'm a newbie with Craft CMS and just setup my templates. I got multiple .twig files for six pages. If I load my homepage "from scratch" my entries are shown as I want them to. But if I click ...
2
votes
1
answer
88
views
Variable entry does not exist on blog post
We just installed the CMS and like it very much. On the other hand while following the basic tutorial we seem to get the error "Variable "entry" does not exist." on the most simple ...
1
vote
1
answer
34
views
I'm getting an wired error from my Live server when i'm trying to register as a user and sending notification
Here is the error log which I'm getting while register a user. I'm using craft cms 3.8.5
2023-04-19 09:59:39 [-][-][-][error][ParseError] ParseError: syntax error, unexpected ')' in /var/www/app/...
0
votes
0
answers
118
views
SQLSTATE[HY000]: General error: 5 Out of memory (Needed 418490224 bytes)
I'm building a webtoon with CraftCMS 4 but facing this issue: SQLSTATE[HY000]: General error: 5 Out of memory (Needed 418490224 bytes)
Screenshot: https://i.sstatic.net/oMKud.png
All entries are a ...
1
vote
1
answer
99
views
Upgrade from craft 2 fails due to read-only mode
I'm trying to upgrade an old Site from Craft 2.9.x. The goal is to eventually upgrade to Craft 4.x, but I thought it would be easier to first update to Craft 3.x. When trying to Finish up my database, ...
0
votes
1
answer
113
views
Accessing eager loaded Collections data
So I have a query to return series. At the same time I eager load the series client.
{% set series = craft.entries()
.section('series')
.inArchive(false)
.with('client')
.collect()
%}
...
1
vote
1
answer
110
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....
1
vote
1
answer
108
views
Matrix field entry link corrupted
Some of my links coming from a matrix field with entry became corrupted. Anyone had this before and knows how to fix it?
1
vote
1
answer
241
views
Http 503 — Service Unavailable error after successful craft 4 installation. Can't even load a hi.txt file in web root
After successfully getting my DB setup and installing Craft through the command line, I'm getting a persistent 503 error on even a simple hi.txt file
https://saltandpepper.recipes/hi.txt
On the admin ...
1
vote
0
answers
76
views
Displaying errors on frontend profile form
I have a user profile form on the frontend that doesn't display errors for a URL field.
The field handle is 'website'.
This is my code:
{% macro errorList(errors) %}
{% if errors %}
{{ ul(errors, {...
1
vote
0
answers
59
views
Internal server error - Cannot serve directory
Randomly a couple of times a day my website throws an Internal Server Error that fixes itself within minutes. Checking the logs (have replaced my username with 'username') it looks like a server issue ...
1
vote
1
answer
3k
views
Tailwind CSS: require(...) is not a function error in VSCode
Maybe it's something stupid I'm overlooking, but nevertheless I tried everything to overcome this error. I followed the tutorial step by step, so maybe I'm looking totally in the wrong direction here :...
1
vote
3
answers
271
views
Importing DB Errors: craft_resourcepaths
On the latest version of Craft, (3.7.25.1) after updating I'm getting regular errors when importing a backup into production servers during deployments. Here is an example of the error:
error: The ...
1
vote
1
answer
737
views
craft\web\Request::cookieValidationKey must be configured with a secret key
For a while our Craft CMS webshop show errors in the control panel.
This happens 25%-50% of the requests. Looking in the phperror log a lot of this errors are logged:
[13-Dec-2021 23:00:05 UTC] An ...
1
vote
1
answer
427
views
Craft CMS admin intermittent internal server errors
I'm getting intermittent Internal server errors in Craft admin.
This has happened out of the blue on an active site. Craft pro 3.041
phperrors.log:
PHP Notice: Undefined index: constraint_name in /...
1
vote
1
answer
366
views
Migrating Craft CMS 2 to 3
I have a craft CMS 2 codebase that a former developer had made for running on our PHP 5 server. Recently, the server upgraded its PHP version to 7.3 so I am trying to migrate the website to a later ...
0
votes
0
answers
341
views
Can someone help me solve for this error message: "Craft can't connect to the database with the credentials...."
Can someone help me solve for this error message: An exception has been thrown during the rendering of a template ("Craft can't connect to the database with the credentials in craft/config/db.php....
0
votes
0
answers
71
views
Update following site import leads to fatal error
Today, I have moved a fully up-to-date installation to a new server, and three times now on a seemingly successful installation, after going to update to the latest version (the existing install is up ...
0
votes
0
answers
225
views
internal server error when creating new field
whenever i try to save a new field I get an internal server error in the backend of craft 3.
This happens whenever i want to create or modify a field that has an input like date, plain text, reactor......
1
vote
1
answer
596
views
Redirect to Craft CMS Website Results in 403 "Request forbidden by administrative rules"
My Setup
I added a stripe checkout redirect from my craft website using Stripe Checkout so I can accept payments from customers using payments handled by stripe.
In simple, I use AJAX on the frontend ...
1
vote
0
answers
429
views
HTTP 404 – Not Found – yii\web\NotFoundHttpException
New to Craft and following the tutorial to Create the blog. When trying to browse the created blog page get 404 error below.
HTTP 404 – Not Found – yii\web\NotFoundHttpException
Template not found: ...
0
votes
0
answers
101
views
404 accessing the admin site - not rewrite related
I'm struggling with a downloaded copy of a clients Craft 3 based website.
I've downloaded the entire project, and have tweaked the .env file and .htaccess for my local mac's setup.
The site itself ...
1
vote
1
answer
627
views
Basic 404 setup not working
I look at past Q & A about this, but am still perplexed.
Not logged in to CP or frontend
I have a simple template called 404.twig which resides in the templates folder
I can access the template ...
0
votes
0
answers
84
views
Need help: multiple request throttling
I have an issue in the CraftCMS back office when I try to export all entries.
When I try to export all the entries in expanded mode
it takes ~1min but every minute the back office send another ...
0
votes
0
answers
70
views
Craft is not installed yet with a REDIS error
Our website is on the latest version of Craft 3.4, using REDIS (redis_version: 4.0.9) for Sessions and Caching.
Today the website stopped working with the well-known "Craft is not installed yet&...
1
vote
1
answer
88
views
Twig Runtime Error on settings/general (value: system.name)
When I go to settings/general in the CP i get this Twig Runtime Error. Does anoyone here know what to do to fix it?
0
votes
0
answers
66
views
All URLs changed path after upgrading to 3.6?
I'm not sure exactly what has changed here. All links are directing to "site.test/admin/site.test/blog/{slug}", when clicking on the link from the entry page. Before they would be "site....
1
vote
1
answer
77
views
After transferring local to server, Twig Runtime Error: Impossible to invoke a method all() on an array
I transferred site from MAMP to Arcustech server and the Admin panel works fine, I even updated to 3.6.6, but the front-facing site throws an error:
Twig Runtime Error: Impossible to invoke a method ...
0
votes
0
answers
203
views
Internal Server Error when updating slug
I'm getting an internal server error when I try to update the my entry's slug on prod, but not on dev or locally. It's happening across entries, it doesn't seem to be specific to a certain entry. Any ...
1
vote
1
answer
594
views
Feed me plugin, cURL error 60
This is my first time using the Feed Me import plugin (craft 3.5.15.1). I'm pointing the feed URL to a file in the public root, e.g. http://dev.mydomain.com/import.csv. When executing the import, I ...
2
votes
1
answer
5k
views
"Error: Unknown package has no name defined" when updating Craft 3
I'm getting "Error: Unknown package has no name defined" when updating a site from 3.0.41.1 to 3.5.15.1
I had read a reinstall of composer had fixed this for someone else, but hasn't for me. ...
1
vote
1
answer
993
views
Database Exception Column not found: 1054 Unknown column 'configVersion' in 'field list'
I get this Error when i want to save a Field. Also when i want to create a new field. I can hit the goback button and strangely the field gets still saved.
I work local and have project config ...
1
vote
1
answer
76
views
Admin panel not working without language code
I've migrated a website with CraftCms 2 from local to a pre-production server. Everything is working fine but, I don't know why, I only can go to the admin panel with locale code before /admin. I mean,...
0
votes
0
answers
190
views
Undefined property: DOMElement::$tagName
When I am logged into the admin control panel and I go to "Settings", I receive the error "Undefined property: DOMElement::$tagName".
Here is the Stack Trace:
yii\base\...
1
vote
1
answer
258
views
Error on functions in queue: “Session does not exist in a console request.”
I already experienced this same problem with Craft Commerce a while ago (Error on functions in queue: "Session does not exist in a console request.") and got a solution that solved the ...
1
vote
2
answers
896
views
Site moved to new server - Error 500
I inherited a site running craft and I was asked to move it to my server to host it. The other developer zipped the files and made a database dump for me.
Usually, when I move a site, they have Cpanel ...
0
votes
0
answers
237
views
Error when setting field length on global
I have set up several globals to store the URLs of a company’s social media accounts. Each one is a plain text field, and each one is limited to 254 characters.
This works fine with three of them, but ...
0
votes
0
answers
162
views
Website Stuck on Load after few requests
I'm facing a weird issue here.
I'm developing a CraftCMS based website and all seem to be working fine, until after a few requests (clicking around 4 ~ 5 requests) the website seem to keep loading and ...
1
vote
1
answer
121
views
Updates always error out
Every time I try to run an update, I get these errors. Installing plugins won't work either. I'm using Media Temple / Grid server hosting. I've increased the file size limits in php.ini as well. But I'...
1
vote
1
answer
233
views
500 Error after Dreamhost server upgrade
Dreamhost upgraded my VPS overnight and I immediately got a 500 error. The site currently works on another Dreamhost VPS (the original below) and an Arcustech server.
After checking the error logs I'm ...
2
votes
2
answers
271
views
Remove $_SERVER and DB Queries from logs in 3.4+
How can we disable Craft from logging MySQL queries and $_SERVER object into the logs?
For our team, this creates additional noise that's not needed for us to debug issues.
Thanks :)