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).
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.)
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.
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.
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?
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.
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.
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.
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!