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.
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 CreditAttribution: 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 CreditAttribution: 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.