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

PHP Notice: Trying to get property 'nodeValue' of non-object in Decrypter.php on line 142 #12

Open
nblount opened this issue Jul 20, 2021 · 2 comments

Comments

@nblount
Copy link

nblount commented Jul 20, 2021

Get the error for line 142 and the Customer filed just shows ,"Customer: "

@nblount
Copy link
Author

nblount commented Jul 20, 2021

Found the fix, customer has been changed to client in later versions of sysPass so the decrypter.php needs to be updated.

@madcoda9000
Copy link

madcoda9000 commented Dec 27, 2021

Hello,

i ran into the same issue after upgrading syspass to v3.2. As this project seems not to bemaintained anymore. I've fixed that by myself. Here are the steps on how to fis that issue:

  1. In src/Decrypter.php change line 92:
    from: $nodeNames = ['Category', 'Customer'];
    to: $nodeNames = ['Category', 'Client'];

  2. in src/Decrypter.php change line 140:
    from: $customerId = $accountNode->getElementsByTagName('customerId')
    to: $customerId = $accountNode->getElementsByTagName('clientId')

  3. in src/Exporter.php change line 36:
    from: 'Customer: ' . $account['customer'],
    to: 'Customer: ' . $account['client'],

After that modification, on my system everything is working again.

happpy decrypting :-)

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

No branches or pull requests

2 participants