Warning: file_put_contents(/matomo-for-wordpress/app/tmp/empty): Failed to open stream: No such file or directory in RecommendedPrivateDirectories.php on line 23 #18684
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Milestone
In Matomo for WordPress we are getting this error
It doesn't use the correct path from DI as it uses a hard coded path but not everyone is using this.
I was going to create this PR
However, I noticed that while this would use the correct tmp directory, it would still use the wrong URL to try and fetch that tmp file. It would always use
$matomoUrl/tmp/empty
but the tmp directory might be outside the root directory or it might be in a very different directory and therefore the URL used to check if the file is readable would be wrong.Meaning if it's outside the root directory we would completely need to skip the check for
tmp
files and when it's inside the root directory, the URL would need to change.The text was updated successfully, but these errors were encountered: