On 3/23/2013 2:21 PM, Valentin wrote:
InvalidArgumentException: Bitmask cannot get non-existent flag in
/var/www/virtual/one/html/system/classes/bitmask.php line 150
This error is caused when attempting to access a flag on a bitmask that
doesn't exist. For example, if you have a Habari permission bitmask
named $access, which only has the flags "read,edit,delete,create" on it,
and you tried to do this:
if($access->not_present) {...}
It would throw the exception mentioned.
This can also happen if some variable is defined as a Bitmask, but the
Bitmask in question never had its flags set:
$bitmask = new Bitmask();
if($bitmask->foo) {...} // Causes an exception for any "foo"
To debug this, you'd need to see a stack trace to find out what line in
the code causes the exception to be thrown. Check out this page in the
wiki for tips on how to display the call stack when there are errors:
http://wiki.habariproject.org/en/Debugging_Tips
If you find out what code is doing it, and need more help, come on back.
Owen
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
---
You received this message because you are subscribed to the Google Groups "habari-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.