Closed (fixed)
Project:
Provision
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2010 at 18:41 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent, Most recent file
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 commentedComment #3
omega8cc commentedThe patch from #1 fixes the issue also for latest HEAD.
Marking as RTBC.
Comment #4
Anonymous (not verified) 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) commentedSince neither
d()->web_server->http_portnord()->web_server['http_port']return anything, andd()->server->http_portreturns '80' on my system, I went with my gut instinct and made it that instead.Fixed in git.