Problem with GitHub Pages - theme

Hello everyone,

I have problem with course GitHub Pages, and it’s exactly at point 4 with selecting a theme. After clicking a button “select theme” a have an error message “Unable to commit _config.yml to protected branch.”

I have no idea what to do with it.

Please help.

Best regards,

Oskar

Hello @oskron772

I just jumped in to take a look at your course and it looks like you have been able to progress past this point. I do see that the app is creating multiple “Add a theme” issues so I will escalate that to our developer team for investigation!

Thank you for checking out GitHub Learning Lab and please let me know if you have any additional problems with the course.

Hi,

Thanks you for your response. Yes, I walked through the course. I have problem with merging reviews but I unblocked the master branch in settings

Best regards

I’m having the same issue. Is there a solution for this? Thanks!

I am also having the same issue.  It is with the setting of the theme.  At the proper section of the tutorial I had chosen the Minimal theme.  Then later, the course asked me to change that in the _yml file to …

theme: minima

I think this is a fluke in the course.  I have a hunch that it wanted us to instead choose 

theme: jekyll-theme-minimal

which is what I already had it set to, but that is not the instructions given to us in the coursework.  

Initially I had left it that way, but it showed an error because I had not changed it.  Then when I changed it to match info on the PDF of the course, it continued with the error that previous people reported.

why you saying like that 

Hi @mndayizeye

Happy to help! Let us know if there is a specific question we can help with. 

Cheers!

Hi @mbrasseau

I love your attention to detail! In this case, the course is actually looking for a theme called “minima” and not “jekyll-theme-minimal”. 

Minima is the vanilla Jekyll theme! You can see an example of it in action here: https://jekyll.github.io/minima/

I checked out your course and it looks like you were able to complete it using “minima” as the theme. Was there another error you noticed after this point?

1 Like

@yahsee I checked your course and, as suspected, your GitHub pages site is not building. Can you please take a screenshot of the github pages section of your repository settings and paste it below?

Hi, here is the requested screenshot.

1 Like

I would like to add a theme to my github pages, but upon selecting a theme i am getting an error message , “Requests to the server have been blocked by an extension.” Hence i cannot proceed further. I have disabled the extensions on my browser(chrome) and it hasn’t worked. I also tried another browser (Microsoft edge) and the results are almost the same.

Please any suggestions on how i can solve this?

Thank you.

Chamu

Hey there @chamumutezva

Thank you for reaching out to us. The error mentioned could be triggered from various different configurations which is not only related to GitHub Pages. To help us dive into the specifics, have you tried any of the following configurations mentioned?

For troubleshooting GH pages builds:

https://help.github.com/articles/troubleshooting-github-pages-builds/

For correct configuration of GH Pages themes:

https://help.github.com/articles/about-jekyll-themes-on-github/

https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site-with-the-jekyll-theme-chooser/

Let us know how this goes. Good Luck! :slight_smile:

I’ve managed to solve this issue by unticking the tag “Require pull request reviews before merging” in settings --> branches --> Branch protection rules --> master --> edit

so that github could change the .yml file (theme file) without submitting a pull request. 

2 Likes

I was experiencing the same issue and your soluition fixed the issue.

Thanks @simzhou  for taking the time to post this most helpful answer!! 

Thanks! It worked. The tutorial should probably not require approvals at this early stage.