Problem/Motivation
Deprecation notices such as the following:
Deprecated function: Creation of dynamic property hostingService_remote_import_hostmaster::$remote_user is deprecated in hostingService_remote_import_hostmaster->load() (line 41 of profiles/hostmaster/modules/aegir/hosting_remote_import/hosting_remote_import.service.inc).
Deprecated function: Creation of dynamic property hostingService_http_apache::$port is deprecated in hostingService->setValues() (line 71 of profiles/hostmaster/modules/aegir/hosting/server/hosting_server.service.inc).
Steps to reproduce
Check the logs after browsing your Aegir site on PHP 8.2.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3399263-add-methods-1.patch | 1.96 KB | socialnicheguru |
| hosting-deprecation-notices.patch | 919 bytes | jacob.embree |
Issue fork hosting-3399263
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
steven jones commentedThanks for the bug report, and the patch. Here's some feedback:
I wonder if it's worth defaulting these to empty strings, rather than
NULLs?I think this could/should be
protectedrather thanpublic.I think this could/should be
protectedrather thanpublic.Comment #5
mohd sahzad commentedComment #6
socialnicheguru commentedThe protected value in MR does not work:
i am on ubuntu22.04lts php 8.2 and drupal 7.100
Comment #7
socialnicheguru commentedUpdated by adding getPort method which deals with the error I received:
Error: Cannot access protected property hostingService_http_https_nginx::$port
Comment #8
socialnicheguru commentedadded $https_enabled
Comment #9
socialnicheguru commentedComment #10
bwaindwain commentedSee also https://github.com/omega8cc/hosting/commit/684ebc2d6be3e15c20695e792d233...