moometric / GSuiteSignatureManager

Manage GSuite directory users signatures
https://moometric.com/
MIT License
42 stars 19 forks source link

Fatal error: Uncaught Error: Call to a member function setSubject() #10

Open ArunMohan25 opened 2 years ago

ArunMohan25 commented 2 years ago

Having Same Problem Fatal error: Uncaught Error: Call to a member function setSubject() on null in D:\xampp\htdocs\test\vendor\moometric\gsuite\src\mooSignature.php:82 Stack trace: #0 D:\xampp\htdocs\test\vendor\moometric\gsuite\src\mooSignature.php(171): Moometric\mooSignature->getUsersList() #1 D:\xampp\htdocs\test\index.php(28): Moometric\mooSignature->updateSignatures() #2 {main} thrown in D:\xampp\htdocs\test\vendor\moometric\gsuite\src\mooSignature.php on line 82

@dariusakafest @moometric @julienmru

kl-thamm commented 2 years ago

Despite being late for other coming across this: This is likely due to the service-account.json missing in local_vars or setting$serviceAccountPath to an invalid path.

Also be aware that using newer php versions might not work. For example the signature of implode changed in php 8 (https://www.php.net/manual/en/function.implode.php).