PHP message: PHP Warning: Undefined array key "context" in /usr/local/www/phpvirtualbox/endpoints/lib/language.php on line 77
Created attachment 231363 [details] workaround
Is the patch obtained from an existing externa/third party source? If so, please include references
(In reply to Kubilay Kocak from comment #2) This is mine quick workaround, have no idea how to proper fix it, but without this code block it continue work. Probably it was broken and php7 ignore errors and continue execute.
Created attachment 231467 [details] patch
Created attachment 231712 [details] patch Add patch for media selection dialog.
Add please patches from my set too: https://github.com/phpvirtualbox/phpvirtualbox/issues/306
For both - www/phpvirtualbox and www/phpvirtualbox-legacy.
Created attachment 242211 [details] www/phpvirtualbox: php8 support (In reply to Ivan Rozhuk from comment #5) Both patches: > This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. IMHO, better add patch to the port.
Created attachment 242212 [details] www/phpvirtualbox-legacy: php8 support Same patch for www/phpvirtualbox-legacy.
https://reviews.freebsd.org/D40115 https://reviews.freebsd.org/D40116
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e134016b3d5eb6d1f8b741ccf1516151a6c23189 commit e134016b3d5eb6d1f8b741ccf1516151a6c23189 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-05-21 15:32:48 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-05-21 15:32:48 +0000 www/phpvirtualbox: PHP 8 support Patched from different sources PR: 261498 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D40115 www/phpvirtualbox/Makefile | 1 + www/phpvirtualbox/files/patch-php8 (new) | 187 +++++++++++++++++++++++++++++++ 2 files changed, 188 insertions(+)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3629be7b94fdc12e18b85c127ffdcfe894c7c07 commit f3629be7b94fdc12e18b85c127ffdcfe894c7c07 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-05-22 09:52:20 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-05-22 09:52:20 +0000 www/phpvirtualbox-legacy: PHP 8 support Patched from different sources PR: 261498 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D40116 www/phpvirtualbox-legacy/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
A commit in branch 2023Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c94e0944b7f5e3c189673a25be75db3322bf0f72 commit c94e0944b7f5e3c189673a25be75db3322bf0f72 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-05-22 09:52:20 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-05-22 10:00:46 +0000 www/phpvirtualbox-legacy: PHP 8 support Patched from different sources PR: 261498 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D40116 (cherry picked from commit f3629be7b94fdc12e18b85c127ffdcfe894c7c07) www/phpvirtualbox-legacy/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
A commit in branch 2023Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=df45388d37d5a156a503c51bffd051ed314cf3ef commit df45388d37d5a156a503c51bffd051ed314cf3ef Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-05-21 15:32:48 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-05-22 10:00:37 +0000 www/phpvirtualbox: PHP 8 support Patched from different sources PR: 261498 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D40115 (cherry picked from commit e134016b3d5eb6d1f8b741ccf1516151a6c23189) www/phpvirtualbox/Makefile | 1 + www/phpvirtualbox/files/patch-php8 (new) | 187 +++++++++++++++++++++++++++++++ 2 files changed, 188 insertions(+)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f1b38acfda124fc8f03fe5f4edfef10ef214501 commit 3f1b38acfda124fc8f03fe5f4edfef10ef214501 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-09-18 12:35:49 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-09-18 12:39:54 +0000 www/phpvirtualbox{,-legacy}: PHP 8 support (1 more catch) - "preg_replace" Fixed: PHP Warning: preg_replace() expects at least 3 parameters, 2 given in endpoints/screen.php on line 91 PR: 261498 Approved by: tcberner (mentor) MFH: 2023Q3 www/phpvirtualbox-legacy/Makefile | 2 +- www/phpvirtualbox/Makefile | 2 +- www/phpvirtualbox/files/patch-php8 | 28 +++++++++++++++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-)
A commit in branch 2023Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc4ebc143c4b097ec1ea90fa6831a3125c8619de commit fc4ebc143c4b097ec1ea90fa6831a3125c8619de Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2023-09-18 12:35:49 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2023-09-18 12:47:04 +0000 www/phpvirtualbox{,-legacy}: PHP 8 support (1 more catch) - "preg_replace" Fixed: PHP Warning: preg_replace() expects at least 3 parameters, 2 given in endpoints/screen.php on line 91 PR: 261498 Approved by: tcberner (mentor) MFH: 2023Q3 (cherry picked from commit 3f1b38acfda124fc8f03fe5f4edfef10ef214501) www/phpvirtualbox-legacy/Makefile | 2 +- www/phpvirtualbox/Makefile | 2 +- www/phpvirtualbox/files/patch-php8 | 28 +++++++++++++++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8ee98641064dad1082c655e05c7a1f179322bfe commit c8ee98641064dad1082c655e05c7a1f179322bfe Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-06-07 16:17:07 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-06-07 16:17:07 +0000 www/phpvirtualbox{,-legacy}: PHP 8.2 support - "utf8_encode()" "Show Log" for a VM failed with error: "Function utf8_encode() is deprecated". It's deprecated since PHP 8.2 and will be removed in PHP 9. There is little sense in encoding logs - remove it. While here refresh my patches with make makepatch. PR: 261498 Approved by: portmgr (blanket, fix run) MFH: 2024Q2 www/phpvirtualbox-legacy/Makefile | 2 +- www/phpvirtualbox/Makefile | 2 +- www/phpvirtualbox/files/patch-php8 | 136 ++++++++++++++++++++----------------- 3 files changed, 76 insertions(+), 64 deletions(-)
A commit in branch 2024Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bd0b5dbec69c6d72b29c325aeb6f7b61ca900df commit 8bd0b5dbec69c6d72b29c325aeb6f7b61ca900df Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-06-07 16:17:07 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-06-07 16:33:15 +0000 www/phpvirtualbox{,-legacy}: PHP 8.2 support - "utf8_encode()" "Show Log" for a VM failed with error: "Function utf8_encode() is deprecated". It's deprecated since PHP 8.2 and will be removed in PHP 9. There is little sense in encoding logs - remove it. While here refresh my patches with make makepatch. PR: 261498 Approved by: portmgr (blanket, fix run) MFH: 2024Q2 (cherry picked from commit c8ee98641064dad1082c655e05c7a1f179322bfe) www/phpvirtualbox-legacy/Makefile | 2 +- www/phpvirtualbox/Makefile | 2 +- www/phpvirtualbox/files/patch-php8 | 136 ++++++++++++++++++++----------------- 3 files changed, 76 insertions(+), 64 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d77f8d92ff492b6f408bead68d5484c70a031fba commit d77f8d92ff492b6f408bead68d5484c70a031fba Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-06-07 16:41:36 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-06-07 16:48:33 +0000 www/phpvirtualbox{,-legacy}: use one patch for both ports, remove "No newline at end of file" from patches Forgot to commit this change in previous commit. PR: 261498 Approved by: portmgr (blanket, fix run) Fixes: c8ee98641064 (PHP 8.2 support - "utf8_encode()") MFH: 2024Q2 www/phpvirtualbox-legacy/Makefile | 3 +- ...tch-panes_mediumEncryptionPasswords.html (gone) | 41 ---------------------- .../patch-panes_mediumEncryptionPasswords.html | 7 ---- www/phpvirtualbox/files/patch-php8 | 7 ---- 4 files changed, 2 insertions(+), 56 deletions(-)
A commit in branch 2024Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0ff750a9386c00c580a99c436ac59c4d58ee8eb8 commit 0ff750a9386c00c580a99c436ac59c4d58ee8eb8 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-06-07 16:41:36 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-06-07 16:51:37 +0000 www/phpvirtualbox{,-legacy}: use one patch for both ports, remove "No newline at end of file" from patches Forgot to commit this change in previous commit. PR: 261498 Approved by: portmgr (blanket, fix run) Fixes: c8ee98641064 (PHP 8.2 support - "utf8_encode()") MFH: 2024Q2 (cherry picked from commit d77f8d92ff492b6f408bead68d5484c70a031fba) www/phpvirtualbox-legacy/Makefile | 3 +- ...tch-panes_mediumEncryptionPasswords.html (gone) | 41 ---------------------- .../patch-panes_mediumEncryptionPasswords.html | 7 ---- www/phpvirtualbox/files/patch-php8 | 7 ---- 4 files changed, 2 insertions(+), 56 deletions(-)