Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.
chilion edited this page Aug 26, 2014 · 2 revisions

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.

Import of the /data/schema.sql gives an error (150)

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;


After copy paste the default autoload.php file it gives an error on line 40.

(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.