-
Notifications
You must be signed in to change notification settings - Fork 6
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
fatal type error in Hasher #52
Comments
Hi @Oreolek, could you provide more information about this error for our debug? For example: Matomo version, PHP version. |
current stable, php8.2 |
Hi @Oreolek. I made a test here using last Matomo 5 and plugin version, PHP 8.3.4 and I didn't see any errors here, tracking was working normally. Are you having this issue in plugin configuration or during tracking? Is it possible to check if your server have PHP bcmath, gmp and mbstring extensions installed? |
I added unit tests for PHP since 7.3 to 8.2, as possible to see here. #53 |
I didn't have return (int) $this->hashids->decode($value)[0]; https://github.com/joubertredrat/Matomo-ProtectTrackID/blob/master/Hasher.php#L41 |
@Oreolek you need to have I guess this is the reason you facing this issue. About your suggestion for edit the #L41, I will add validations and throw exceptions for prevent this, but the method already expect int as return type, then we need to understand the reason that in your case is trying to returning null instead of this. |
No response, then I'm assuming that was solved |
PHP Fatal error: Uncaught TypeError:
Piwik\Plugins\ProtectTrackID\Hasher::decode()
: Return value must be of type int, null returned in/plugins/ProtectTrackID/Hasher.php:44
The text was updated successfully, but these errors were encountered: