8
votes
unserialize(): Error at offset 0 of 60695 bytes
Adding a "^" to the craftcms version in the composer.json file and then running composer update, did the trick for me.
for example: "craftcms/cms": "^3.1.22",
I also cleared the cache folder in /...
7
votes
Locked out of my Account, how to get back in?
This is not actually my answer since it's from Andrew Welch on Twitter here: https://mobile.twitter.com/nystudio107/status/1063135843441954816
If you have access to MySQL, you can change the admin ...
4
votes
Craft internal error exposing sensitive data
Your guess is correct... as the docs say, you should never have devMode enabled in production environments specifically for reasons like this (as well as many others).
If you find errors that are ...
4
votes
An unknown error occurred all the time
I too just had this problem - upon any action in the control panel flashed "An unknown error occurred".
What I found in my craft web.log was:
"ErrorException: ignore_user_abort() has been disabled ...
4
votes
Assets Transform returns "Image cannot be found."
A long shot, but if it is indeed a path problem, this has seemed to help me keep my path(s) straight. I my config.php file, I'll set a parameter for environmentVariables like this:
...
'.dev' => ...
4
votes
Accepted
Service Unavaliable
You'll get that message if Craft isn't installed and you hit the front-end of the site.
You'll want to load the control panel for the installer to trigger as noted in Step 5 of the install docs.
4
votes
Accepted
No Add New Entry button
There is a Quick Post widget that allows you to create entries from the Dashboard page of the Control Panel.
A New Entry button is available from the entries index pages located at the top right, e.g....
4
votes
An error occurred when rendering a template
You can receive this error if you have uploaded a Craft website and your craft/storage/runtime/cache and craft/storage/runtime/complied_templates folders are not writable.
We made these folders ...
4
votes
Accepted
Best way to find a deprecation error with no location hint?
If you look in the list of file paths in the stack trace there will be one or more files in the storage/runtime/compiled_templates directory. In this particular case there is storage/runtime/...
4
votes
“Request missing required body param” error when creating entry on front end
This was an unintentional breaking change. See https://github.com/craftcms/cms/issues/4693
Update: Fixed in 3.2.9, which is now (2019-08-06) available https://github.com/craftcms/cms/blob/develop/...
4
votes
Accepted
Feed me plugin, cURL error 60
I would try adding the following to your feed-me.php config file:
<?php
return [
'*' => [
'clientOptions' => [
'verify' => false,
],
],
];
c.f. https:/...
3
votes
White Screen of Death
Honestly, that's pretty much impossible to say, it could be pretty much anything – though a white screen is often due to PHP errors, in which case you might find a clue in your log files (located at /...
3
votes
Invalid asset source path
the general.php file was setup for a multi environment but was missing
'*' => array(
),
as per the notice here:
https://craftcms.com/docs/multi-environment-configs
{basePath}assets/images/ was ...
3
votes
Accepted
Craft is unable to determine if an update is available at this time
You're getting that error message because there is an existing craft/config/license.key file in place for your local installation and there is no record of that install on the Craft/web service end. ...
3
votes
Accepted
Blank white pages after moving index.php
Not sure the underlying cause, but clearing the craft/storage/runtime/cache folder that both sites shared caused both sites to start working as expected.
3
votes
Accepted
Count users, not enough memory error
Use .total() instead of .count()
.count() will query the db and fetch all fields for all items relating to your criteria and then count them.
.total() only counts the number of items your criteria ...
3
votes
Accepted
White screen during installation
Whenever I've had a completely white screen from Craft I've traced it to a syntax error in one of the files in craft/config, so I'd double-check your db.php and general.php if they've been edited.
3
votes
Accepted
Why would Craft produce a template loader error (TemplateLoaderException) when rendering its default error pages?
As it turns out, I had made a configuration change that broke Craft's default behavior:
'defaultTemplateExtensions' => array('twig', 'xml')
All of Craft's internal templates use .html, and HTML ...
3
votes
My website isn't working: "Craft does not support backtracking to this version. Please upload Craft 2750 or later."
Sounds like your database was updated but your filesystem was not - that could happen perhaps if the development version and the live version share the same database, and only the development version ...
3
votes
An unknown error occurred all the time
Something should be in the logs. If it's happening on every page in the control panel, then most likely it's cURL related.
Clear your craft/storage/runtime/logs files, reproduce the issue, then ...
3
votes
Accepted
Issue trying to use function from DateTimeHelper class: "timeAgoInWords() is not defined"
Generally speaking, only Variable classes are exposed to templates in Craft and there isn't a Variable wrapper for DateTimeHelper.
However, that would be a super-simple plugin to write that exposes ...
3
votes
Accepted
Error: min/max value in number fields
Numbers have certain limits in computer systems and storing (as well as working with) exceptionally large ones is cumbersome.
In the database, the int (integer, a whole number) is limited to a range ...
3
votes
403 Forbidden Assets
This article will help you set permissions properly for Craft CMS installs:
Hardening Craft CMS Permissions
It leverages Craft-Scripts to do the heavy lifting.
3
votes
Accepted
Whitespace created a start of HTML
I finally found what the problem was.
The translations files (/craft/translations/de.php) were encoded as "UTF-8 with BOM"
I opened these files in Sublime text and saved them as regular old UTF-8, ...
3
votes
Getting image url error code: Impossible to access an attribute ("url") on a null variable
For whatever reason, your site isn't able to find the image. And since your Twig code isn't being defensive, it's failing ungracefully.
{% set image = block.media.first() %}
This first part is fine.....
3
votes
Accepted
Variable "entry" does not exist
I'd simplify the entry like so
{% set entry = craft.entries.id(5) %}
{{ entry.title }}
3
votes
3
votes
404 problems, staging only
Looking at your screenshots, the host names are different. The cPanel 404 shows mysphotos instead of myphotos.
Probably a typo somewhere in your templates.
3
votes
Accepted
A&M forms on submit internal server error
If you want to upload assets with your form, you will need to include enctype="multipart/form-data" in your form tag:
<form method="post" accept-charset="UTF-8" enctype="multipart/form-data" ...
3
votes
Security test generated large compiled_templates directory, site outage
I don't have specific answers to your questions, but that's mainly because I feel there are some clarifications and observations that I think might be more helpful.
The thread you linked to is ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
error × 205craft3 × 31
error-message × 28
templating × 17
server × 13
404 × 13
database × 12
assets × 10
php × 10
install × 10
installation × 10
updates × 10
admin × 8
plugin-development × 7
field × 7
url × 6
cache × 6
login × 6
error-handling × 6
plugin-craftcommerce × 5
control-panel × 5
matrix × 4
plugins × 4
config × 4
upload × 4