# Create Product/Service does NOTHING!

**URL:** <https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268>\
**Category:** Using my Dolibarr\
**Tags:** v19, Question, Help, Issue\
**Created:** [September 3, 2024, 10:30pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268 "2024-09-03T22:30:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 3, 2024, 10:30pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/1 "2024-09-03T22:30:30Z")

</div>

I suddenly noticed that I can’t create new Products or Services! Everything else appears to still work. I don’t know what changed. I click the “CREATE” button and nothing happens (“CANCEL” works fine).

![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/0/0f9fae7a5c997f751bacee7343b556b2c6393d02.png)

I have restarted Apache and the server, no difference.  
I Iogged into phpMyAdmin and was able to manually add rows to the product table.  
I have tried on multiple systems both local and remote. All seem to be affected (unable to create product/service).

Last configuration changes I made were to the Proposals module. I don’t think anything was related to this, but I may have inadertently done something.

Before this, I haven’t created any new products for at least a couple of months. (I imported the majority of them from another database.)

Any ideas?

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 5:14am UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/2 "2024-09-04T05:14:01Z")

</div>

FYI, the “CLONE” button works fine.

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [September 4, 2024, 9:09am UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/3 "2024-09-04T09:09:33Z")

</div>

Which version of Dolibarr ?  
What is the rule for the “numbering of product ref” into setup of module product ?

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 4:23pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/4 "2024-09-04T16:23:40Z")

</div>

Hello @eldy  
Dolibarr version is 19.02  
Numbering “mask” is setup as this: {000000000}

(also, I have attached a screen capture of my module settings)

 ![ac1e4df6-93ad-4272-93e1-038eebb7547d](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/0/058396ba038714e428806fca91c9efff63225e2c.png)

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [September 4, 2024, 4:41pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/5 "2024-09-04T16:41:32Z")

</div>

When you put your mouse on the “i” on the line “Elephant”, what do you have ?  
Also may be you can try to upgrade to 19.0.3…

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 5:08pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/6 "2024-09-04T17:08:53Z")

</div>

“i” message on line “Elephant”:

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/3/33ca79133c9abe93add643136c14936808a96f14.png)

This is the first time I’ve used Dolibarr (only been running for a couple of months). My main concern with updating is of possibly breaking something else.  
What is the procedure to update (I’m running an Ubuntu server)?

BTW, this was working before. I created several sample products before ever attempting import.

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [September 4, 2024, 5:13pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/7 "2024-09-04T17:13:18Z")

</div>

Everything looks good.  
May be you can enable the module Log debug. Produce the error and check the dolibarr.log file.  
A check into apache error.log file may provide information too.

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 5:17pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/8 "2024-09-04T17:17:44Z")

</div>

I enabled “Debug Logs” and “Debug Bar” in modules.  
Can you guide me to the location of the .log file?  
Thanks

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [September 4, 2024, 7:19pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/9 "2024-09-04T19:19:13Z")

</div>

Hello,

If you go on the Debug log module configuration you can download it.  
Or it’s a the root of documents folder.

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 7:44pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/10 "2024-09-04T19:44:27Z")

</div>

Thanks @ksar  
I found it, but it has a bunch of stuff from last month on it. Is there a way to clear it or clean it up so as to only focus on todays logs?

Thanks

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 4, 2024, 8:38pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/11 "2024-09-04T20:38:23Z")

</div>

@eldy and @ksar  
attached debug log  
[dolibarr.log](https://www.dolibarr.org/forum/uploads/short-url/r3IQIIyaybSqNI5R7IS5k3QfEfQ.log) (57.7 KB)

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [September 5, 2024, 7:30am UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/12 "2024-09-05T07:30:51Z")

</div>

Hello,

On the log file, there is no sign of clicking on create button.  
So can you explain a bit more what is happening when you click on create ?  
I would assume nothing, so the request is not sent to the server.

Can you try with a different web browser ?

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 5, 2024, 3:42pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/13 "2024-09-05T15:42:32Z")

</div>

Hello @ksar  
Yes, when I click “CREATE” button nothing happens at all, unless there is a required field empty. If a required field is not filled, then it will prompt to fix it. But other that that, nothing.

Another clue:  
Today I noticed that if I click “CANCEL” to quit, but then use the 'Back" browser button to return, the “CREATE” button suddenly works!?!? Very strange.

@ksar  
Yes, as I mentioned in my initial post, I have already tried 3 browsers (Chrome, Edge, Firefox) on multiple computers.

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 5, 2024, 4:57pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/14 "2024-09-05T16:57:02Z")

