0
votes

Hello all just starting out trying get info off the google analyitcs api and finished configuring the php.ini and requiring the Loader.php. while i got no error messages and all seemed well once i got to the loadClass it failed. this is what i have in the php.ini

include_path=".;C:\xampp\php\PEAR:.;C:\xampp\htdocs\gaDataGather\ZendGdata\library"

this is what i tested w/no issues or error messages:

require_once('ZendGdata/library/Zend/Loader.php');

Now am at this stage: require_once 'ZendGdata/library/Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_Query'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin');

At which point it fails and the error msgs are:

Warning: include_once(Zend\Gdata.php): failed to open stream: No such file or directory in C:\xampp\htdocs\gaDataGather\ZendGdata\library\Zend\Loader.php on line 134

Warning: include_once(): Failed opening 'Zend\Gdata.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\gaDataGather\ZendGdata\library\Zend\Loader.php on line 134

Warning: require_once(Zend/Exception.php): failed to open stream: No such file or directory in C:\xampp\htdocs\gaDataGather\ZendGdata\library\Zend\Loader.php on line 86

Fatal error: require_once(): Failed opening required 'Zend/Exception.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\gaDataGather\ZendGdata\library\Zend\Loader.php on line 86

I have my .php files & my ZenDGdata folder in the same dir.

Hope you can help. Thx D

1
Was working off this vid (a bit dated) & the current google analyitcs api youtube.com/watch?v=BtrFZmZjalEpdxDaniela

1 Answers

0
votes

This line:

require_once 'ZendGdata/library/Zend/Loader.php'

should be:

require_once 'Zend/Loader.php'

That will then generate an error, because your include path is not setup correctly. You can see from the include path shown in the error messages that it only includes PEAR, the ZF path you added is missing. Make sure you're setting the include path in the correct php.ini file (PHP usually has more than one), as this is the typical cause of this problem.