Wednesday, February 20, 2013

Concrete5: Unable to get permission key for read

C5 version 5.6.0.2.

I was creating a block. It wasn't finished. While I was tweaking the code, I got this error: Unable to get permission key for read. The CCM bar disappeared and I was unable to go back to the homepage.

After searching through the forums, I am still unable to find a perfect solution at the time of this writing.

If you get this error, you can try the following:
  • Go directly to your dashboard such as http://localhost/site/dashboard
  • Go to Cache and Speed Settings
  • Turn off Basic Cache and Overrides Cache
  • Clear Cache
See if you can access your homepage now. If it still doesn't work, uninstall the block you are working on. You can then reinstall it again. That worked for me!

Tuesday, February 12, 2013

Concrete5: Using "key" as table field name gives MySQL error

Tested in v5.6.0.2.

When you are writing table schema for a block in db.xml and have field name as "key", this generates MySQL syntax error while trying to install a package. Just rename the field name to something else. I think it's because "key" already represents a primary key attribute and using the same name again in field name somehow causes conflict.