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

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 🙂

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

  1. 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 to mmmrbm Cancel reply

Your email address will not be published. Required fields are marked *