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

undefined function safe_unserialize() in piwik\core\Cookie.php #2292

Closed
anonymous-matomo-user opened this issue Apr 11, 2011 · 5 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

With regards to Ticket #1943 (closed Bug: invalid)

It says the issue is closed but I am able to re-produce the error with regards to:
Fatal error: Call to undefined function safe_unserialize() in D:\WEBSITES\piwik\core\Cookie.php on line 239

When I run in PHP, code to run new Piwik_API_Request("..etc..");
the code runs fine.

The error ONLY occurs when I am concurrently logged into the super-admin dashboard.. (e.g, try log into super-admin dashboard, and run a php new Piwik_API_Request() .. and it probably hit that error when I was trying to json_decode the requested results.

Again if i log out of the admin dashboard, the error goes away when I run the php file again.

Apologies if this is not a real bug, but just to help out in pointing errors I find. Thanks!

Currently testing:
Piwik Version: 1.2.5 - rc6
Php version: 5.2.13

@robocoder
Copy link
Contributor

Yes, you have to include upgrade.php. In the absence of any formal documentation, the source is the documented method.

If you got an error, then you probably weren't following the example in misc/api_internal_call.php (which includes Piwik's index.php, and in turn, testMinimumVersion, and upgradephp).

@robocoder
Copy link
Contributor

(In [4444]) update comments in example; refactor file_get_contents, so compat functions are in one place; fixes #2292

@robocoder
Copy link
Contributor

(In [4445]) refs #2292

@robocoder
Copy link
Contributor

(In [4446]) refs #2292 - fix typo in comment

@robocoder
Copy link
Contributor

(In [4511]) fixes #2338, refs r4420, refs #2292 - tested with php 4.4.9

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.
Projects
None yet
Development

No branches or pull requests

2 participants