Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

El objeto que acepta valores Null debe tener un valor #366

Open miguelextremanet opened 5 years ago

miguelextremanet commented 5 years ago

I have 1.7.5.2 prestashop version and Prestasharp 1.0.5

Please is urgent ! anybody knows what is happening ?? I cant create products, always appear the same error "El objeto que acepta valores Null debe tener un valor"

albertg5 commented 4 years ago

Miguel, I think that we have already opened the same issue in #365 and #369

PHonorato commented 4 years ago

I have the same problem with one shop. Version 1.6.1.24 prestashop version and Prestasharp 1.1.0 in both shop online. (shop's in diferent domains) In on shop works, in other shop gave the error "El objeto que acepta valores Null debe tener un valor" Any idea?

infosteo commented 3 years ago

I have 1.7.5.2 prestashop version and Prestasharp 1.0.5

Please is urgent ! anybody knows what is happening ?? I cant create products, always appear the same error "El objeto que acepta valores Null debe tener un valor"

I had the same problem: 1) see attach and check "fiendly url" 2) check if your url prestashop web is https: or http: and https://**www**.mywebsite.whatever or https://mywebsite.whatever

117590483_10157640012813284_8926029641709409234_n

eddyjces commented 3 years ago

Good evening, miguelextremanet, did you finally solve the problem? I have been using the Prestasharp library for months in a XAMPP-based prestashop installation under windows. In this scenario the library worked correctly.

However, when going to a prestashop installation based on ubuntu, the execution of that library returns the same error that you reported.

I think this is a ubuntu configuration problem, but I can't find the cause.

Can you help me?

Greetings and thanks.

miguelextremanet commented 3 years ago

No sorry, Its impossible to know what is happening, also developer never answer with a possible solution about that. I have been doing changes for a while in .httaccess, in php server, even I have reinstalled SSL certificate, also I tried to downgrade prestashop version, reinstall different version etc , but I was not able to find any solution. In fact I have four web at the same server , with exactly the same configurations and , error its shown only in one of them, but not in others. I am tired also I am bored trying to find a solution about it so I'm using Prestashop API directly. regards and luck !

eddyjces commented 3 years ago

Good afternoon Miguel Angel, I think I have good news. My intention is to maintain integrity between my business management software and prestashop within the same local network. Until now I had tried to access the API from C # under Prestasharp using my web access domain / api as an endpoint, and in those circumstances I was getting the error that takes us head over heels. So I had a moment of inspiration and I changed the call by replacing the domain with the name of the machine in the previous url. Then the miracle has occurred ... try this option to see if you are lucky ...

miguelextremanet commented 3 years ago

Thanks for your suggestion, the problem is that I have many websites (differente domains) in the same machine. Iwill try it anyway. MANY THANKS

ghost commented 2 years ago

En nuestro caso, tras migrar de un servidor a otro , dejó de funcionar solo los ADD. El resto iba bien. Pensamos en la versión del MySql, del php, etc. LA versión de PHP influia en otro error que solucionamos poniendo la misma que en el servidor original. PERO, LA SOLUCIÓN (the solution) fué cambiar la ruta a HTTPS en lugar de HTTP.

I only change HTTP by HTTPS and solved.

ghost commented 2 years ago

Nuevamente informo del error, en este caso, el problema ha sido al quitar las www.dominio.com Ahora es dominio.com

remove or add www to domain name