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

Error Fetching oAuth2 #42

Closed
bavington opened this issue May 13, 2015 · 10 comments
Closed

Error Fetching oAuth2 #42

bavington opened this issue May 13, 2015 · 10 comments

Comments

@bavington
Copy link

After setting up your extension a few days ago it was working fine. However logging in today, the ability to access the list appears to no longer work, and I'm presented with an error. Any support would be greatly appreciated.

Trace: #0 /home/thefurni/public_html/vendor/google/apiclient/src/Google/Client.php(126): Google_Auth_OAuth2->authenticate('4/AXGwhgiQH-1ZP...') #1 /home/thefurni/public_html/app/code/community/BlueVisionTec/GoogleShoppingApi/controllers/Adminhtml/GoogleShoppingApi/OauthController.php(95): Google_Client->authenticate('4/AXGwhgiQH-1ZP...') #2 /home/thefurni/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): BlueVisionTec_GoogleShoppingApi_Adminhtml_GoogleShoppingApi_OauthController->authAction() #3 /home/thefurni/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('auth') #4 /home/thefurni/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #5 /home/thefurni/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch() #6 /home/thefurni/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array) #7 /home/thefurni/public_html/index.php(86): Mage::run('default', 'store') #8 {main}

screen shot 2015-05-13 at 08 57 52

@darrelljr00
Copy link

Did you ever get this fixed? Im having an auth issue also

@bavington
Copy link
Author

Hey @darrelljr00, I didn't get to the root cause, I only managed to sort it by uninstalling, and starting again. Seemed to be OK the second time round.

@darrelljr00
Copy link

When installing the google api do you just place it in the vendor/google/apiclient folder? Or is there a specific google api script to run? Im lost. When I go to manage items it prompts for authentication, I click ok and then it reroutes me back to my homepage. Ive tried everything.

@bavington
Copy link
Author

You start off by installing the Google API in: [MAGENTO_ROOT]/vendor/google/apiclient/
Once you then install the extension (in the regular location), it looks for files within that vender/google/apiclient folder. Have you set up the project in the Google Developer's Console to get the API tokens etc?

@darrelljr00
Copy link

I have the client id, and client secret . Ive tried everything but it seems like the credentials are not being forwarded to google for verification. Ive checked the developers console and there are no attempts for the api to communicate with google

@schnere
Copy link
Contributor

schnere commented Jun 10, 2015

You might want to try out the new ability to use a service account (see updated Readme).
Please update the module to the newest version (0.2.2) and ensure to use Google API client for PHP in head revision or version 1.1.4 with the following patch:

--- vendor/google/apiclient/src/Google/Client.php.orig  2015-06-10 12:15:08.937391432 +0200
+++ vendor/google/apiclient/src/Google/Client.php       2015-06-10 12:15:47.693520083 +0200
@@ -16,7 +16,7 @@
  */

 if (!class_exists('Google_Client')) {
-  require_once dirname(__FILE__) . '/../autoload.php';
+  require_once dirname(__FILE__) . '/autoload.php';
 }

 /**

(see googleapis/google-api-php-client@818b20c)

@darrelljr00
Copy link

has the zip file been updated with the new files?

On Wed, Jun 10, 2015 at 10:57 AM, Reinhard Schneidewind <
notifications@github.com> wrote:

You might want to try out the new ability to use a service account (see
updated Readme).
Please update the module to the newest version (0.2.2) and ensure to use
Google API client for PHP in head revision or version 1.1.4 with the
following patch:

--- vendor/google/apiclient/src/Google/Client.php.orig 2015-06-10 12:15:08.937391432 +0200
+++ vendor/google/apiclient/src/Google/Client.php 2015-06-10 12:15:47.693520083 +0200
@@ -16,7 +16,7 @@
*/

if (!class_exists('Google_Client')) {

  • require_once dirname(FILE) . '/../autoload.php';
  • require_once dirname(FILE) . '/autoload.php';
    }

/**

(see googleapis/google-api-php-client@818b20c
googleapis/google-api-php-client@818b20c
)


Reply to this email directly or view it on GitHub
#42 (comment)
.

@schnere
Copy link
Contributor

schnere commented Jun 11, 2015

You can download the newest version of the Magento Module here: https://github.com/bluevisiontec/GoogleShoppingApi/archive/0.2.2.tar.gz
https://github.com/google/google-api-php-client/archive/1.1.4.tar.gz
For the Google API Client for PHP you should download this, place it under vendor/google/apiclient and apply the patch.

You can also apply the patch manually after updating to 1.1.4 by changing line 19 in vendor/google/apiclient/src/Google/Client.php to the following:

require_once dirname(__FILE__) . '/autoload.php';

@darrelljr00
Copy link

Is there a way to bulk assign products to google categories using magmi? I
have thousands of products and cannot assign them manually

On Thu, Jun 11, 2015 at 7:34 AM, punitgadhiya notifications@github.com
wrote:

Can you please look at issue #38 ?

On 11 June 2015 at 17:59, Reinhard Schneidewind notifications@github.com
wrote:

You can download the newest version of the Magento Module here:
https://github.com/bluevisiontec/GoogleShoppingApi/archive/0.2.2.tar.gz
https://github.com/google/google-api-php-client/archive/1.1.4.tar.gz
For the Google API Client for PHP you should download this
https://github.com/google/google-api-php-client/archive/1.1.4.tar.gz,
place it under vendor/google/apiclient and apply the patch.

You can also apply the patch manually after updating to 1.1.4 by changing
line 19 in vendor/google/apiclient/src/Google/Client.php to the
following:

require_once dirname(FILE) . '/autoload.php';


Reply to this email directly or view it on GitHub
<
#42 (comment)

.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@darrelljr00
Copy link

It seems that the google category attribute was created so that the data
has to be selected by a drop down. Can we edit it so that we can use text?
That way we should be able to type in a google category number inside a
excel doc and upload via magmi

On Fri, Jun 19, 2015 at 9:43 AM, D Johnson darrelljr00@gmail.com wrote:

On Fri, Jun 19, 2015 at 9:42 AM, D Johnson darrelljr00@gmail.com wrote:

Is there a way to bulk assign products to google categories using magmi?
I have thousands of products and cannot assign them manually

On Thu, Jun 11, 2015 at 7:34 AM, punitgadhiya notifications@github.com
wrote:

Can you please look at issue #38 ?

On 11 June 2015 at 17:59, Reinhard Schneidewind <
notifications@github.com>
wrote:

You can download the newest version of the Magento Module here:

https://github.com/bluevisiontec/GoogleShoppingApi/archive/0.2.2.tar.gz
https://github.com/google/google-api-php-client/archive/1.1.4.tar.gz
For the Google API Client for PHP you should download this
<https://github.com/google/google-api-php-client/archive/1.1.4.tar.gz
,
place it under vendor/google/apiclient and apply the patch.

You can also apply the patch manually after updating to 1.1.4 by
changing
line 19 in vendor/google/apiclient/src/Google/Client.php to the
following:

require_once dirname(FILE) . '/autoload.php';


Reply to this email directly or view it on GitHub
<
#42 (comment)

.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@schnere schnere closed this as completed Jun 14, 2019
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

3 participants