Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
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
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.5k
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
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.3k
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,045
4 votes
Accepted

Basic 404 setup not working

If devMode is on, you will always see the above exception page. Turn it off to see your 404 page, or just navigate directly to the template, e.g. http://example.com/404 More here: https://nystudio107....
andrew.welch's user avatar
  • 11.6k
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

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.6k
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

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.5k
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.5k
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,863
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

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.5k
3 votes

See 404 error cause by some weird URI in index.php

These are very likely bots that are scanning the website for various things (I see it for WordPress logins a ton). Two things you can do: Redirect them. This is what I do for WordPress bots Install ...
andrew.welch's user avatar
  • 11.6k
3 votes
Accepted

Getting HTTP 500 error at end of update process when going from Craft 2 to Craft 3 with MAMP

Try switching MAMP out of Fast CGI mode. Go to the PHP Tab and select "Identical PHP Version for all hosts (Module mode)". Restart the servers and then. Then run the update. You can normally switch ...
foamcow's user avatar
  • 2,019
3 votes
Accepted

“Request missing required body param” error when creating entry on front end

Added an empty entryId-field to the form which apparently solves my problem. <input type="hidden" name="entryId" value="">
Marcus Scheller's user avatar
3 votes
Accepted

After transferring local to server, Twig Runtime Error: Impossible to invoke a method all() on an array

You can't call .all() twice. In myEntryQuery you have converted the result into an array, you are then trying to call .all() again, but at this point you have an array, so .all() can't be used as it's ...
James White's user avatar
  • 1,161
3 votes
Accepted

Upgrade from craft 2 fails due to read-only mode

The goal is to eventually upgrade to Craft 4.x, but I thought it would be easier to first update to Craft 3.x Not just easier; upgrading to the latest 3.x release is a prerequisite for upgrading to ...
Mats Mikkel Rummelhoff's user avatar
3 votes

Can't Update CraftCMS

In Craft 3 and upwards you should have a vendor folder that is created and updated with composer. You would do the update locally (I recommend docker and ddev), which will update composer.json, ...
Max Strebel's user avatar
2 votes
Accepted

404 problems, staging only

Probably your paths are not set up right; or the SERVER_NAME isn't what you think it is, so it's not matching the paths in your general.php
andrew.welch's user avatar
  • 11.6k
2 votes

'Unknown error' caused by redirect in htaccess

It might be down to the order you have the code in your htaccess file? Did you try putting your code above the Craft rewrite code? # redirect PHP or HTM to no extension RewriteCond %{THE_REQUEST} ^[A-...
Terry Upton's user avatar
  • 1,894
2 votes
Accepted

Update Error: Could not validate update handle

Looks like the issue had to do with my production environment being load-balanced. To avoid errors like these on load balanced sites, remember to set the validationKey and appId config keys in your ...
Leah Scott's user avatar

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