Error: undefined method in mail.php, line 167

Hello!

After I managed to crash the older version of my piwik, I did the manual installation. Now it seems to work except one problem…

  • I try to log in but the password is wrong (might be my fault, not sure)
  • I click on the forgot my password link
  • I put in the right mailadress and a new password
  • I get this error code:
    Fatal error: Call to undefined method Piwik\Url::isLocalHost() in /www/<url>/core/Mail.php on line 167

I redownloaded and reinstalled this file. It didn’t help. This is the code in line 167
return isset($url['host']) && !Url::isLocalHost($url['host']);

Thanks a lot for any help, I googled, searched this forum and simply don’t know how to fix this!

Thank you!
Birgit

Hi there, reupload all the files from the latest version: some of the files were not uploaded correctly.

OMG, I don’t know why I didn’t get it. It works again. A million thanks!!