by Mika Sue.
I fixed the error at certain lines the code was $classname::function() I changed this to $classname->function() and it worked. the :: is the incorrect syntax.
/lib/accesslib.php someone may want to fix it in the other distributions.