b_root
August 3, 2022, 7:19pm
1
Hello,
I have a problem with the accept button for online signatures, the SIGN button does not work, nothing happens…
Any idea?
Thanks
1 Like
planpc
August 4, 2022, 2:12pm
2
Same here, Dolibarr 15.0.3. After hand signature, the Accept button does nothing.
Inspecting the webpage (Chrome and Firefox las versions) I see a 403 error in:
https://mydoli **/core/ajax/onlineSign.php** - XHR strict-origin-when-cross-origin
Browser console “response” tab:
Bad value for securitykey. Value provided “32chars_long_key” does not match expected value for ref=
Don´t know where to start to debug this, no info at my logs, tried to sign online from other computer, IP and browsers, with same result.
1 Like
b_root
August 4, 2022, 5:25pm
3
Glad to see I’m not alone
1 Like
planpc
August 5, 2022, 11:27pm
4
Yes, and for sure you’ll never be alone here @b_root , very great community and best professionals.
Seems this error is the same @eldy mark as solved here , but because it was not ready for V14, so I hope soon we get an amswer since changelog says at first line that is a v15 improvement:
The online signature feature for proposal is available with 15.0 and + (not v14)
Regards
planpc
August 10, 2022, 3:37pm
5
Opened an issue in GitHub, waiting any comments from any other testers.
opened 06:02PM - 09 Aug 22 UTC
closed 03:55AM - 10 Aug 22 UTC
# Bug
Online signature button doesn't work when trying to approve document, aft… er sing.
Not commented yet in the forums (https://www.dolibarr.org/forum/t/online-signature-sign-button-inactive/22595)
## Environment
- **Version**: 15.0.3
- **OS**: Linux
- **Web server**: nginx/1.16.1
- **PHP**: fpm-fcgi 7.4.9
- **Database**: 5.5.5-10.3.29-MariaDB
- **URL(s)**: https://my.dolibarr.com/public/onlinesign/newonlinesign.php
## Expected and actual behavior
Button ACCEPT in online signature must approve the document with customer´s sign, but nothing happens and an error is shown in the browser console, in this case Mozilla Firefox 103.0.2, **also in other browsers.**
When the propal is declined, the button works well, it shows a warning to confirm the declination, but after decline, into the Dolibarr propal, there is no information about when or who (even the IP from were it was declined), even having an specific section on the flow of the document, (Budget Events in the lower right area of dolibarr), when has been validated, sent by mail, etc.
_¿How the Dolibarr user is expected to be notified when a quote is approved or rejected online?
Is it mandatory to activate all notifications about budget approval for this, or should online approval notify separately?_
## Steps to reproduce the behavior
After sing online and push accept button in Firefox, viewing the console:
**Error 403 - strict-origin-when-cross-origin -** Attached image
## Attached files

## Report
1 Like
ksar
August 10, 2022, 6:19pm
6
Hello,
403 errors is due to your hosting.
Have a look on your hosting logs
1 Like
planpc
August 10, 2022, 7:59pm
7
Thank you @ksar ,
I tried before posting, but nothing is logged at nginx server or Dolibarr logs. I only can see the error posted here in the forum or at Github, which is at the client side (from different bowsers and locations)
Tried changin PHP version from 5.6 to 7.4, I have also reviewed the php configuration itself, dolibarr’s performance and security sections.
Since everything else works well at Dolibarr 15.0.3, which makes different this functionality, or what’s mandatory for it to work normally?
Can you think of any tests that those of us who are having this problem, can do?
Thanks and regards
b_root
August 12, 2022, 9:59am
8
Same error (i’m with o2switch hoster)
eldy
August 14, 2022, 4:56pm
9
Try to replace the line into newonlinesign.php
if (!dol_verifyHash($securekeyseed.$type.$ref.$object->entity, $SECUREKEY, ‘0’)) {
into
if (!dol_verifyHash($securekeyseed.$type.$ref, $SECUREKEY, ‘0’)) {
and into signature.lib.php
$out .= ‘&securekey=’.dol_hash($securekeyseed.$type.$ref.$object->entity, ‘0’);
into
$out .= ‘&securekey=’.dol_hash($securekeyseed.$type.$ref, ‘0’);
This fix should be available with next v15.0.4 if it works for you…
1 Like
tried this and didn’t work, any idea?
b_root
August 17, 2022, 1:33pm
11
It’s what I have actually without changed it (v15.0.3)
opened 06:02PM - 09 Aug 22 UTC
# Bug
Online signature button doesn't work when trying to approve document, aft… er sing.
Not commented yet in the forums (https://www.dolibarr.org/forum/t/online-signature-sign-button-inactive/22595)
## Environment
- **Version**: 15.0.3
- **OS**: Linux
- **Web server**: nginx/1.16.1
- **PHP**: fpm-fcgi 7.4.9
- **Database**: 5.5.5-10.3.29-MariaDB
- **URL(s)**: https://my.dolibarr.com/public/onlinesign/newonlinesign.php
## Expected and actual behavior
Button ACCEPT in online signature must approve the document with customer´s sign, but nothing happens and an error is shown in the browser console, in this case Mozilla Firefox 103.0.2, **also in other browsers.**
When the propal is declined, the button works well, it shows a warning to confirm the declination, but after decline, into the Dolibarr propal, there is no information about when or who (even the IP from were it was declined), even having an specific section on the flow of the document, (Budget Events in the lower right area of dolibarr), when has been validated, sent by mail, etc.
_¿How the Dolibarr user is expected to be notified when a quote is approved or rejected online?
Is it mandatory to activate all notifications about budget approval for this, or should online approval notify separately?_
## Steps to reproduce the behavior
After sing online and push accept button in Firefox, viewing the console:
**Error 403 - strict-origin-when-cross-origin -** Attached image
## Attached files

## Report
opened 06:02PM - 09 Aug 22 UTC
# Bug
Online signature button doesn't work when trying to approve document, aft… er sing.
Not commented yet in the forums (https://www.dolibarr.org/forum/t/online-signature-sign-button-inactive/22595)
## Environment
- **Version**: 15.0.3
- **OS**: Linux
- **Web server**: nginx/1.16.1
- **PHP**: fpm-fcgi 7.4.9
- **Database**: 5.5.5-10.3.29-MariaDB
- **URL(s)**: https://my.dolibarr.com/public/onlinesign/newonlinesign.php
## Expected and actual behavior
Button ACCEPT in online signature must approve the document with customer´s sign, but nothing happens and an error is shown in the browser console, in this case Mozilla Firefox 103.0.2, **also in other browsers.**
When the propal is declined, the button works well, it shows a warning to confirm the declination, but after decline, into the Dolibarr propal, there is no information about when or who (even the IP from were it was declined), even having an specific section on the flow of the document, (Budget Events in the lower right area of dolibarr), when has been validated, sent by mail, etc.
_¿How the Dolibarr user is expected to be notified when a quote is approved or rejected online?
Is it mandatory to activate all notifications about budget approval for this, or should online approval notify separately?_
## Steps to reproduce the behavior
After sing online and push accept button in Firefox, viewing the console:
**Error 403 - strict-origin-when-cross-origin -** Attached image
## Attached files

## Report
This resolved the problem for me.
b_root
August 27, 2022, 4:47pm
13
Will this be resolved with version 15.0.4? Thanks
b_root
August 27, 2022, 4:50pm
14
Can you explain simply how you did it @planpc ?
planpc
August 27, 2022, 6:14pm
15
Just changing the quote numbering mask, in quote module, then worked for me.
Is explained it here:
opened 06:02PM - 09 Aug 22 UTC
closed 09:08PM - 25 Aug 22 UTC
# Bug
Online signature button doesn't work when trying to approve document, aft… er sing.
Not commented yet in the forums (https://www.dolibarr.org/forum/t/online-signature-sign-button-inactive/22595)
## Environment
- **Version**: 15.0.3
- **OS**: Linux
- **Web server**: nginx/1.16.1
- **PHP**: fpm-fcgi 7.4.9
- **Database**: 5.5.5-10.3.29-MariaDB
- **URL(s)**: https://my.dolibarr.com/public/onlinesign/newonlinesign.php
## Expected and actual behavior
Button ACCEPT in online signature must approve the document with customer´s sign, but nothing happens and an error is shown in the browser console, in this case Mozilla Firefox 103.0.2, **also in other browsers.**
When the propal is declined, the button works well, it shows a warning to confirm the declination, but after decline, into the Dolibarr propal, there is no information about when or who (even the IP from were it was declined), even having an specific section on the flow of the document, (Budget Events in the lower right area of dolibarr), when has been validated, sent by mail, etc.
_¿How the Dolibarr user is expected to be notified when a quote is approved or rejected online?
Is it mandatory to activate all notifications about budget approval for this, or should online approval notify separately?_
## Steps to reproduce the behavior
After sing online and push accept button in Firefox, viewing the console:
**Error 403 - strict-origin-when-cross-origin -** Attached image
## Attached files

## Report
b_root
September 12, 2022, 2:40pm
16
Is the last v16.0 available resolve the problem ? Thank you
eldy
September 19, 2022, 1:15pm
17
I think it is fixed in v16
2 Likes
b_root
September 19, 2022, 5:09pm
18
Yes @eldy it resolved my problem !
Do you think it would be possible to add this signature feature to customer contracts, services, etc ? I don’t find this function when I create a new contract for a customer…
Thank you
This example will be great (with 2 signs) :
eldy
October 9, 2022, 3:59pm
19
A PR has been merged to have the online sign for contracts implemented into v17 (only one level of signature, by the thirdparty for the moment)
1 Like