Unable to add Contract to a third party

Hi Guys, I’m new to Dolibarr so apologies if I don’t give you the right information, just let me know if you need anything else.

When I add a Contract to a Third Party, I get a “failed to add contract” error, with the following error lines:
Error(3)
• Undefined array key “” (/usr/share/dolibarr/htdocs/contrat/card.php:989)
• WARNINGUndefined variable $objectsrc (/usr/share/dolibarr/htdocs/contrat/card.php:1249)
• WARNINGUndefined variable $objectsrc (/usr/share/dolibarr/htdocs/contrat/card.php:1264)

I have the following related modules activated:
Third Party, Contracts/Subscriptions, Invoices, Vendors, Proposals and Sales Orders

There are 7 Customised fields that I added to the Contract/Subscription module on the Complimentary Attributes tab. These are select lists, boolean & check boxes none are mandatory.

Any help in working out why it won’t add the contract would be great.

Thanks
Tam

What version of Dolibarr are you using?

Version 17.0.2

Thanks
Tam

HI,
I looked at the code and can’t help you.
Perhaps…

  • do you have an extra field called “entity”?
  • try in any case to delete the extrafield one by one

Hi,

I don’t have a field called “entity” and I’ve deleted all the custom fields against the Contracts/Subscriptions module, but it still won’t let me add a contract.

Is there another module I need to activate?

Thanks for your help.
Tam

Sorry I can’t help you :unamused:

No worries, thanks for looking at it for me, much appreciated!

T