Re: Connecting Github theme to Shopify doesn't load in

Solved

Connecting Github theme to Shopify doesn't load in

Pete-dbd
Shopify Partner
2 0 1

Hi,

 

We have been using Github with our Shopify themes for a few months now and it has been working really well up to this point. However, of late, we seem to be facing an error when adding in our themes from Github. See below what is happening:

1. click 'add theme' > 'Connect from Github'

2. Select the repository in the pop up

3. Then select connect next to the branch I wish to connect. 

4. The theme then appears in Shopify as it should but unfortunately the loading cursor doesn't seem to stop and then when it does finish the following error appears, "Not all files could be created. Remove the theme and try again. Contact support if the issue. View Logs"

 

We have tried getting in contact with the support but things just seem a bit slow and we are quite keen to get this sorted as we can't create duplicates of the main branch to carry out site amends. We can duplicate the theme directly through Shopify but we ideally want to have it up and running with our Github. Also to note when checking the log it just seems to be stuck on "Processing new events".

 

Has anyone else faced this issue before? And if so could you please advise on how we could resolve it. Thank you in advance.

 

Accepted Solution (1)

Gordon_Chan
Shopify Expert
28 2 22

This is an accepted solution.

My store encounter the same issue, and we click the View log seeing it say:

Error: /, Theme is too large. Maximum theme size is 50MB.

For our case, the theme has many assets as we periodically produce different images, so assets folder is huge, and I check the whole assets folder is 400MB+

However it should have been >50MB for long time, just weird that it suddenly fail.

Wonder you guys notice similar error in the theme View Log? or find that your theme also grew over 50MB+?

http://gordon-chan.net
I am a Freelance Web Engineer. Dedicated my life to e-commerce development.

View solution in original post

Replies 4 (4)

Ghostly
Shopify Partner
2 0 0

Currently experiencing this same issue - loading from a git branch for development, but the theme takes around 30 minutes to stop loading. Have you had any progress? We have other branches loaded which are working fine.

bryka
Shopify Partner
12 0 3

I'm having the same issue and support is giving zero $hits. Its been two weeks now and I'm unable to load new themes from Github regardless of branch.

Gordon_Chan
Shopify Expert
28 2 22

This is an accepted solution.

My store encounter the same issue, and we click the View log seeing it say:

Error: /, Theme is too large. Maximum theme size is 50MB.

For our case, the theme has many assets as we periodically produce different images, so assets folder is huge, and I check the whole assets folder is 400MB+

However it should have been >50MB for long time, just weird that it suddenly fail.

Wonder you guys notice similar error in the theme View Log? or find that your theme also grew over 50MB+?

http://gordon-chan.net
I am a Freelance Web Engineer. Dedicated my life to e-commerce development.

eba-tech
Shopify Partner
17 0 7

WORKAROUND

Hi all, I was also stuck on this issue for ages. After slow and useless support from Shopify I have found a hack/workaround. I hope that it works for you too!

My case is just simply a brand new dev branch (exact up-to-date copy of the main branch) that causes the '50MB' error. Confusingly, the main branch works perfectly.

To get around it, in the terminal:

1. On the dev branch, move the 'assets' folder to a backup folder outside the repo.
2. Push the repo (now without the assets folder) to the remote dev branch.
3. Add the dev branch theme using the Shopify interface (via Github). (Fingers crossed this works for you without the 50MB error like it did for me)
4. Move the assets back to your repo
5. Push the repo to the remote dev branch
6. Check 'edit code' on the Shopify theme dev branch to make sure the assets were added.

If anybody does get an official response/solution from Shopify then please let us know!