Solving Zend Framework error “An Error Has Occurred A project profile was not found”

October 15th, 2009 by leoganda Leave a reply »

Hi there, I had an error “An Error Has Occurred A project profile was not found” on Zend framework command line when I tried to generate an action for my project. I’m using Windows XP and for the web server I’m using XAMPP. The “An Error Has Occurred A project profile was not found” happened because we have wrong include path in our php.ini.

Open your php.ini and find the include_path line, insert your zend framework library path into the line before the PEAR path.

include_path = ".;E:\xampp\htdocs\ZendFramework\library;E:\xampp\php\PEAR"

Save the file and restart your Apache. Good luck :)

What people search:

8 comments

  1. S says:

    Yes very fine this one worked for me…

    best regards from Cologne

  2. marius says:

    did not worked for me :(

  3. Bogdan Juszczak says:

    Indeed. It’s working here as well. thanks!

    cheers from Poland

  4. zubin says:

    I had searched many sites for this problem, only you proviede the right solution.

    Thanks

  5. mmmrbm says:

    Thanx man..!!!

  6. jay says:

    Yaa..

    Its Working After long search i got from Your Site

    Thanks

  7. Ernest says:

    Fantastic. After spending 1 hour of searching you helped me! Thank you :)

  8. sdsd says:

    For those who have, MAMP. I had to force its way. is not a solution but it works

    An Error Has Occurred
    A project profile was not found.

    Index: Zend/Tool/Project/Provider/Abstract.php LINE 154

    * @version $Id: Abstract.php 23651 2011-01-21 21:51:00Z mikaelkael $
    ============================================================

    $profile = new Zend_Tool_Project_Profile();

    $parentDirectoriesArray = explode(DIRECTORY_SEPARATOR, ltrim($projectDirectory, DIRECTORY_SEPARATOR));
    while ($parentDirectoriesArray) {
    $projectDirectoryAssembled = DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $parentDirectoriesArray);
    $projectDirectoryAssembled = implode(DIRECTORY_SEPARATOR, $parentDirectoriesArray);
    if(substr(PHP_OS, 0, 3) != ‘WIN’) {
    // prepend the DIRECTORY_SEPARATOR only if not on Windows
    $projectDirectoryAssembled = DIRECTORY_SEPARATOR . $projectDirectoryAssembled;
    }
    // *******************************************
    // puts the project name
    // ********************************
    $projectDirectoryAssembled.=”/projecto”;
    $profile->setAttribute(‘projectDirectory’, $projectDirectoryAssembled);
    if ($profile->isLoadableFromFile()) {

    ——————–

Leave a Reply