Issue

ZF-6503: A provider provided by the Zend_Tool_Framework_Manifest_ManifestBadProvider does not implement Zend_Tool_Framework_Provider_Interface

Issue Type: Bug Created: 2009-05-03T04:07:51.000+0000 Last Updated: 2010-01-17T14:19:08.000+0000 Status: Resolved Fix version(s): Reporter: Dalibor Karlovic (dkarlovi) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments:

Description

Downloaded the 1.8.0 tar.gz, unpacked the library dir to /usr/share/php/Zend (this is in the include path), copied bin/zf.{php,sh} to /usr/share/php and then did a ln -s /usr/share/php/zf.sh /usr/bin/zf. When running zf, I get:

<pre class="literal"> 
PHP Fatal error:  Uncaught exception 'Zend_Tool_Framework_Manifest_Exception' with message 'A provider provided by the Zend_Tool_Framework_Manifest_ManifestBadProvider does not implement Zend_Tool_Framework_Provider_Interface' in /usr/share/php/Zend/Tool/Framework/Manifest/Repository.php:100                                    
Stack trace:                                                                      
#0 /usr/share/php/Zend/Tool/Framework/Loader/Abstract.php(104): Zend_Tool_Framework_Manifest_Repository->addManifest(Object(Zend_Tool_Framework_Manifest_ManifestBadProvider))                                                                        
#1 /usr/share/php/Zend/Tool/Framework/Client/Abstract.php(101): Zend_Tool_Framework_Loader_Abstract->load()                                                         
#2 /usr/share/php/Zend/Tool/Framework/Client/Abstract.php(192): Zend_Tool_Framework_Client_Abstract->initialize()                                                   
#3 /usr/share/php/Zend/Tool/Framework/Client/Console.php(86): Zend_Tool_Framework_Client_Abstract->dispatch()                                                       
#4 /usr/share/php/zf.php(77): Zend_Tool_Framework_Client_Console::main()          
#5 {main}                                                                         
  thrown in /usr/share/php/Zend/Tool/Framework/Manifest/Repository.php on line 100

At first, I was trying to rebuild the RPM package Fedora provides (which got stuck at 1.7.2) and got the exact same message. My reasoning was that it must be something with my poor packaging skills. :) Seems not. Anyway, tried to run Zend_Tools tests, all of them passed, FWIW. Also, did some var_dump()-ing and the provider which throws the exception is:

<pre class="literal">
object(ArrayObject)#82 (0) {
}

Comments

Posted by Gabriel Queiroz Silva (gabrielqs) on 2009-05-05T16:04:36.000+0000

Same problem here. Using ubuntu jaunty, apache 2.0 and php 5.2.6.

Posted by Martin (lsv) on 2009-05-06T03:27:05.000+0000

I got the same result

Ubuntu 9.04 - wget'ed zendframework 1.8.0 full - moved it to /usr/share/php/ZendFramework (/usr/share/php/ZendFramework/library is in the include path)

root@laptop:/var/www# sh /usr/share/php/ZendFramework/bin/zf.sh

Fatal error: Uncaught exception 'Zend_Tool_Framework_Manifest_Exception' with message 'A provider provided by the Zend_Tool_Framework_Manifest_ManifestBadProvider does not implement Zend_Tool_Framework_Provider_Interface' in /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Manifest/Repository.php:100 Stack trace:

0 /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Loader/Abstract.php(104): Zend_Tool_Framework_Manifest_Repository->addManifest(Object(Zend_Tool_Framework_Manifest_ManifestBadProvider))

1 /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php(101): Zend_Tool_Framework_Loader_Abstract->load()

2 /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php(192): Zend_Tool_Framework_Client_Abstract->initialize()

3 /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Client/Console.php(86): Zend_Tool_Framework_Client_Abstract->dispatch()

4 /usr/share/php/ZendFramework/bin/zf.php(77): Zend_Tool_Framework_Client_Console::main()

5 {main}

thrown in /usr/share/php/ZendFramework/library/Zend/Tool/Framework/Manifest/Repository.php on line 100

Posted by Gabriel Queiroz Silva (gabrielqs) on 2009-05-06T03:29:58.000+0000

I have solved it by copying zf.sh and zf.php to the /usr/bin folder. Guess creating the symbolic link was making this error. can't see the actual reason though.

Posted by Martin (lsv) on 2009-05-06T03:37:29.000+0000

That didnt work here :-( Same exception

Posted by Ralph Schindler (ralph) on 2009-05-07T08:36:45.000+0000

The problem is that your unit tests are inside of your include_path, and its finding the bad provider unit test. I know this is an issue on some setups, but in the mean time, simply take out the unit tests or run ZF from a non include_path location

-ralph

Posted by Martin (lsv) on 2009-05-07T08:46:04.000+0000

So simple, so simple.. And it works perfectly - thanks for the advice!

Posted by David Caunt (dcaunt) on 2009-05-08T09:02:06.000+0000

Same issue, Fedora Core 7, PHP 5.2.6

Symlinked zf.sh to /usr/bin and copied zf.php to same folder

[user@server bin]$ zf PHP Fatal error: Uncaught exception 'Zend_Tool_Framework_Manifest_Exception' with message 'A provider provided by the Zend_Tool_Framework_Manifest_ManifestBadProvider does not implement Zend_Tool_Framework_Provider_Interface' in /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Manifest/Repository.php:100 Stack trace:

0 /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Loader/Abstract.php(104): Zend_Tool_Framework_Manifest_Repository->addManifest(Object(Zend_Tool_Framework_Manifest_ManifestBadProvider))

1 /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Client/Abstract.php(101): Zend_Tool_Framework_Loader_Abstract->load()

2 /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Client/Abstract.php(192): Zend_Tool_Framework_Client_Abstract->initialize()

3 /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Client/Console.php(86): Zend_Tool_Framework_Client_Abstract->dispatch()

4 /php/includes/ZendFramework-1.8.0/bin/zf.php(77): Zend_Tool_Framework_Client_Console::main( in /php/includes/ZendFramework-1.8.0/library/Zend/Tool/Framework/Manifest/Repository.php on line 100

Posted by Colleen R. Dick (tixrus) on 2009-06-25T21:09:43.000+0000

Same issue on Mac Book pro, ZF v 1.8.3. Copying zf.php and zf.sh to /usr/bin did not solve.
don't understand the comment about taking out the unit tests. Are they referring to the unit tests that come with ZF? I tried temporarily moving them to a subdirectory bt I still got the same error.

Posted by Colleen R. Dick (tixrus) on 2009-06-25T21:14:46.000+0000

ok it worked when I moved the unit tests COMPLETELY out of the include path.

Posted by Ralph Schindler (ralph) on 2009-06-28T16:22:36.000+0000

Marking as not an issue. The fix to this is to either a) not include any ZF unit tests in any of your include_paths, or b) make sure to set the environment variable ZEND_TOOL_INCLUDE_PATH to only include the zend framework library (you can do this either in zf.sh, zf.php, or somewhere in your .profile)

-ralph

Posted by Jamal Fanaian (jamal) on 2010-01-17T14:19:08.000+0000

Also, would like to point out, that this error comes up if you symlink the library into your php include_path. When I copied it, instead of using a symlink it started working fine.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts