[Solar-talk] toArray() current()

Jeff Surgeson solar at 3hex.com
Mon Feb 12 04:41:31 PST 2007


> > Call to a member function current() on a non-object
> > in /var/www/localhost/htdocs/libmod/Solar/Auth/Adapter/Sql.php on line
> > 149
>
> I had a problem with an old role adapter I was using and was provoking
> an error in the access adapter, but it is fixed now. Antti's access
> adapter (the one from Abovo) is working fine. So you could check which
> $roles are passed to the access adapter. Which is the role adapter you
> are using?

I am using solar_role_adapter / solar_access_adapter / 
abovo_access_adapter_sql,  Antti is also using solar_access_adapter.

All of the above, including Antii's work fine when using the latest solar svn 
but fail with this error on all auth / role / access stuff, either on the 
toArray() or current() methods probably others as well.

As far as I can work out it has nothing to do with the access or role 
adapters, and I say this because if I disable all role and or access code and 
leave just the basic solar_auth it still fails on the current() method in the 
solar_auth_adapter_sql.

So it must have something to do with changes Paul has recently made in the new 
model sql stuff that now fails when the toArray() and current() methods are 
called.

I am sure Paul is aware of this and will hopefully sort in time, probably 
something needs to be changed in all the solar_auth/role/access  stuff to 
make it compatible with new model stuff.

I personally cant figure out why, maybe you guys can, if not I am sure Paul 
will. 

It is not a problem for me just trying to stay current on my dev stuff.

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the solar-talk mailing list