I am working on a new API script based on SOAP for magento.
The script works in a testsite running Magento V18.104.22.168.
When i'm running the script in Magento V22.214.171.124 where it should be running i get the following error:
Call to a member function getId() on a non-object
The code i'm using is:
$soap_update = $soap->call($session_id, 'catalog_product.update', array($entity, array( 'name' => $name, 'description' => $description, 'url_key' => $name), '7' ));
I hope you guys can help.
Thanks in advance.
I managed to get the script running in a Magento V126.96.36.199 demo shop.
So this is not a version problem.
Are there any suggestions what the problem can be in the main shop?