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.
After enabling it from the modules section an warning/error message is displayed.
Warning: parse_url(http://) [function.parse-url]: Unable to parse URL in domain_301_redirect_init() (line 67 of /public_html/sites/all/modules/domain_301_redirect/domain_301_redirect.module).
It seems to be an error indicating that the domain hasn't been set. Maybe a "pretty message" should be displayed notifying the user that they need to set the domain.
Also, the message goes away after you set the domain.
Comments
Comment #1
jeremyr CreditAttribution: jeremyr commentedIn domain_301_redirect.module I replaced this starting on line 59
With this:
Comment #2
jessebeach CreditAttribution: jessebeach commentedHi jeremyr, I addressed these warning messages in the 7.x-1.0 release. Rather than suppressing the error with @, I moved if statements around so parse_url isn't called if we don't have $domain_301_redirect_domain.
Comment #3
jessebeach CreditAttribution: jessebeach commented