Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On all site install log messages I have been seeing:
Trying to get property of non-object provision.inc:57
The function in question (provision_get_base_url) calls:
$http_port = d()->web_server->http_port;
FWIW, the warning goes away after changing this line to read:
$http_port = d()->web_server['http_port'];
Comment | File | Size | Author |
---|---|---|---|
#1 | 888194.patch | 749 bytes | ergonlogic |
Comments
Comment #1
ergonlogicpatch attached
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedComment #3
omega8cc CreditAttribution: omega8cc commentedThe patch from #1 fixes the issue also for latest HEAD.
Marking as RTBC.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAre we solving the problem here or just hiding it?
In other cases in provision I am seeing things like
is web_server still valid? Maybe this is the issue here?
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedSince neither
d()->web_server->http_port
nord()->web_server['http_port']
return anything, andd()->server->http_port
returns '80' on my system, I went with my gut instinct and made it that instead.Fixed in git.