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

1.1 - Spurious errors #1943

Closed
robocoder opened this issue Jan 4, 2011 · 7 comments
Closed

1.1 - Spurious errors #1943

robocoder opened this issue Jan 4, 2011 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@robocoder
Copy link
Contributor

These showed up once in my logs during testing and aren't reproduceable after repeated attempts. head scratcher I want to log these in case anyone else encounters them or can add more info.

  • php 5.1.6: PHP Fatal error: Call to undefined function safe_unserialize() in core/Cookie.php on line 232
  • php 5.2.0: PHP Fatal error: Cannot use string offset as an array in plugins/UserCountryMap/Controller.php on line 54
  • php 5.3.4: PHP Fatal error: Call to protected method Piwik_ArchiveProcessing::isArchivingDisabled() from context 'Piwik_Archive_Single'
@mattab
Copy link
Member

mattab commented Jan 5, 2011

"Call to undefined function safe_unserialize()" - Could it be the auto update, that would call these functions not yet defined?

@robocoder
Copy link
Contributor Author

I was thinkin that too... but I can't reproduce it, and I don't see a code path to trigger it

@robocoder
Copy link
Contributor Author

wtf. Looking at the source, isArchivingDisabled() is "public".

@robocoder
Copy link
Contributor Author

This annoying warning is emitted with every CI build on php 5.3.4.

  • PHP Warning: PDO::!__construct() ![2002] No such file or directory (trying to connect via !unix:///tmp/mysql.sock) in core/Tracker/Db/Pdo/Mysql.php on line 66

@mattab
Copy link
Member

mattab commented Jan 5, 2011

isArchivingDisabled was protected in 1.0

@robocoder
Copy link
Contributor Author

Doh! These are from the auto-update webtest when it installs 1.0.

@anonymous-matomo-user
Copy link

PHP Fatal error: Call to undefined function safe_unserialize() in core/Cookie.php on line 239 seems to appear when I'm logged into super_user admin account in the dashboard and when i run on a separate php file, a new Piwik_API_Request to query for some results.. but when i run the same file to query for results again when i am logged out from the dashboard, the safe_unserialize error does not come up any anymore. To solve this, I included in my php file the following:

require_once "./libs/upgradephp/upgrade.php";

Not sure if this is considered a bug or am I simply supposed to include the upgrade.php file... to make my new Piwik_API_Request() work in php..

piwik version: 1.2.5 rc6

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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants