Questions tagged [error-message]

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

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

FileLogRoute.php maximum size error

When saving a whole bunch of users through a plugin I get the following error: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1835217 bytes) in /home/butpanel/...
4
votes
0answers
2k views

runtime isn't writable by PHP. Please fix that

I keep getting the error: mydomain.com/craft/storage/runtime isn't writable by PHP. Please fix that. I am running Redhat, and have set the folder permissions to 777, any ideas? Thanks in advance.
2
votes
2answers
925 views

Translate field name displayed within validation error messages?

I'm adding validation errors to fields using addErrors($record->getErrors()) which then read like e.g. "My Field cannot be blank." But I'm wondering where I can translate the field name, which I ...
1
vote
1answer
364 views

Receiving 'template loader exception' when trying to view asset (image) after upload

Anyone ever encounter this error when trying to view an asset (image) after upload? I'm working in homestead and everything appears to be compiling correctly, however the images don't render in the ...
5
votes
1answer
930 views

Use of undefined constant JSON_HEX_TAG

I'm running PHP 5.3.3, which the docs say is supported, but if I try to go to the main admin page or go to add a field, I'm getting an error: Use of undefined constant JSON_HEX_TAG - assumed '...
2
votes
1answer
3k views

“Object of class Craft\ElementCriteriaModel could not be converted to string” in Craft CP

After updating some fields for entry types and submitting new entries, I'm getting a "Object of class Craft\ElementCriteriaModel could not be converted to string" in the Craft control panel upon ...
3
votes
2answers
546 views

Issues with compiled_templates - call to undefined method

We have two web servers in a load-balanced setup. Both servers are sharing a single database. The craft and public folders are rsync-ed between the two so changes on those folders in web1 propagate ...
3
votes
2answers
544 views

Localized {siteUrl} setting - confused

Has something changed recently regarding the ocalized {siteUrl} setting? I'm setting up a new localized site on MAMP PRO and the old config code I used on several other projects is throwing an error "...
3
votes
1answer
183 views

craft()->locale->getTimeFormat() throws Fatal error

When requesting the control panel I get the following error: Fatal error: Call to a member function getTimeFormat() on a non-object in /craft/app/etc/requirements/RequirementsChecker.php on line 103 ...
4
votes
1answer
334 views

Undefined property: Craft\WebApp::$cache

Just ran into this error while developing a plugin. Not doing much of anything special, just editing and renaming a few templates. What could cause this error to happen?
2
votes
1answer
1k views

Returning errors into templates

When working with a custom form that posts to a plugin function - what's the best way to return errors that would be displayed like the forgot password code example below {% if errors is defined %...
4
votes
1answer
999 views

Controller action throws a 500 error in some environments

We have a plugin. Locally, it's working as expected. When we push to dev, one of the actions begins to throw a 500 error. The action is taking place via an ajax call, and the error in the console is:...
4
votes
4answers
456 views

How to move repeating code into an include template

I'm new to Craft and have created some SEO fields similar to this, and the template code appears in all templates as shown below. I don't want to be repeating all that code in every template though, ...
4
votes
2answers
744 views

Fatal error: Class 'Craft\FileCache' not found when trying to install

I've been trying to install Craft on a DigitalOcean server. I used DO's LAMP stack application on Ubuntu 14.04 and downloaded the latest version of Craft. After uploading everything to my web root (...
2
votes
1answer
1k views

Error: 2006 MySQL server has gone away

Several visitors, over the course of weeks, have mentioned receiving the following error when viewing the site: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2006 ...
2
votes
1answer
7k views

Failed to load resource: net::ERR_CACHE_MISS

I've run into this error from time to time: Failed to load resource: net::ERR_CACHE_MISS I've seen it being thrown by several different files. I don't know how to trigger it to better explain how ...
3
votes
1answer
3k 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 ...
5
votes
4answers
4k 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 ...
1
vote
1answer
1k views

404.html template causing twig_error_syntax

I created a generic 404.html template to replace the default Craft page. I'm getting the following error when forcing a 404 in browser. Any idea what the issue is? Twig_Error_Syntax The filter "...
1
vote
1answer
483 views

Variable 'foo' does not exist in template

I've uploaded my site to the live server and i'm getting Template Error Variable "heading" does not exist On a couple of pages. This is only happening to 2 sections, the rest are all fine. and it ...
3
votes
2answers
455 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 ...
1
vote
2answers
1k views

PHP Error log in CP gives me 403 forbidden

If I want to view the PHP Error logs from craft true utils/logs I get an 403 Forbidden error. nginx/1.6.2 ../admin/utils/logs/phperrors.log What could be wrong?
3
votes
1answer
104 views

Change message if database error

Is it possible to route to a nice "Site is currently offline" error page if there is an issue connecting to the database? Currently you'll see something like the message below which isn't very ...
1
vote
1answer
533 views

Errors Saving Entries

Suddenly getting errors when trying to save entries. Have recently upgraded to latest version of Craft. When I try up update a Single Entry I get the error: Fatal error: Call to a member function ...
12
votes
4answers
25k 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 ...
2
votes
1answer
262 views

Plugins page inside CP Settings not working

I get an error when trying to access CP/Settings/Plugins: Fatal error: Class 'Craft\PluginVariable' not found in folderpath/craft/app/variables/PluginsVariable.php on line 47 Any Ideas?
5
votes
1answer
5k 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->...
0
votes
1answer
181 views

Output error of the current password correctly

In the Setting of an account on front-end I've added the possibility to change the password. Please enter your current password, then the new <form id="userform" class="" method="post" accept-...
1
vote
1answer
755 views

Cannot find the target folder

I get an error message when trying to add an asset through a matrix field when I try to save the entry Internal Server Error Cannot find the target folder. I am able to upload images through assets ...
2
votes
1answer
535 views

Log exception to a third party service like Sentry or Rollbar?

Are their any best practices? Maybe some way to hook to craft native exception / log handler with a third party implantation so I could track my errors on services like Sentry or Rollbar?
5
votes
1answer
1k views

Template error on local development when checking entry variable

I'm working on a english/spanish site that includes a language switcher link in the site footer. The code for the switcher grabs the currently displayed entry, checks whether a corresponding entry ...
2
votes
1answer
274 views

Add errors to an event via plugin

I'm looking to add some additional functionality to the user registration process. Basically, we will be creating "access codes" that can be used N number of times during registration. Once N users ...
0
votes
1answer
141 views

Craft\WebApp and its behaviors do not have a method or closure named “getInfo” [closed]

Craft\WebApp and its behaviors do not have a method or closure named "getInfo". appeared today, nothing has been updated or changed. Any ideas?
4
votes
3answers
1k 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 ...
0
votes
1answer
197 views

Craft throwing an SQL error on Save when Matrix field has a lightswitch [closed]

Since updating to 2.2.2587, anytime I edit an entry by adding a block on certain Matrix fields, it throws the following error: Internal Server Error CDbCommand failed to execute the SQL statement: ...
2
votes
1answer
48 views

Download craft error

When I download the Craft CMS and try to unpack it. I get the error: "Unexpected end of archive". It seems the download pakage is not complete. When I browse in the .zip file I only see a craft folder ...
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
1answer
1k views

Craft 2.2 with enabled enableCsrfProtection: Failed to load resource: the server responded with a status of 400 (Bad Request) [closed]

Since the update to version 2.2 I can't upload assets. I get this error message in the console: Failed to load resource: the server responded with a status of 400 (Bad Request) And the upload stops:...
19
votes
3answers
381k views

413 “Request Entity Too Large” error with uploading a file

In assets when uploading a medium size file I get this error: Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) What does it mean? And how to fix?
1
vote
2answers
725 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->...
3
votes
2answers
1k views

Getting “Internal Server Error: Function 'dump' does not exist” when accessing/creating custom fields

On my in-development version of a site I'm working on, I'm unable to access any of my custom fields without Craft displaying an error that reads: Internal Server Error Function "dump" does not ...
5
votes
1answer
1k views

change the root directory references

All, we have a website built by third party company and they gave us the pack which includes cms, craft and MySQL database. But our hosting server is hardcoded to run the website from public_html ...
3
votes
1answer
214 views

How to stop rendering errors being output in production

Due to a server problem one of our production sites was unable to connect to the DB. While it was unable to connect the site was outputting the error: An exception has been thrown during the ...
3
votes
2answers
430 views

How do you “pin” a flash error message in the CP?

It's possible to generate a "flash" error message at the top of the control panel like this: craft()->userSession->setError('Your custom plugin error message.'); The message appears at the top ...
2
votes
1answer
408 views

Unknown error occurred after install on MAMP

Successfully installed Craft on MAMP but whenever I load the dashboard, I get the error message "Unknown error occurred". The message clears after a few seconds. The CMS appears to be functioning ...
1
vote
1answer
1k views

What would cause an Internal Server Error on saving entry

When I try to save a new entry as a child under a Structure entry, I get the following error: Internal Server Error Object of class Craft\ElementCriteriaModel could not be converted to ...
12
votes
2answers
973 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. ...
4
votes
2answers
1k 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 ...
1
vote
0answers
78 views

Fatel error message when saving post/pages [closed]

Why do I sometimes receive the following message when I save a change made to a page: Fatal error: Call to a member function getAttributes() on a non-object in /nfs/c04/h06/mnt/181592/domains/...
8
votes
3answers
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" ...