Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to load bootswatch libs #247

Open
soniktrooth opened this issue Mar 16, 2016 · 2 comments
Open

Failing to load bootswatch libs #247

soniktrooth opened this issue Mar 16, 2016 · 2 comments

Comments

@soniktrooth
Copy link
Contributor

This seems to only happen locally. Pantheon instances seem fine.

    $bootswatch_info = drupal_http_request(KALATHEME_BOOTSWATCH_API);

This line returns Error opening socket ssl://bootswatch.com:443

I tried the following patch but it did nothing https://www.drupal.org/node/1879970#comment-9137861

The only thing that fixed it was changing

define('KALATHEME_BOOTSWATCH_API', 'https://bootswatch.com/api/3.json');

to

define('KALATHEME_BOOTSWATCH_API', 'http://bootswatch.com/api/3.json');

This takes ssl out of the picture and everything works fine.

@soniktrooth soniktrooth changed the title Error opening socket ssl://bootswatch.com:443 Failing to load bootswatch libs Mar 16, 2016
@soniktrooth
Copy link
Contributor Author

@labboy0276 Can you go to admin/appearance/settings on a Kalatheme site locally, clear the cache and report back whether the Bootswatch libs are loaded in the dropdown?

Clearing cache is important because this list is cached.

@labboy0276
Copy link

looks ok to me

soniktrooth added a commit that referenced this issue Jun 1, 2016
#270, #247: Trying http if https fails on Bootswatch API url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants