Skip to content

Archiving error when getmypid function is disabled #20537

@lance-matomo

Description

@lance-matomo

Some hosting servers have the getmypid function disabled for security reasons. We have some checks to see if this function is enabled or not but they aren't being used before it is called in this scenario resulting in an error:

[29-Mar-2023 10:30:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Piwik\CliMulti\getmypid() in /home/wp/disk/wordpress/wp-content/plugins/matomo/app/core/CliMulti/Process.php:125
--
[29-Mar-2023 10:30:53 UTC] Matomo: Scheduled tasks archive data

Reported by a couple of customers here:
matomo-org/matomo-for-wordpress#660

Metadata

Metadata

Assignees

Labels

RegressionIndicates a feature used to work in a certain way but it no longer does even though it should.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions