Top.Mail.Ru
? ?

cakephp

some more bugs in the developerWorks tutorial

Dec. 20th, 2006 | 05:26 pm
posted by: Imagebobalien in Imagecakephp

I hit another little bug in the developerWorks tutorial; there's a problem in Part 2, Section 8: Putting your ACLs to work

continued...Collapse )

Link | Leave a comment | | Flag

cakephp

bug(s) with acl.php

Dec. 20th, 2006 | 02:21 pm
posted by: Imagebobalien in Imagecakephp

I've been running through the developerWorks articles on Cake, and hit a little bug during the ACL steps; I was getting 2 errors, one regarding array_shift() requiring an array parameter, and the other stating "class 'Configure' not found"

The first issue was my fault; I recently installed PHP5 and Apache2.2, and my php directory is now c:\php5, but c:\php was still in my Windows PATH list, so when I was running php from my command line, it was calling c:\php\php.exe (which was my old php4.x install) and for whatever reason the line "$serverArgs = env('argv');" in acl.php was returning nothing; I took out c:\php from my path, and the warning disappeared. Probably nothing anyone else will hit, but as a heads up, if you ever experience bizarre CLI behavior, and you have multiple PHP installs either specify the full pull for php.exe, or check on your PATH variable.

The second issue has already been addressed by the Cake team (https://trac.cakephp.org/changeset/4078) but the code has not been merged into the trunk yet, so even if you have the latest nightly build, you get the error 'class Configure not found'; changing the uses() call on line 93 to include 'configure' fixes this issue.

EDIT: The acl fix above still does not allow "initdb" to be run for me; if you're having a problem with running initdb, you can just run the sql file app/config/sql/db_acl.sql on your database by hand. The ACL "create" command seems to be running just fine.
Tags: ,

Link | Leave a comment | | Flag

Image