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

CustomLogo upload not working with PHP8 #17205

Merged
merged 2 commits into from Feb 8, 2021
Merged

Conversation

gecon
Copy link
Contributor

@gecon gecon commented Feb 8, 2021

Fix for PHP 8.0 compatibility: In PHP 8 GdImage class objects replace GD image resources. Custom logo upload was not working.

Description:

Using PHP 8.0 dos not allow custom logo upload, because GdImage class objects replace GD image resources.
Proposed fix checks for GDImage class object too and custom logo is working.

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

Fix for PHP 8.0 compatibility: In PHP 8 GdImage class objects replace GD image resources.  Custom logo upload was not working.
@sgiehl sgiehl added this to the 4.2.0 milestone Feb 8, 2021
@sgiehl sgiehl added Needs Review PRs that need a code review Bug For errors / faults / flaws / inconsistencies etc. labels Feb 8, 2021
@sgiehl
Copy link
Member

sgiehl commented Feb 8, 2021

Hi @gecon
Thanks for creating the Pull Request. I will try to review this later, so we can include it into our next release.

@sgiehl
Copy link
Member

sgiehl commented Feb 8, 2021

Tested locally with PHP 7 and PHP 8. Custom Logo upload now works on both. Thanks @gecon for providing the patch 👍

@sgiehl sgiehl merged commit 0dfdfe8 into matomo-org:4.x-dev Feb 8, 2021
@gecon gecon deleted the patch-1 branch February 14, 2021 10:33
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. 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