Skip to content
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

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

Closed
anonymous-matomo-user opened this issue Apr 23, 2011 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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:

  • grant privileges to the database user, or
  • edit config/config.ini.php, and change the database connection information to a user that has sufficient privileges.

@anonymous-matomo-user
Copy link
Author

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)

@anonymous-matomo-user anonymous-matomo-user added this to the 1.4 - Piwik 1.4 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants