Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files are not getting included #5

Closed
AshleshaGawade opened this issue Feb 17, 2015 · 11 comments
Closed

Files are not getting included #5

AshleshaGawade opened this issue Feb 17, 2015 · 11 comments

Comments

@AshleshaGawade
Copy link

Hello ,
I am getting the following error in system logs on opening the Mange items page:

2015-02-17T07:43:27+00:00 ERR (3): Warning: include(): Failed opening 'Google/Config.php' for inclusion (include_path='/var/www/magneto/app/code/local:/var/www/magneto/app/code/community:/var/www/magneto/app/code/core:/var/www/magneto/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magneto/lib/Varien/Autoload.php on line 93
2015-02-17T07:43:27+00:00 ERR (3): Warning: include(Google/Auth/OAuth2.php): failed to open stream: No such file or directory in /var/www/magneto/lib/Varien/Autoload.php on line 93
2015-02-17T07:43:27+00:00 ERR (3): Warning: include(): Failed opening 'Google/Auth/OAuth2.php' for inclusion (include_path='/var/www/magneto/app/code/local:/var/www/magneto/app/code/community:/var/www/magneto/app/code/core:/var/www/magneto/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magneto/lib/Varien/Autoload.php on line 93
2015-02-17T07:43:27+00:00 ERR (3): Warning: include(Google/Auth/Abstract.php): failed to open stream: No such file or directory in /var/www/magneto/lib/Varien/Autoload.php on line 93
2015-02-17T07:43:27+00:00 ERR (3): Warning: include(): Failed opening 'Google/Auth/Abstract.php' for inclusion (include_path='/var/www/magneto/app/code/local:/var/www/magneto/app/code/community:/var/www/magneto/app/code/core:/var/www/magneto/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magneto/lib/Varien/Autoload.php on line 93

Also Uncaught ReferenceError: Mage is not defined on the page.
Have i missed out anything?

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

Hi,

did you install the Google -ApiClient library?

For manual install you will have to download the Google ApiClient from here:
https://github.com/google/google-api-php-client

Place it under magento_root/vendor/google/apiclient

It should look like this:

$ ls -a vendor/google/apiclient/
.  ..  autoload.php  composer.json  CONTRIBUTING.md  examples  .gitignore  LICENSE  phpunit.xml.dist  README.md  src  style  tests  .travis.yml

The 'src' folder is the important one...

@AshleshaGawade
Copy link
Author

Yes i can see the file structure but there is no .travis.yml

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

Ah, okay. The problem must be the "Mage is not defined" error. So Mage::getBaseDir() is not working...

Do you get this error on other pages, too?

Why don't you have /var/www/magneto/ in your include path?

@AshleshaGawade
Copy link
Author

No i am getting this error on this page only.
And I have included /var/www/magneto/ in the path.

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

You might debug if the Google/Client.php is loaded in app/code/community/BlueVisionTec/GoogleShoppingApi/Model/GoogleShopping.php

For further support I would have to take a look at your installation...

@AshleshaGawade
Copy link
Author

Yes the file is getting loaded in GoogleShopping.php
But still getting same errors. Also the page is redirected to a blank page on submitting product using add to content.

Can you suggest how to resolve mage is not defined error?

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

Could it be, that "Mage is not defined" is a JavaScript error?
Did you clean the Magento Cache after installing the module?
Did you configure the module as described in the Readme?

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

Okay, regarding the warnings: these can be ignored. The files are included by the Google ApiClient Autoloader and Magento Autoloader tries to include them, too...

@AshleshaGawade
Copy link
Author

It was my silly mistake. It started working on cleaning magento cache.
Still getting the warnings but i am getting responses if there is any error in adding the product in the notifications.
Thanks i think its working now.
But it is ok right if the warnings are coming?

@schnere
Copy link
Contributor

schnere commented Feb 17, 2015

Yes, you can ignore the warnings.
I have also tracked down the "Mage is not definded" error. It's actually a JavaScript error.
This can also be ignored, but will be fixed soon.

@AshleshaGawade
Copy link
Author

I cleared the cache and the Mage error was solved. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants