1

Running on W7, php5.3.5.
I have downloaded and installed Zend framework files. Now I'm trying to run the PHP Installation cheker recommended here but it return an eror:

Ran PHP Installation Checker on 2012-08-27T13:06:37+00:00
PHP Extension Errors          Tested
No errors found
Zend Framework Installation   Tested
Errors
0                             Exception thrown trying to access Zend/Loader.php
                              using 'use_include_path' = true.
                              Make sure you include Zend Framework in your
                              include_path which currently contains:
                              .;C:\php\pear
SSL Capabilities Errors       Not tested
YouTube API Connectivity      Not tested
Errors

Here are similar question to mine this question and this other

Already tried this solution and other similar ones but the error keeps appearing.

Edit 01:
Using this and this I'm trying to include the path but is not working. When I call a get_include_path() it returns again the .;C:\php\pear.

Here is the php to add the path:

<?php
$path = '.C:\php\zend';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>

Edit 02:
Found php.ini, edited and added: include_path = ".;c:\php\pear;.;c:\php\lib\Zend" according to this link on the Google developers page. The errors still appears, but now adding .;c:\php\lib\Zend to the path.

Community
  • 1
  • 1
Yaroslav
  • 6,476
  • 10
  • 48
  • 89

1 Answers1

1

You should edit the php.ini like mentioned in "Description of core php.ini directives".

include_path=".:/php/includes"

Remember, that in most cases the different sapis use different php.ini files. On CLI use php --ini to find the appropiate one.

KingCrunch
  • 128,817
  • 21
  • 151
  • 173
  • Found that file. Edited and added: `include_path = ".;c:\php\pear;.;c:\php\lib\Zend"` according to [this link on the Google developers page](https://developers.google.com/gdata/articles/php_client_lib?hl=es#appendix_phpini). The errors still appears, but now adding `.;c:\php\lib\Zend` to the path. Editing my question again. – Yaroslav Aug 27 '12 at 13:50
  • What is _exactly_ in `c:\php\lib\Zend`? I ask, because the include path must point to the library folder and not the whole package. I guess it is `c:\php\lib\Zend\library` or something like that. – KingCrunch Aug 27 '12 at 13:56
  • Hmmm...now you got me...I saw everywhere the `library` and I thought it was refering to the full folder of Zend framework. Then what should I write instead of `library`? Just checked what I downloaded from [here](http://framework.zend.com/download/gdata/) and I see there is a `library` folder. Modified the path and name of folder to point to this one, same result. – Yaroslav Aug 27 '12 at 14:04
  • @Yaroslav Oh .... OK, you downloaded the only GData-API ;) To download the Zend Framework try http://framework.zend.com/download/latest ("1.11.13 full"). It contains the GData-API too. Just ignore, what you don't want to use, but as far as I remember the separate GData-API-package really only contains this – KingCrunch Aug 27 '12 at 14:11
  • Downloading...but I already have a huge Zend folder on my Magento installation folder, shouldn't that cover my needs? – Yaroslav Aug 27 '12 at 14:13
  • Should do it. But I guess this is not in `c:\php\lib\Zend`? To sum it up: There must be an unpackaed Zend Framework package somewhere and one entry of the include-path must point to the `Zend/library/`-folder – KingCrunch Aug 27 '12 at 14:14
  • Your last suggestion did the work. Nevertheless I should change the path as I'm using an absolute path now `include_path = "C:\wamp\www\magento\lib\library"` and i guess I should be using a relative one. Any recommendation? – Yaroslav Aug 27 '12 at 14:22
  • The unpacked ZF package of Magento resides in `lib/Zend`, relative to the Magento root folder. Magentos bootstrapping OOB calls PHP `set_include_path()` to add the `lib` folder (amongst others) to the include path and initializes an autoloader. See the top of [`app/Mage.php`](http://svn.magentocommerce.com/source/branches/1.7/app/Mage.php). – Jürgen Thelen Aug 27 '12 at 18:21