Skip to content

VaultPress: Fatal when a message array is returned #28504

@kraftbj

Description

@kraftbj

Impacted plugin

VaultPress

Steps to Reproduce

Unsure how to duplicate.

Result is

Fatal error: Uncaught Error: base64_decode(): Argument #1 ($string) must be of type string, array given
in /srv/www/html/wp-content/plugins/vaultpress/vaultpress.php on line 469 [as of 2.2.2]

A clear and concise description of what you expected to happen.

No fatal.

What actually happened

Fatal.

Browser

No response

Other information

Looking, the contact_service function could return a variety of types—bool, string, array. There are multiple uses of contact_service that are directly passed into base64_decode which fatals for a non-string (though false seems to be fine).

Platform (Simple, Atomic, or both?)

Self-hosted

Reproducibility

Consistent

Severity

None

Available workarounds?

Yes, easy to implement

Workaround details

Since the messages check only happens every 30 minutes, just refreshing the screen allows the site to resume normal operations.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions