According to _registry_parse_file (http://api.drupal.org/api/drupal/includes%21registry.inc/function/_regis...), specifically the following line:

if (preg_match_all('/^\s*(?:abstract|final)?\s*(class|interface)\s+([a-zA-Z0-9_]+)/m', $contents, $matches)) {

Classes are not stored in the registry if they use the upper case C as in "Class". This causes drupal_autoload_class to fail to find the correct include and thus there are situations where a class definition is never loaded.

In addition, PHP documentation all appears to encourage the lower case "class" in it's examples.

Comments

ericduran’s picture

Status: Active » Closed (works as designed)

@carn1x you should use a lower case "c" in "class". This error is talking about your class name, not the actual class string.

carn1x’s picture

Derp! Thanks for setting me straight :)