Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

PHP 5.1.6 notices and errors #1378

Closed
robocoder opened this Issue · 9 comments

1 participant

@robocoder
Collaborator

Reported on forum http://forum.piwik.org/index.php?showtopic=9651

Fatal error: Call to a member function getColumn() on a non-object in /PATH/core/DataTable/Filter/Sort.php on line 120

Unit tests:

Exception: ../tests/core/DataTable.test.php -> Test_Piwik_DataTable -> test_getLastRow -> Unexpected PHP error [Object of class Piwik_DataTable_Row to string conversion] severity [E_NOTICE] in [/PATH/tests/simpletest/test_case.php line 312]

and:

Fatal error: Call to undefined function json_encode() in /PATH/core/DataTable/Renderer/Json.php on line 39
@robocoder
Collaborator

Added libs/upgradephp/upgrade.php to config_test.php. Additional errors:

Fail: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_noTable -> Equal expectation fails at character 0 with [piwik_archive_numeric_2000_09] and [Object id #358] at [PATH/tests/core/TablePartitioning.test.php line 51]
Fail: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_monthlyPartition -> Equal expectation fails at character 0 with [piwik_archive_numeric_2000_09] and [Object id #1295] at [PATH/tests/core/TablePartitioning.test.php line 71]
Fail: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_dailyPartition -> Equal expectation fails at character 0 with [piwik_archive_numeric_2000_09_10] and [Object id #997] at [PATH/tests/core/TablePartitioning.test.php line 91]

Fail: ../plugins/SitesManager/tests/SitesManager.test.php -> Test_Piwik_SitesManager -> test_setDefaultTimezoneAndCurrencyAndExcludedQueryParametersAndExcludedIps -> Equal expectation fails as [Object: of Piwik_Date] does not match [String: 2010-05-27] at [PATH/plugins/SitesManager/tests/SitesManager.test.php line 783]

Exception: ../plugins/SitesManager/tests/SitesManager.test.php -> Test_Piwik_SitesManager -> test_setDefaultTimezoneAndCurrencyAndExcludedQueryParametersAndExcludedIps -> Unexpected PHP error [Object of class Piwik_Date could not be converted to int] severity [E_NOTICE] in [PATH/tests/simpletest/expectation.php line 246]
@robocoder
Collaborator

(In [2220]) refs #1378

@robocoder
Collaborator

(In [2221]) refs #1378 - fix assert typos

@robocoder
Collaborator

(In [2222]) refs #1378

@robocoder
Collaborator

(In [2224]) refs #1378

@robocoder
Collaborator

Unable to reproduce the "Call to a member function getColumn() on a non-object in /PATH/core/DataTable/Filter/Sort.php on line 120" error, selecting days and/or periods with/without visits.

@robocoder
Collaborator

(In [2225]) refs #1378 - check return value from current() for failure

@robocoder
Collaborator

(In [2226]) fixes #1378

@robocoder
Collaborator

Typo in last commit... meant this ticket #1387.

@robocoder robocoder added this to the Piwik 0.6.2 milestone
@robocoder robocoder self-assigned this
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.