Questions tagged [error-message]

Information about an error displayed when an unexpected condition (error) occurs.

Filter by
Sorted by
Tagged with
12
votes
2answers
1k views

Why are some entry detail views empty in the control panel?

I can't seem to edit entry details all of a sudden: in this Products section (and only this one section), the page title and "Current Version" button will render, but the rest of the page is missing. ...
14
votes
4answers
28k views

FastCGI error when accessing a local development site using MAMP Pro

I'm running across a problem developing a site locally using OS X 10.10 and MAMP Pro 3.0.5 with PHP 5.5.10. Accessing both the site front-end and the back-end admin interface is throwing an error 500 ...
8
votes
1answer
4k views

Return entries where field is "not empty"

I'm trying to return entries where a specific field named "productSale" is not empty. Unfortunately, my code attempts keep throwing the "Expected name or number" error. Code attempts include: {% set ...
8
votes
2answers
3k views

Does Craft have an installer error log I can check?

I've tried to install Craft on a variety of systems, and it seems that no matter what I try, I cannot get all the way through the installation process. In most cases, my install hangs on the "Oops" ...
1
vote
1answer
493 views

Getting to grips with errors and flash messages

As a newbie to Craft and Craft Commerce. I wondered if someone could explain the difference between all these error codes that I have seen either in the docs, this forum or the templates and when they ...
4
votes
3answers
2k views

Getting "Session Ended" popup in admin

Every minute or so I get the "Your session has ended" popup in the admin. Entering my password just pops the message back up. If I reload the page I'm still logged in. I'm running Craft in vagrant so ...
3
votes
1answer
544 views

500 Error with no details on site migration

I'm trying to migrate my site from a PHP5.6 host to a PHP 7 host in preparation for Craft 3. I've copied everything across and am trying to load an exact copy of the production site on a different ...
9
votes
2answers
2k views

Installation Error "1046 No database selected"

Summary I'm getting the following error when attempting to install a new Craft site locally: CDbCommand failed to execute the SQL statement: SQLSTATE[3D000]: Invalid catalog name: 1046 No database ...
6
votes
1answer
7k views

How to display a flash message in a template

I have a plugin that accepts a form post. I need to return a notice or error, plus the original data. Starting with the notice/error first, I have tried this: if (craft()->broadbean_jobs->...
7
votes
3answers
2k views

Render generic message/error template from plugin

Basically, I'm trying to emulate show_error from EE/CI: http://ellislab.com/codeigniter/user-guide/general/errors.html I want to just use the generic Craft error template (/craft/app/templates/error....
4
votes
2answers
2k views

PHP Fatal error: Allowed memory size of X bytes exhausted

Getting the following when just querying the database for all records in a section (channel). There are about 75 entries. I'm getting the PHP Fatal error: Allowed memory size of 33554432 bytes ...
9
votes
4answers
2k views

"Craft is unable to determine if an update is available at this time."

I am receiving the following error when I click on Check for Updates ... Craft is unable to determine if an update is available at this time. Do you know what could be causing this?
5
votes
4answers
5k views

500 error on installation since version 2.3

I have tried everything to install Craft on my server, and I have not been able to do it. I have done this a few times before without any issues, but since version 2.3 was released, I can't access the ...
4
votes
1answer
551 views

Plugin CP page causes white screen

I'll start off by saying my plugin is working perfectly locally. The problem is when I upload to my server. My plugin is for a contact form. It handles the submission, and logs the entry in the db. I ...
4
votes
1answer
4k views

Impossible to invoke a method on a null variable

I call a asset like this: {% set headImage = entry.geschaeftsbereichHeadImage.first() %} <img src="{{ headImage.url(headBanner) }}" If I don't ad any image to this field there is a twig error: ...
3
votes
2answers
461 views

admin pages loading but not site itself, strange error [closed]

I installed Craft CMS and all seemed great! But the pages are not loading.. So bascially /admin loads but /index.php genrates an error. In dutch: "Interne Serverfout Craft\EntryModel en zijn ...
3
votes
1answer
4k views

Error with uploading Asset Files: net::ERR_EMPTY_RESPONSE

In my local MAMP site I'm not able to upload any files. Gives me this error in Chrome: http://nobel.craft.dev:8888/index.php?p=admin/actions/assets/uploadFile net::ERR_EMPTY_RESPONSE This error ...
2
votes
1answer
531 views

How to overrule Craft error messages with custom setError()?

I know I can set errors and notices in the CP with setError() and setNotice(). But it gets overruled by the default error message in my event. I have a beforeDeleteEntry event which stops the ...
2
votes
0answers
419 views

Checking if a value matches an entry type handle

I am trying to check if a value provided by the user (url segment) matches an entry type, and if not redirect to 404. {% set section = craft.sections.getSectionByHandle('shop') %} {% set entryTypes = ...
2
votes
1answer
385 views

Failed Task and various errors in logs

I've got a few issues with a site but I'll try to separate in case they're not related. Firstly I keep getting "Failed task - Deleting stale template caches". I've looked in the logs and some ...
1
vote
1answer
249 views

SSL now CP unknown errors

I have a Craft 3 site that's been running on a production server. Recently we switched over to https but this has caused issues in the CP (multiple 'An unknown error occurred' red flags, can't view ...
1
vote
1answer
289 views

500 Error on AWS bitnami instance

I have a fresh LAMP instance based on a bitnami image on AWS. All server requirements are met for Craft 2, but I'm getting a 500 error when trying to hit the site: site.com is currently unable to ...
1
vote
2answers
825 views

Undefined property: Craft\WebApp::$request

What could cause Craft to not define the request object? I have a local site that recently stopped loading (front-end and back-end) The error is happening in WebApp.php (line 630) when $this->...
1
vote
2answers
112 views

Why do some entries generate a template error on get next or previous post when others do not?

I have setup chevrons to links to the previous and next posts. It seems to work for all but a handful of posts. Those posts generate the following template error: Impossible to access an ...
1
vote
2answers
2k views

An unknown error occurred all the time

When creating, editing or deleting anything in CP the notification with "An unknown error occurred" is appended at the top. I check the console and I get a 500 on these: /index.php/admin/actions/...
1
vote
1answer
477 views

PHP warning with composer on MacOS High Sierra: Failed to open stream

We have multiple people working on a craft site using Vagrant and Virtual Box for our local server. I am running MacOS Sierra, and everything works as expected. A couple of our other developers have ...