matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.88k stars 2.65k forks source link

Help for an idiot: Fatal error: Call to undefined function safe_unserialize() #2355

Closed anonymous-matomo-user closed 13 years ago

anonymous-matomo-user commented 13 years ago

Piwik decided yesterday to stop working for no apparent reason. I'm totally new to Piwik and not that great with PHP so any help would be hugely appreciated.

The error I'm getting is Fatal error: Call to undefined function safe_unserialize()

The site is http://www.analytics.avara.co.uk/

Thanks in advance. Keywords: undefined function

robocoder commented 13 years ago

Please make sure your 'index.php' is up-to-date. In 1.3, it should have the line that includes "libs/upgradephp/upgrade.php".

https://github.com/piwik/piwik/blob/master/index.php#L32

If you're using any 3rd party plugins, look for an update. For example, GeoIP was updated.

anonymous-matomo-user commented 13 years ago

Thanks for your prompt response.

I've updated to the latest version of index.php and it doesn't appear to have made any difference as the same error message appears.

robocoder commented 13 years ago

Please check the file permissions and contents of libs/upgradephp/upgrade.php.

https://github.com/piwik/piwik/blob/master/libs/upgradephp/upgrade.php

It looks like you're making changes and/or doing some other troubleshooting. For piwik.php, I see you've enabled debugging and that your database user no longer has access to the database.

INSERT command denied to user 'dbo364330341'@'212.227.29.41' for table 'piwik_option'
anonymous-matomo-user commented 13 years ago

I've changed the file permission to 777 and still no joy. Not sure I understand what the problem is here as I've not made any changes to the script, it just seems to have stopped working for no apparent reason.

robocoder commented 13 years ago

Check your web server error log to see if there are more clues.

Otherwise, if you can, send us email (or PM on the forum) with your ftp login, and we'll take a look.

robocoder commented 13 years ago

I replaced your index.php because it wasn't the file we packaged with 1.3.

I replaced your piwik.php, turning off the debug.

I suggest your change your ftp password because you posted it here in public. (oops)

The only thing you have to do is either:

anonymous-matomo-user commented 13 years ago

Hurrah, Piwik is back!

Thank you so much for sorting that out, and pointing out that posting your password on a public forum is not a great idea :o)