Closed (fixed)
Project:
Open Outreach
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2012 at 03:22 UTC
Updated:
24 Aug 2012 at 23:11 UTC
I get these notices on cron runs (drush cron --debug):
Undefined index: SERVER_NAME openoutreach.profile:121
Undefined index: SERVER_ADDR openoutreach.profile:122
I grepped for the server_ip index and don't see anywhere it's used. But that leaves the server_name index, which I believe is needed but this is Apps thing all new territory for me.
Comments
Comment #1
nedjoThx for noting this. It's in code I cribbed from
openpublish_apps_servers_info()and haven't looked closely at. Likely just a test for isset() in each case will help here--but what to set the values to if not set I don't know.Comment #2
Robin Millette commentedI opened #1719808: $_SERVER use in openpublish.profile and drush use hoping to get answers there about hook_apps_servers_info() and the use of those 2 server indexes.
Comment #3
Robin Millette commentedI'm using this for now in openoutreach_apps_servers_info() which got rid of the notices when running drush cron or drush cc. Nothing exploded :-)
Comment #4
nedjoThanks, applied in http://drupalcode.org/project/openoutreach.git/commit/600ce6b.