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.
Notice: Undefined offset: 1 in drupal_http_request() (line 989 of /var/www/vhosts/be/includes/common.inc).
Notice: Undefined offset: 2 in drupal_http_request() (line 993 of /var/www/vhosts/be/includes/common.inc).
Notice: Undefined offset: 1 in drupal_http_request() (line 993 of /var/www/vhosts/be/includes/common.inc).
Warning: Invalid argument supplied for foreach() in _bootstrap_settings_form() (line 81 of /var/www/vhosts/be/sites/all/themes/bootstrap/theme/settings.inc)
I get these errors on the theme admin page. Sometimes the Bootswatch theme options are missing, if I save the page sometimes they return - however there seems to be no consistency on this.
Comments
Comment #1
jeremymcminn CreditAttribution: jeremymcminn commentedRetried this bug am getting the following error including the above when trying to select a Bootswatch Theme and then all the options in the list disappear apart from "Disabled"
An illegal choice has been detected. Please contact the site administrator.
Comment #2
valkum CreditAttribution: valkum commentedThere seems to be some problems with drupal_http_request in your environment. Or the connection of your server to the bootswatch api server.
Comment #3
valkum CreditAttribution: valkum commentedShould we add a check if the data is correct before we us the var in foreach?
like this?
Comment #4
markhalliwellThanks @jeremymcminn!
Hopefully this should fix the offset errors and provide a more useful error message. It sounds like your hosting server doesn't allow HTTP requests to be made, in this case, there is unfortunately not much we can do to get around that :(
Committed cf4361e to 7.x-3.x:
Comment #5
valkum CreditAttribution: valkum commentedComment #6
jeremymcminn CreditAttribution: jeremymcminn commentedThat is unfortunate - I do have a VPS with MediaTemple so I'm sure I'll be able to find a way around it. Thanks.
Comment #6.0
jeremymcminn CreditAttribution: jeremymcminn commentedNote about no consistency on error.