-
Notifications
You must be signed in to change notification settings - Fork 161
FAQ
Can somebody please fix this stupid screaming layout?
When I tried using this module I stumbled across a few problems, I thought it might be a good idea to post my solutions here so anybody coming across this will not have the same hassle.
The problem here is that mysql doesn't accept the foreign keys for some reason. You can fix this by opening up the /data/schema.sql file and add a line to the top and the bottom:
Topline:
SET foreign_key_checks = 0;
Bottomline:
SET foreign_key_checks = 1;
(Parse error: syntax error, unexpected ')', expecting ']' in /home/snoech/code/zftuts/trunk/config/autoload/bjyauthorize.global.php on line 40)
I fixed this by deleting the (in my opinion) wrongly placed ) in
\BjyAuthorize\Provider\Role\Config::class => [ 'guest' => [], 'user' => ['children' => [ 'admin' => [], )], ],
Now you will get the next error. It occurs that the file misses a ], for the bjyauthorize array part. So, add it at the end of the file BEFORE the (obviously) closure of the return array.