Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to sign when footer is activated #4223

Open
MaitreCake opened this issue Dec 30, 2024 · 2 comments
Open

No way to sign when footer is activated #4223

MaitreCake opened this issue Dec 30, 2024 · 2 comments

Comments

@MaitreCake
Copy link

Hi there,

Firstly, thanks for the great job you are doing. I follow the project for a while now and try to make it work on my installation every 6 to 9 months. And I am close to realize it.

Indeed, it does work on my shared hosting server OVH ( Nextcloud Hub 9 (30.0.4) / LibreSign 10.4.4)
image

However, when I want to activate the footer, if I click sign or confirm, the spinner stays for ages and nothing happens…
image

As said, I am hosted on a shared server, I did not find any access to a specific php log, however the mention :
Script timed out before returning headers: v2.php looks like appearing when I face the problem.

The mention of server overload makes me think it may have something to do with : Signature Areas not defined -> Leading to Server Overload and Errors #4104 but @blackerking did not provide more clues about it.

The only mention in NC logs of LibreSign was an "ExApp "libresign" not found. . This is not relevant anymore since I disabled the AppAPI app.

I did try to reinstall several times the app, cleaning the setting by OCC commands, deleting the libresign folders too but without cleaning the DB. That is may be way at every "new" install, the docs I requested a signature for came back.

I did try with unusual and A4 paper sizes too

For the use I want to have of the app, a time stamp next to the signature would be enough for me, however if you could help I would be delighted.

I stay of course at your disposal,

Regards,

PHP 8.2.21 / mysql Version : 8.0.39

@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Dec 30, 2024
@vitormattos
Copy link
Member

However, when I want to activate the footer, if I click sign or confirm, the spinner stays for ages and nothing happens…

Could you check the developer tools of your browser when you click at "Confirmer" ? And also, check the nextcloud.log file at this moment.

If haven't any sensible data, could you provide the PDF file that you are using? Maybe is a problem related to version of PDF. PDF-2 isn't full supported.

As said, I am hosted on a shared server, I did not find any access to a specific php log, however the mention

You can get the logs from nextcloud.log file or going to Administration settings > Logging

The only mention in NC logs of LibreSign was an "ExApp "libresign" not found. . This is not relevant anymore since I disabled the AppAPI app.

Where did you got this?

@MaitreCake
Copy link
Author

Thank you for your fast reply

1. Dev Tools
About the developer tools, I am a kind of noob, but with Firefox nothing happens in the console when I click on "Confirm". After a while if I refresh the page this is coming in the console :

TypeError: e.response is undefined
signDocument Sign.vue:180
promise callback*signDocument Sign.vue:179
signWithClick Sign.vue:133
VueJS 4
fn
n
fn
$emit
click NcButton.mjs:231
VueJS 33
fn
n
_wrapper
Ra
_t
za
v
h
Ei
_update
r
get
e
mount
$mount
init
h
h
f
h
f
h
f
h
f
h
f
h
Ei
_update
r
get
e
libresign-main.js:2:3750104
vn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
gn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
pn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
fn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
(Asynchrone : promise callback)
fn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
n https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
fn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
$emit https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
click https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
fn https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
n https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
_wrapper https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
(Asynchrone : EventListener.handleEvent)
Ra https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
_t https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
za https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
v https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
Ei https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
_update https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
r https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
get https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
e https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
mount https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
$mount https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
init https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
f https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
f https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
f https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
f https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
f https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
h https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
Ei https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
_update https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
r https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
get https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2
e https://MYDOMAIN/apps/libresign/js/libresign-main.js?v=628043dc-19:2

I attach a long debug message thrown by the first exception TypeError: Invalid type: first can't be a Regular Expression Debugger.txt

2. PDF Versions
I did try with several pdf, most of them are in 1.7 version. I add an example here
Location journalie-re -Interactive- reponse.pdf

3. NC log
Well, as said, nothing happens in the NC log regarding LibreSign, except if I activate this app : App_api https://apps.nextcloud.com/apps/app_api and then this is coming when I click confirm
[app_api] Déboguage: ExApp "libresign" not found. GET /ocs/v2.php/apps/notifications/api/v2/notifications de XX.XX.XXX.XXX par MaitreCake à 31 déc. 2024, 09:06:58
I stay of course available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 0. Needs triage
Development

No branches or pull requests

2 participants