</div>

@ksar and @eldy

I may have stumbled on another clue. I get this console error in each of my browsers:  
 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/a/ab57a24244c51f0f43efebc439a363c65fb1fd9e.png)

**An invalid form control with name=‘desc’ is not focusable.**

`<textarea id="desc" name="desc" rows="4" style="margin-top: 5px; width: 90%; visibility: hidden; display: none;" class="flat " required=""></textarea>`

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 5, 2024, 6:25pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/15 "2024-09-05T18:25:34Z")

</div>

Figured out the problem, but not sure of the real solution (may be a **bug** )

I had added some “Mandatory form fields” during the late stages of my setup. One of them was “desc” (Description):

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/cac5de7fd7442f0116b76904d2386ed92e58ca66.png)

It looks like this caused the issue. As soon as I removed that requirement, “Create” button started adding records correctly again:

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/5/516cfb6797b54c68a1690a7d7f717b9f58a51441.png)

@eldy and @ksar  
Is this a **bug** that can be fixed? I’d really like to make the Description field mandatory for future additions.

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [September 5, 2024, 6:55pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/16 "2024-09-05T18:55:41Z")

</div>

Hi,

Good work !  
Can you create a bug report on Github ? [Sign in to GitHub · GitHub](https://github.com/Dolibarr/dolibarr/issues/new/choose)

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 5, 2024, 7:45pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/17 "2024-09-05T19:45:07Z")

</div>

> [@jh482002](#):
>
> **An invalid form control with name=‘desc’ is not focusable.**
> 
> `<textarea id="desc" name="desc" rows="4" style="margin-top: 5px; width: 90%; visibility: hidden; display: none;" class="flat " required=""></textarea>`

@ksar Thanks for the help

> <https://github.com/Dolibarr/dolibarr/issues/30862>
>
> \### Bug
> 
> Addition of Mandatory form field product “desc” (Description) causes… "invalid form control" error in browser. This error results in the inability to CREATE new products (add new records to the database).
> 
> Browser Error Console Description:
> An invalid form control with name=‘desc’ is not focusable.
> \<textarea id="desc" name="desc" rows="4" style="margin-top: 5px; width: 90%; visibility: hidden; display: none;" class="flat " required=""\>\</textarea\>
> 
> \### Dolibarr Version
> 
> 19.02
> 
> \### Environment PHP
> 
> 8.1.2-1ubuntu2
> 
> \### Environment Database
> 
> MySQL or MariaDB 5.5.5-10.6.18-MariaDB-0ubuntu0.22.04.1
> 
> \### Steps to reproduce the behavior and expected behavior
> 
> Add product "desc" to Mandatory form fields setup.
> Try to CREATE a new product.
> 
> \### Attached files
> 
> !\[image\](https://github.com/user-attachments/assets/e7e8060f-b150-4524-9d35-6429d9b5abc1)
> !\[image\](https://github.com/user-attachments/assets/0aa23357-a69d-44fd-abf5-a8205aa22382)
> !\[image\](https://github.com/user-attachments/assets/88035f23-9438-4f4c-ac48-8bad9a58d3da)

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [September 6, 2024, 1:21am UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/18 "2024-09-06T01:21:11Z")

</div>

The trouble was the addition of the “required” on a field that is managed by ckeditor. And ckeditor dos not support the required attribute.  
Another way of working to test mandatory fields has been implemented for v20 so should work with v20.

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 25, 2024, 9:28pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/19 "2024-09-25T21:28:37Z")

</div>

@eldy  
Now having the same problem with CLONE commercial proposal! Nothing happens when I click…

Any ideas?

Can anyone check to see if that functionality is working with their system? I’m on v19.02

Thanks

---

<div class="post-metadata">

**Author:** ![jh482002](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@jh482002](https://www.dolibarr.org/forum/u/jh482002)\
**Post date:** [September 25, 2024, 9:45pm UTC](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268/20 "2024-09-25T21:45:48Z")

</div>

Figured it out!

Somehow I had a Computed Field that was marked as MANDATORY! The problem with that is… that there isn’t an option to unmark it Mandatory:

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/c9cedf97de44c89c8f7c3ac2c32ae09f796a1f5b.png)

It probably started out as a simple string, which I then made into a Computed Field (at which point the option to mark as not Mandatory disappeared). That’s a wierd one!

[Next page](https://www.dolibarr.org/forum/t/create-product-service-does-nothing/29268.md?page=2)
