But this remove all units from products… is there any other way to activate unit on product?
Can you edit the file core/class/html.form.class.php and add the line
require_once DOL_DOCUMENT_ROOT.‘core/lib/product.lib.php’;
after line 2828 ?
This should allow php to find the missing measureUnitString() function.
I add, but now i only not see php errors…
I don’t know, the quotes don’t look ok. They should be like on line 2827. Maybe it’s due to some copy/paste ?
I only make copy/paste of code what you send me…
You mean that i place code on wrong place or?
I find one backup from 01.02.2020 and change all code in that file, now everything work good…
i am sending you old code
html.form.class.zip (66.8 KB)
No sorry, it’s missing a / before core/lib/product.lib.php
The correct line should thus be :
require_once DOL_DOCUMENT_ROOT.‘/core/lib/product.lib.php’;
Sorry for this
No problem, and with that i again have problem, not show php error, but i can’t select products …
Can you check again the php error log ?
I am sorry. I can’t reproduce the error in my current stting, making it difficult to help you. The dolibarr.log is not very helpful as it will not be filled when php fails…
This is the access log. In the same place should be an error_log file gathering the failing messages (similar to the one you had on the screenshot mentioning a Fatal error).
Last one shows last error is the one from your screenshot. Adding the line in the php file seems to have fixed that one (although it probably should have been ok without it as I have no error on my side). If I understand correctly, you find the error_log file in the directory where the php file resides ? Is it possible for you to find and sort by date the error_log files in the dolibarr tree ? A candidate would be htdocs/core/lib to start with, then htdocs/ajax
You mean to get all error_logs files from dolibarr and place on one place?
Something like that yes. I wouldn’t how to do it otherwise. In my setting all errors go into a single file…