# When activating sage theme, I got an error about Illuminate\Support\Collection

**URL:** https://discourse.roots.io/t/when-activating-sage-theme-i-got-an-error-about-illuminate-support-collection/11375
**Category:** sage
**Created:** 2018-01-18T23:16:28Z
**Posts:** 9

## Post 1 by @Mcutewood — 2018-01-18T23:16:28Z

I got trellis and bedrock installed which work perfectly. I did everything from the documentation of sage 9, trellis and bedrock. But, when I start with “yarn start run”, my localhost:3000 is on browsersync but it activate automatically another theme than sage, even thought I have only sage in my app/themes/. Now, when I go to wp-admin and activate sage, I got this wonderful orange error :

Fatal error: Uncaught Error: Class ‘Illuminate\Support\Collection’ not found in /srv/www/example.com/current/web/app/themes/sage/vendor/illuminate/support/helpers.php on line 379

I installed my sage 9 from composer, yarn seems to worked, so… I don’t know, really. Did I miss something or what can I do to get sage theme working?

Thanks everyone

---

## Post 2 by @MWDelaney — 2018-01-18T23:37:38Z

> [@Matthieu_Boisjoli](#):
>
> but it activate automatically another theme than sage, even thought I have only sage in my app/themes/.

This is normal. Sage doesn’t automatically activate itself, and Trellis and Bedrock don’t assume you want to use a Sage theme (and wouldn’t be able to guess which theme you wanted to use anyway). Bedrock starts with the same defaults as vanilla WordPress including the default theme.

> [@Matthieu_Boisjoli](#):
>
> I got this wonderful orange error :
> 
> Fatal error: Uncaught Error: Class ‘Illuminate\Support\Collection’ not found in /srv/www/example.com/current/web/app/themes/sage/vendor/illuminate/support/helpers.php on line 379

Did you run `composer install` in your Sage directory?

What environment are you developing in?

Your reference to `example.com` makes me think you didn’t configure Trellis completely.

---

## Post 3 by @Mcutewood — 2018-01-19T00:00:11Z

running composer install do nothing, it gives me this message : Nothing to install or update.  
I am currently working on my local environnement.  
For this time, I did not configured Trellis completely. However, I installed everything and configured everything twice before this one ; the result is always the same when I activate sage theme. Trellis is working well, the issue is with the sage theme not able to recognize a certain class even if I have followed perfectly the document for sage. Even google can’t help me on this. :confused:

---

## Post 4 by @Mcutewood — 2018-01-19T00:03:04Z

![25 PM](https://discourse.roots.io/uploads/default/original/2X/5/5f615ad737aac98e293168eb3eae4342cfc4f65a.png)

Perhaps this image may come in help.

---

## Post 5 by @MWDelaney — 2018-01-19T00:05:20Z

Are you on a Mac or a PC?

---

## Post 6 by @Mcutewood — 2018-01-19T00:39:30Z

macOS Sierra 10.12.16

---

## Post 7 by @Mcutewood — 2018-01-19T00:48:50Z

Even if I try to use wp-cli on my server (by doing vagrant ssh on the folder trellis), I get the same error, thus, I cannot even change back to a default theme.

 ![22 PM](https://discourse.roots.io/uploads/default/original/2X/3/362cbb23a6bfcd8962bdb9ce935ed72b3e0a96c5.png)

---

## Post 8 by @joppuyo — 2018-01-26T12:11:08Z

Try updating to Composer 1.6.2 using `composer self-update`. This fixed the problem for me.

---

## Post 9 by @abadrahman — 2018-07-13T16:54:33Z

Had a slightly different error but hope this helps someone out.

`PHP Fatal error: Interface 'Illuminate\Contracts\Support\Arrayable' not found in /srv/woopie/web/app/themes/prime/vendor/illuminate/support/Collection.php on line 42`

I had to remove the vendor folder inside the theme and clean composer using `composer clear-cache` and `composer install` again.
