Giter Site home page Giter Site logo

Error conection about laradoo HOT 24 CLOSED

edujugon avatar edujugon commented on May 28, 2024
Error conection

from laradoo.

Comments (24)

yashiroiori avatar yashiroiori commented on May 28, 2024 1

Excellent.
Let me finish a tree view from stock of odoo to try again.

Actually use a pgsql connection from Laravel and create a models to use odoo.

from laradoo.

activeyossi avatar activeyossi commented on May 28, 2024 1

Figure it out....
I didn't put the full URL for the host...
host name must be "https//companydb.odoo.com"

from laradoo.

guberakannan avatar guberakannan commented on May 28, 2024 1

Hey Guys I got the same issue.. after digging in, I came to solve this by adding one more vendor package - DarkaOnLine
https://github.com/DarkaOnLine/Ripcord
This solved the error.
Now $odoo->version gives following output -

{"server_serie":"11.0",
"server_version_info":[11,0,0,"final",0,""],
"server_version":"11.0",
"protocol_version":1}

Cheers 👍

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Could you paste here how you are using the package to get that error?
I assume you are trying to get the Odoo version, but I need the full snippet in order to reproduce the error.

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Also, let me know what PHP version you are using.

from laradoo.

yashiroiori avatar yashiroiori commented on May 28, 2024

Laravel 5.1
PHP 5.5

Yeah, I test with get version
$odoo = new \Edujugon\Laradoo\Odoo();
$version = $odoo->version();

Try to get partner:
$ids = $odoo->where('customer', '=', true)
->search('res.partner');

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

For now it only works from PHP 7.0 and above.
You should update your php version in order to make it work properly.

PS: I'm working on making it compatible with some minor versions.

from laradoo.

yashiroiori avatar yashiroiori commented on May 28, 2024

Ok let me try in hosting with PHP 7

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

@yashiroiori ,
I've just created a new branch that works on php 5.5
give it a chance and let me know

composer require edujugon/laradoo:dev-php5.5

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Hi @yashiroiori ,

Did that work for you?

from laradoo.

yashiroiori avatar yashiroiori commented on May 28, 2024

Say same error:

ErrorException in Odoo.php line 650:
Argument 1 passed to Edujugon\Laradoo\Odoo::setApiEndPoint() must be an instance of Edujugon\Laradoo\string, string given, called in Z:\PortableApps\xampp\htdocs\sitios\instrutek\erp\vendor\edujugon\laradoo\src\Odoo.php on line 318 and defined

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

@yashiroiori
What changes did you do?
Have you upgraded the php version to 7 or you are using the php5.5 branch of the package?

from laradoo.

yashiroiori avatar yashiroiori commented on May 28, 2024

Sorry not try install to 5.5

>composer require edujugon/larado:dev-php5.5
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package edujugon/larado could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

@yashiroiori ,
It should be like follows:

composer require edujugon/laradoo:dev-php5.5

There was a typo in the package name..

from laradoo.

yashiroiori avatar yashiroiori commented on May 28, 2024

Package installed, but return an error:

ErrorException in ripcord_client.php line 485:
Undefined variable: http_response_header

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

@yashiroiori ,

That's weird. This is a php magic variable and should be available for you..
Try to find your php.ini and uncomment allow_url_fopen = On or change it to On if it's Off.

Anyway, I would recommend you to upgrade to php 7 since it comes with a lot of improvements..

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Hi @yashiroiori ,

Hope you could upgrade your php version and made the package work. I've passed all test in both php versions without getting any error.

I'm closing this thread since actually it's not a package issue. Let me know if you face any further error.

from laradoo.

garauz23 avatar garauz23 commented on May 28, 2024

Im getting the same error:

Undefined variable: http_response_header

I'm using Ubuntu 16, Php 7.0.22

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

What package version are you running?

from laradoo.

garauz23 avatar garauz23 commented on May 28, 2024

"edujugon/laradoo": "^1.1" using laravel 5.2
Odoo 10

Regards

from laradoo.

garauz23 avatar garauz23 commented on May 28, 2024

this is the error i get:
ErrorException in ripcord_client.php line 485:
Undefined variable: http_response_header

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Is there any repo I can check?
I'll try to reproduce the problem.

from laradoo.

Edujugon avatar Edujugon commented on May 28, 2024

Hi @garauz23 ,

Could you solve the issue?
I've set up a new Laravel 5.2 project and tested the package and It works fine.

You can share the repo with me so that I can do further test.

from laradoo.

activeyossi avatar activeyossi commented on May 28, 2024

I am getting the same error, but I think this issue is actually generated from a @file_get_contents error.
From what I have been reading $http_response_header variable is created after a successful file_get_contents. so If we have an error, $http_response_header is not created globally by PHP and it throws an error before getting to the if ( !$result ) check
I changed the code to:

` $result = @file_get_contents( $url, false, $context );

	if ( !$result )
	{
		throw new Ripcord_TransportException( 'Could not access ' . $url, 
			ripcord::cannotAccessURL );
	}
	else {
        $this->responseHeaders = $http_response_header;
    }
    return $result;
}

`
and now the error is showing actually as:

[Ripcord_TransportException] Could not access ****.odoo.com/xmlrpc/2/common

In my case, it's probably a credentials issue, which hopefully I'll figure out shortly.

What is the proper way to set the credentials if you are using odoo web ver 10?

I only have one User and in their Docs they are saying:

For Odoo Online instances (<domain>.odoo.com), users are created without a local password (as a person you are logged in via the Odoo Online authentication system, not by the instance itself). To use XML-RPC on Odoo Online instances, you will need to set a password on the user account you want to use:

But when I am trying to change the password, I get

You cannot change the credentials of the user ****@****.com as he uses Odoo.com to sign in.

If you want to change the password, you can send the reset password instructions
by clicking on the according button in the user form.

Thanks
Joe

from laradoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.