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

Several PHP 7.4 fixes #15222

Merged
merged 3 commits into from Dec 2, 2019
Merged

Several PHP 7.4 fixes #15222

merged 3 commits into from Dec 2, 2019

Conversation

brainfoolong
Copy link
Contributor

On a fresh 3.13.0 install with php 7.4.0 following error occurs when tracker does track a page view, when using Mysqli as database driver.

Notice: Trying to access array offset on value of type int in /srv/0x.at/matomo/core/Tracker/Db/Mysqli.php on line 50

This fix this error

On a fresh 3.13.0 install with php 7.4.0 following error occurs when tracker does track a page view, when using Mysqli as database driver. 

`Notice: Trying to access array offset on value of type int in /srv/0x.at/matomo/core/Tracker/Db/Mysqli.php on line 50`

This fix this error
This error appears, this change fixes this issue

`DataTable/Filter/ColumnDelete.php(164): Deprecated - array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead - Matomo 3.11.0`
@brainfoolong brainfoolong changed the title PHP 7.4 notice in tracker when using Mysqli database driver Several PHP 7.4 fixes Dec 2, 2019
@@ -161,7 +161,7 @@ protected function removeColumnsFromTable(&$table)
}
foreach ($this->columnsToRemove as $column) {

if (!array_key_exists($column, $row)) {
if (!property_exists($column, $row)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe undo this change? We will investigate this as part of #15210

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, done.

@tsteur
Copy link
Member

tsteur commented Dec 2, 2019

Awesome, thanks for quick change. Very appreciated.

@tsteur tsteur added this to the 3.13.1 milestone Dec 2, 2019
@tsteur tsteur added the Needs Review PRs that need a code review label Dec 2, 2019
Copy link
Member

@tsteur tsteur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to wait for tests before merging though

@tsteur tsteur merged commit 13b8cb9 into matomo-org:3.x-dev Dec 2, 2019
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants