Hot answers tagged

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 /...
José Veríssimo's user avatar
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 ...
John Morton's user avatar
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 ...
Brad Bell's user avatar
  • 67.2k
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 ...
Will's user avatar
  • 91
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' => ...
Damon's user avatar
  • 4,706
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.
Brad Bell's user avatar
  • 67.2k
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....
carlcs's user avatar
  • 36.1k
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 ...
Shodan's user avatar
  • 61
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/...
Mike Pepper's user avatar
  • 4,391
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/...
Andrea DeMers's user avatar
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:/...
Jalen Davenport's user avatar
  • 3,011
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 /...
Mats Mikkel Rummelhoff's user avatar
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 ...
lucaslink's user avatar
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. ...
Brad Bell's user avatar
  • 67.2k
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.
Brad Bell's user avatar
  • 67.2k
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 ...
Luke Pearce's user avatar
  • 3,853
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.
Mike Pepper's user avatar
  • 4,391
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 ...
Michael Rog's user avatar
  • 3,400
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 ...
Matt Wilcox's user avatar
  • 3,139
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 ...
Brad Bell's user avatar
  • 67.2k
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 ...
Brad Bell's user avatar
  • 67.2k
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 ...
Rick's user avatar
  • 566
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.
andrew.welch's user avatar
  • 11.3k
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, ...
Martin's user avatar
  • 301
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.....
Lindsey D's user avatar
  • 23.9k
3 votes
Accepted

Variable "entry" does not exist

I'd simplify the entry like so {% set entry = craft.entries.id(5) %} {{ entry.title }}
Steven Grant's user avatar
  • 1,855
3 votes

PHP error after one click update

This has been fixed in Craft 2.6.2804.
Brandon Kelly's user avatar
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.
Mike Pringle's user avatar
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" ...
Wolfram Gehring's user avatar
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 ...
Brad Bell's user avatar
  • 67.2k

Only top scored, non community-wiki answers of a minimum length are eligible