I am using the Zend GData library to integrate Google Calendar in my PHP application.
I get tens of errors like this:
Failed opening 'Zend/Gdata/Calendar/Content.php' for inclusion
but actually everything works awesomely (I am able to create/delete/update calendars and events)
I don’t know exactly why I get that. Probably the Zend loader tries to load a file that doesn’t exist (that is why the error) but, then, tries another location with success (that is why everything works).
By the way this is the bootstrap code I use for loading the Zend classes in my PHP script:
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
What I want to achieve is to kill those error messages without killing other categories of relevant messages.
How would you achieve that?
I have tried to wrap everything in a try{} catch{} block but I still get those error messages.
Thanks,
Dan
Even if you use just few classes from Zend Framework it is recommended to upload the whole framework to your server to avoid any issues. It doesn’t matter because you can still use just certain ZF classes and you will at least be sure there are no dependencies missing: