While following the IBM Cooking Websites Fast with CakePHP Series Part 2, I get a weird error message each time I try to create an ARO from the console. I’m using CakePHP Beta: 1.2.0.6311 at this time of speaking.
The BIG FAT BUG
According to the tutorial, you will be creating two ARO user groups, Users and Dealers, from /cake/console:
php acl.php create aro 0 null Users
php acl.php create aro 0 null Dealers
which give me back:
Could not open input file: acl.php
After searching elsewhere, I’ve found you can do the same thing using:
cake acl create aro 0 Users
* You probably would want to stick with this way of creating ARO using the console anyway, as I think the previous method won’t work anymore as it seems there’s a file path/location problem
which then gives me back:
Fatal error: Class ‘String’ not found in …./cake/libs/model/datasources/dbo_source.php on line 1455
Finally, THE SOLUTION
Go into dbo_source.php and edit line 29 so that it looks like:
uses(‘set’, ‘string’);
Now go back to ….cake/console and run
cake acl create aro 0 Users
which will then give you back what you are looking for:
New Aro ‘Users’ created.
That’s all. Have fun baking!
Juan Barrientos says
Thanks man! very helpfull!
David says
I’m glad that someone found this useful 🙂
Doug says
I was struggling with this as well… thanks for taking the time to post this solution!
Werner says
wow, i came across the same bug. You helped me alot!
Justen says
Another thanks, saved me tons of time trying to figure that one out myself. 🙂
J.R. says
Thanks a lot. It’s easy to not post these things because you think they’re trivial or no one will care, but people do care. You helped me out a lot. I appreciate it.
Frank says
Cheers! Nice fix – this saved me a bunch of time.
Gustavo Cortinez says
Thanks man you have no idea the time i spent with this…
Gustavo says
thanks man very helpfull
Veracious says
Thanks a lot! Helped me too 🙂