Montag, 3. Dezember 2012

PHPUnit ZendFramework PHP Fatal error: Undefined constant

Bei folgendem Fehler:

PHP Fatal error:  Undefined constant 'Album\Zend\Loader\ClassMapAutoloader' in
 C:\...\Module.php on line 8


Hat man die Falschen Anführungszeichen -`- statt -'-!

Bei mir passiert beim kopieren aus dem Zendframework-2.0.4-manuel-en.pdf.

PHPUnit Zend Framework PHP Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeExcept ion' with message 'Module (Album) could not be initialized.'

Wenn man eine solche oder ähnliche Fehlermeldung erhält:

PHP Fatal error:  Uncaught exception 'Zend\ModuleManager\Exception\RuntimeExcept
ion' with message 'Module (Album) could not be initialized.' in C:\...ModuleManager.php:144
Stack trace:
#0 

...
#4 C:...ModuleManager.php on line 144

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException'
with message 'Module (Album) could not be initialized.' in ...


Dann hat man die Datei Module.php im Falschen Verzeichnis
(If you get This Message above the File Module.php is missing or in wrong directory!)