Warning: include(Google/Client.php): failed to open stream:

Hi I’ve been trying to get Google Shopping working on my site and keep getting this same error:

Warning: include(Google/Client.php): failed to open stream: No such file or directory  in /home/xxxx/public_html/lib/Varien/Autoload.php on line 56

#0 /home/xxxx/public_html/lib/Varien/Autoload.php(56): mageCoreErrorHandler(2, 'include(Google/...', '/home/xxxx/...', 56, Array)
#1 /home/xxxx/public_html/lib/Varien/Autoload.php(56): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Google_Client')
#3 [internal function]: spl_autoload_call('Google_Client')
#4 /home/xxxx/public_html/vendor/google/apiclient/src/Google/Auth/AssertionCredentials.php(18): class_exists('Google_Client')
#5 /home/xxxx/public_html/vendor/google/apiclient/src/Google/autoload.php(29): require_once('/home/xxxx/...')
#6 [internal function]: Varien_Autoload->{closure}('Google_Auth_Ass...')
#7 /home/xxxx/public_html/app/code/community/BlueVisionTec/GoogleShoppingApi/Model/GoogleShopping.php(107): spl_autoload_call('Google_Auth_Ass...')
#8 /home/xxxx/public_html/app/code/community/BlueVisionTec/GoogleShoppingApi/controllers/Adminhtml/GoogleShoppingApi/ItemsController.php(53): BlueVisionTec_GoogleShoppingApi_Model_GoogleShopping->getClient('1')
#9 /home/xxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(278): BlueVisionTec_GoogleShoppingApi_Adminhtml_GoogleShoppingApi_ItemsController->indexAction()
#10 /home/xxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(200): Mage_Core_Controller_Varien_Action->dispatch('index')
#11 /home/xxxx/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(116): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /home/xxxx/public_html/app/code/core/Mage/Core/Model/App.php(189): Mage_Core_Controller_Varien_Front->dispatch()
#13 /home/xxxx/public_html/app/Mage.php(415): Mage_Core_Model_App->run(Array)
#14 /home/xxxx/public_html/index.php(40): Mage::run('', 'store')
#15 {main}

I’ve tried everything I know. My last attempt is trying to include the path in the sub dirrectory htaccess like this:

php_value include_path “.:/usr/local/lib/crucial-php/php-5.6.121/lib/php:/vendor/google/apiclient/src”

Still nothing

Is this correct?

Thanks

I assume you have tried flushing the magneto cache and/or turning of compilation? Is the Google client library located under lib does it by chance use namespaces? What version of magento are you on? What extension is this?

Yeah, I tried all that but I did finally figure out a fix. What I done was move the Google folder to the root of my Magento and change the link at the top of /app/code/community/BlueVisionTec/GoogleShoppingApi/Model/GoogleShopping.php to: require_once Mage::getBaseDir().‘/Google/autoload.php’; and everything started working great.

It’s always good when you can figure out things yourself.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.