Comments (24)
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.
Figure it out....
I didn't put the full URL for the host...
host name must be "https//companydb.odoo.com"
from laradoo.
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.
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.
Also, let me know what PHP version you are using.
from laradoo.
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.
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.
Ok let me try in hosting with PHP 7
from laradoo.
@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.
Hi @yashiroiori ,
Did that work for you?
from laradoo.
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.
@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.
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:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Installation failed, reverting ./composer.json to its original content.
from laradoo.
@yashiroiori ,
It should be like follows:
composer require edujugon/laradoo:dev-php5.5
There was a typo in the package name..
from laradoo.
Package installed, but return an error:
ErrorException in ripcord_client.php line 485:
Undefined variable: http_response_header
from laradoo.
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.
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.
Im getting the same error:
Undefined variable: http_response_header
I'm using Ubuntu 16, Php 7.0.22
from laradoo.
What package version are you running?
from laradoo.
"edujugon/laradoo": "^1.1" using laravel 5.2
Odoo 10
Regards
from laradoo.
this is the error i get:
ErrorException in ripcord_client.php line 485:
Undefined variable: http_response_header
from laradoo.
Is there any repo I can check?
I'll try to reproduce the problem.
from laradoo.
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.
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)
- Question: Does this support laravel 7? HOT 1
- Float number with decimal become 0
- Download File HOT 1
- is it possible to sort?
- Many2Many
- Laravel 8 compatibility HOT 2
- Static function
- PHP 8 Support HOT 4
- Creating a resource - Ripcord_TransportException: could not access https://host.odoo.com/xmlrpc/object HOT 1
- how to create a custom method call with passing object. HOT 1
- How to authenticate users from res.users model HOT 2
- Method order by
- How do I call different method with create function?
- Support to connect with different Odoo Instances
- Create new Tag from master
- its not Supported to laravel 9 HOT 4
- Image in binary format. How preview image
- about error exception
- Connecting to Odoo.sh
- dose it support laravel 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laradoo.