ZF-11446: Class "xxx" does not exist: Plugin by name 'yyy' was not found in the registry; used paths:

Issue Type: Bug Created: 2011-06-06T18:03:06.000+0000 Last Updated: 2012-05-29T13:41:41.000+0000 Status: Closed Fix version(s): Reporter: paolo anghileri ( Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Amf

  • Zend_Auth
  • Zend_Db_Table
  • Zend_Server_Reflection
  • class
  • plugin

Related issues: Attachments:


I am facing a problem regarding the usage of the flex libraries on a server on which the zend framework is not installed. I simply place the zend libraries inside a folder and reference them as php includes. I supposed this system to work on he flex project I am developing. This project works on my local machine and on some servers in which the flex framework is installed.

I have a service endpoint file which is called serviceEP.php where all the classes are set with $server->setClass. $server->handle() generates the following error:

Here is the fault string:

Class "servicesEP" does not exist: Plugin by name 'ServicesEP' was not found in the registry; used paths:

Please note that ServiceEP is named with the first letter in capitals while in no place my project has this name in capitals. Renaming all references in project to ServiceEP (with "S") instead of "s" does not solve the issue.

Here are the fault details:

0 /web/htdocs/ Zend_Amf_Server->_dispatch('login', Array, 'servicesEP')

1 /web/htdocs/ Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))

2 /web/htdocs/ Zend_Amf_Server->handle()

3 {main}

I have searched a lot on the web and found many occurrences of the issue (also on in this bug tracker) but did not find a solution to this problem.


Posted by Matthew Weier O'Phinney (matthew) on 2011-06-06T18:19:53.000+0000

The warning you're getting is that it's trying to use a class named "servicesEP", and it can't find it.

In order to diagnose this any further, I'd need to see how you're calling setClass(), and some knowledge of how your classes are being loaded (are you providing a path to services to Zend_Amf_Server? what files are in that path? what classes are in those files? do you have any autoloaders in play? etc.)

Please provide this information so we can better diagnose whether or not an actual issue is present, or if this is simply a configuration problem.

Posted by paolo anghileri ( on 2011-06-07T07:55:57.000+0000

Thanks for your answer Mattew,

This code usually works on other severs and on my local machine. The only difference is that in this server zend framework is not shown in phpinfo but I included the libraries.

Here is how i link the libraries:(this is the servicesEP.php file)

//zend framework inclusion require_once 'Zend/Amf/Server.php'; require_once 'Zend/Auth.php'; require_once 'Zend/Auth/Adapter/DbTable.php';

Here is how I include the file contaning the servi

//web services files inclusions require_once 'services/AMFAuth.php';// AMF services instance $server = new Zend_Amf_Server(); $server->setProduction(false);

//adding classes to zend amf server $server->setClass("AMFAuth");

//sending the handle echo($server->handle());

This other is my auth class included in services/AMFAuth:

version\_compare(PHP\_VERSION, '5')) { die('This file was generated for PHP 5'); } class AMFAuth { /\*\* \* Login management \*@abstract Login management \* @name login \* @method login \* @param string $user \* @param string $password \*/ public function login($user,$password) { $db = Zend_Db::factory('MySqli',array( 'host' => DB_IP, 'username' => DB_USER, 'password' => DB_PWD, 'dbname' => DB_NAME ) ); $authAdapter = new Zend_Auth_Adapter_DbTable($db); $authAdapter->setTableName('operators'); $authAdapter->setIdentityColumn('loginName'); $authAdapter->setCredentialColumn('loginPwd'); $authAdapter->setIdentity($user); $authAdapter->setCredential(md5($password)); $auth = Zend_Auth::getInstance(); $result = $auth->authenticate($authAdapter); if ($result->isValid()) { $data = $authAdapter->getResultRowObject(null, 'password'); $auth->getStorage()->write($data); return $data; } else { throw new Exception('Autenticazione fallita'); } } } One other problem I noticesd on this server is that if I call servicesEP from the browser, the browser asks to save the file instead of displaying its content. If I save the file and open it in an editor the content is " Zend AMF services ", so it seems correct and no inclusion errors or ther kind of errors are displayed. Thanks a lot for your help Mattew. Paolo Posted by David Baron (dbaron) on 2011-08-18T05:58:48.000+0000 I am having the exact same problem. When I migrated my Flex/PHP project from my local Apache/PHP (running on Windows 7) to a hosted linux system, I get the same error: Class "clsPeople" does not exist: Plugin by name 'ClsPeople' was not found in the registry; used paths: /user/www/MyAppName/ I do not have a file or class named "ClsPeople" (upper case C). Every instance of my names are the same - lowercase cls plus 'capitalized' object name, i.e., clsPeople. I have seen this bug reported in other places on the web. Is there anything we can do here? Posted by Adam Lundrigan (adamlundrigan) on 2012-05-29T13:41:41.000+0000 Plugin class and file names must both start with a capital letter

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.