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

[BUGFIX] Return buttons if page is not callable #374

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

calien666
Copy link
Member

@calien666 calien666 commented Nov 20, 2024

Fixes #371

The ButtonBarHook seems to be called on root (pid=0) or other possible
constellations, too. In these cases (and some other) the BackendUtility
can't return avalid page record and returns null instead. Following up
code didn't check, if a valid page record was loaded from the database,
which lead to errors. WIth this commit, a check on a `$page === null`
and hardening on possible not set array keys is added avoiding this issue
@calien666 calien666 removed the request for review from NarkNiro November 20, 2024 18:30
@calien666 calien666 merged commit 0b76067 into main Nov 20, 2024
11 checks passed
@calien666 calien666 deleted the wv_deepltranslate-371 branch November 20, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Trying to access array offset on value of type null in ButtonBarHook.php line 45
2 participants