# acorn

**URL:** https://discourse.roots.io/c/acorn/23.md?page=1

[Latest](https://discourse.roots.io/latest.md) · [Categories](https://discourse.roots.io/categories.md) · [Tags](https://discourse.roots.io/tags.md)

**Page:** 2

---

## [Acorn + Larastan](https://discourse.roots.io/t/acorn-larastan/29344)

<div class="topic-metadata">

**Author:** [@marie](https://discourse.roots.io/u/marie)\
**Replies:** 2\
**Last updated:** [April 29, 2025, 7:09am UTC](https://discourse.roots.io/t/acorn-larastan/29344 "2025-04-29T07:09:37Z")

</div>

Hey there, Is there a way around to use larastan with acorn ? Because when I run analyse, there is this type of errors, knowing that database\_path() has never been called in NewsBlock.php Internal error: Call to undef…

---

## [Acorn tries to load config a second time when installed in a bedrock theme](https://discourse.roots.io/t/acorn-tries-to-load-config-a-second-time-when-installed-in-a-bedrock-theme/29535)

<div class="topic-metadata">

**Author:** [@egaron](https://discourse.roots.io/u/egaron)\
**Replies:** 5\
**Last updated:** [April 24, 2025, 6:58pm UTC](https://discourse.roots.io/t/acorn-tries-to-load-config-a-second-time-when-installed-in-a-bedrock-theme/29535 "2025-04-24T18:58:42Z")

</div>

Hi, When installing acorn via composer inside bedrock and calling the following setup function in the functions file of my theme, I get error telling me that it’s trying to define the constants that are set in applicati…

---

## [Issue Deploying Updated Plugins Due to Acorn Cache](https://discourse.roots.io/t/issue-deploying-updated-plugins-due-to-acorn-cache/29320)

<div class="topic-metadata">

**Author:** [@lgenter](https://discourse.roots.io/u/lgenter)\
**Replies:** 4\
**Last updated:** [April 16, 2025, 3:02pm UTC](https://discourse.roots.io/t/issue-deploying-updated-plugins-due-to-acorn-cache/29320 "2025-04-16T15:02:29Z")

</div>

Hey team, I have 3-year-old site that I am updating some premium plugins on. The site is using Trellis, Bedrock, and Sage 10, which have not been upgraded since the site was launched due to budget constraints. As such, …

---

## [acorn v5.0.2 released](https://discourse.roots.io/t/acorn-v5-0-2-released/29457)

<div class="topic-metadata">

**Author:** [@Log1x](https://discourse.roots.io/u/Log1x)\
**Replies:** 0\
**Last updated:** [April 8, 2025, 4:53pm UTC](https://discourse.roots.io/t/acorn-v5-0-2-released/29457 "2025-04-08T16:53:50Z")

</div>

acorn v5.0.2 released What’s Changed :adhesive\_bandage: Pass missing $pages and $health parameters to the withRouting() parent by @boxybird in Refactor routing method to include new parameters. by boxybird · Pull Reque…

---

## [PHP Fatal error: Uncaught OutOfBoundsException: Package "illuminate/support" is not installed in ...](https://discourse.roots.io/t/php-fatal-error-uncaught-outofboundsexception-package-illuminate-support-is-not-installed-in/29437)

<div class="topic-metadata">

**Author:** [@tombro](https://discourse.roots.io/u/tombro)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 9:01am UTC](https://discourse.roots.io/t/php-fatal-error-uncaught-outofboundsexception-package-illuminate-support-is-not-installed-in/29437 "2025-03-12T09:01:50Z")

</div>

I’m encountering an issue on a remote server with Acorn V5 when trying to run an acorn command. wp acorn --path="www/wp" PHP Fatal error: Uncaught OutOfBoundsException: Package "illuminate/support" is not installed in…

---

## [Correct way to boot Laravel in v5](https://discourse.roots.io/t/correct-way-to-boot-laravel-in-v5/29438)

<div class="topic-metadata">

**Author:** [@JacobBlana](https://discourse.roots.io/u/JacobBlana)\
**Replies:** 2\
**Last updated:** [March 11, 2025, 10:02pm UTC](https://discourse.roots.io/t/correct-way-to-boot-laravel-in-v5/29438 "2025-03-11T22:02:44Z")

</div>

What is actually the correct way to boot Laravel with new acorn? Because in docs it is wrapped in after\_setup\_theme action but in the sage repository it self it is without it before loading theme files (setup.php, filte…

---

## [acorn v5.0.1 released](https://discourse.roots.io/t/acorn-v5-0-1-released/29435)

<div class="topic-metadata">

**Author:** [@Log1x](https://discourse.roots.io/u/Log1x)\
**Replies:** 0\
**Last updated:** [March 11, 2025, 8:38am UTC](https://discourse.roots.io/t/acorn-v5-0-1-released/29435 "2025-03-11T08:38:49Z")

</div>

acorn v5.0.1 released This release fixes Windows support. What’s Changed :fast\_reverse\_button: Use absolute paths in Application::usePaths() by @QWp6t in ⏪ use absolute paths in \`Application::usePaths()\` by QWp6t · Pu…

---

## [acorn v5.0.0 released](https://discourse.roots.io/t/acorn-v5-0-0-released/29330)

<div class="topic-metadata">

**Author:** [@Log1x](https://discourse.roots.io/u/Log1x)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 9:11am UTC](https://discourse.roots.io/t/acorn-v5-0-0-released/29330 "2025-03-07T09:11:59Z")

</div>

acorn v5.0.0 released Upgrading from v4.x What’s Changed :sparkles: Upgrade to Laravel 12 :sparkles: Improved Vite support :sparkles: Add acorn:install command to simplify installing Acorn :sparkles: Add Laravel queue…

---

## [\[SOLVED\] Acorn v3 -\> v4 Upgrade | PSR Logger Issue -\> Bedrock/WPML | Fatal error: Declaration of Monolog\\Logger::emergency](https://discourse.roots.io/t/solved-acorn-v3-v4-upgrade-psr-logger-issue-bedrock-wpml-fatal-error-declaration-of-monolog-logger-emergency/26987)

<div class="topic-metadata">

**Author:** [@yasser\_artcore](https://discourse.roots.io/u/yasser_artcore)\
**Replies:** 12\
**Last updated:** [February 28, 2025, 11:31am UTC](https://discourse.roots.io/t/solved-acorn-v3-v4-upgrade-psr-logger-issue-bedrock-wpml-fatal-error-declaration-of-monolog-logger-emergency/26987 "2025-02-28T11:31:17Z")

</div>

Edit This issue has been solved, the title has been updated to make this post easier to find for others. Looking for a solution? @alexmzk Provided a workaround below @RistoKaalma pinpointed the issue in the WPML plugi…

---

## [Acorn Setup on a Bedrock Install](https://discourse.roots.io/t/acorn-setup-on-a-bedrock-install/29308)

<div class="topic-metadata">

**Author:** [@Wero](https://discourse.roots.io/u/Wero)\
**Replies:** 3\
**Last updated:** [February 26, 2025, 10:56pm UTC](https://discourse.roots.io/t/acorn-setup-on-a-bedrock-install/29308 "2025-02-26T22:56:35Z")

</div>

Hey there, new user. I am trying to install Acorn on a fresh Bedrock project and I have a few questions. I’d like to install Acorn from the root directory of my Bedrock install. The idea is to be able to use Acorn thr…

---

## [Acorn mail headers overwrite](https://discourse.roots.io/t/acorn-mail-headers-overwrite/29250)

<div class="topic-metadata">

**Author:** [@Broder](https://discourse.roots.io/u/Broder)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 7:26am UTC](https://discourse.roots.io/t/acorn-mail-headers-overwrite/29250 "2025-02-13T07:26:09Z")

</div>

I have a Livewire contact form with Acorn Mail setup. I’m trying to set the users name and email as the one who has sent the message. But when using $headers to dynamically set the mail from and name in wp\_mail(), it is …

---

## [Using Folio with acorn](https://discourse.roots.io/t/using-folio-with-acorn/28899)

<div class="topic-metadata">

**Author:** [@eavonius](https://discourse.roots.io/u/eavonius)\
**Replies:** 4\
**Last updated:** [February 2, 2025, 7:29pm UTC](https://discourse.roots.io/t/using-folio-with-acorn/28899 "2025-02-02T19:29:00Z")

</div>

Tried using folio with acorn this weekend. When doing wp acorn route:list I see the folio fallback route, but the code in folio that resolves routes to my pages never runs. I always get a 404 that renders the not found …

---

## [Booting acorn before 'after\_setup\_theme'](https://discourse.roots.io/t/booting-acorn-before-after-setup-theme/29157)

<div class="topic-metadata">

**Author:** [@raphaelportmann](https://discourse.roots.io/u/raphaelportmann)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 10:29am UTC](https://discourse.roots.io/t/booting-acorn-before-after-setup-theme/29157 "2025-01-28T10:29:21Z")

</div>

We’re currently developing an acorn package using the roots/acorn-example-package template. This package is used in a Bedrock and Sage WordPress setup. I’m currently having the issue that Acorn is initialized when the t…

---

## [WP hooks/lifecycle in a custom route](https://discourse.roots.io/t/wp-hooks-lifecycle-in-a-custom-route/24781)

<div class="topic-metadata">

**Author:** [@niek](https://discourse.roots.io/u/niek)\
**Replies:** 2\
**Last updated:** [January 25, 2025, 8:18pm UTC](https://discourse.roots.io/t/wp-hooks-lifecycle-in-a-custom-route/24781 "2025-01-25T20:18:03Z")

</div>

I am aware that custom routes are still in development but I was just wondering how you guys are approaching WP hooks/lifecycle. From what I’m seeing, hooks are not firing at all. I managed to get a somewhat reasonable …

---

## [setPublicPath is not applied to enqueued css and js](https://discourse.roots.io/t/setpublicpath-is-not-applied-to-enqueued-css-and-js/24018)

<div class="topic-metadata">

**Author:** [@avior](https://discourse.roots.io/u/avior)\
**Replies:** 1\
**Last updated:** [January 12, 2025, 2:52pm UTC](https://discourse.roots.io/t/setpublicpath-is-not-applied-to-enqueued-css-and-js/24018 "2025-01-12T14:52:46Z")

</div>

Hi, Is there any way to apply CDN base url to enqueued css and scripts? i am using : bundle('app')-\>enqueue(); Thanks!

---

## [acorn v5.0.0-beta.2 released](https://discourse.roots.io/t/acorn-v5-0-0-beta-2-released/29033)

<div class="topic-metadata">

**Author:** [@QWp6t](https://discourse.roots.io/u/QWp6t)\
**Replies:** 0\
**Last updated:** [December 23, 2024, 7:25pm UTC](https://discourse.roots.io/t/acorn-v5-0-0-beta-2-released/29033 "2024-12-23T19:25:06Z")

</div>

acorn v5.0.0-beta.2 released What’s Changed :up\_arrow: Update Foundation v11.34.0 by @Log1x in ⬆ Update Foundation · roots/acorn@9c14ea8 · GitHub :plus: Add illuminate/hashing to the project by @Log1x in https://github…

---

## [\[SOLVED\] Call to undefined function Illuminate\\Foundation\\Exceptions\\Renderer\\Mappers\\once() & issues downgrading Acorn](https://discourse.roots.io/t/solved-call-to-undefined-function-illuminate-foundation-exceptions-renderer-mappers-once-issues-downgrading-acorn/28992)

<div class="topic-metadata">

**Author:** [@tm2024](https://discourse.roots.io/u/tm2024)\
**Replies:** 2\
**Last updated:** [December 10, 2024, 3:45pm UTC](https://discourse.roots.io/t/solved-call-to-undefined-function-illuminate-foundation-exceptions-renderer-mappers-once-issues-downgrading-acorn/28992 "2024-12-10T15:45:44Z")

</div>

I recently ran a composer update which automatically updated my Acorn version from 4.3.1 to 5.0.0-beta.1, after which point my site started throwing this error. It seems to be a namespacing issue with some of Acorn’s dep…

---

## [ConfigResolver helper class](https://discourse.roots.io/t/configresolver-helper-class/28994)

<div class="topic-metadata">

**Author:** [@mvdhoek1](https://discourse.roots.io/u/mvdhoek1)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 2:25pm UTC](https://discourse.roots.io/t/configresolver-helper-class/28994 "2024-12-10T14:25:13Z")

</div>

Hi everyone, I’ve put together a small PHP library called ConfigResolver to make working with configuration objects a little easier. If you often find yourself managing complex nested arrays for configuration, this migh…

---

## [Query Monitor not working on routed pages](https://discourse.roots.io/t/query-monitor-not-working-on-routed-pages/28974)

<div class="topic-metadata">

**Author:** [@bantunesm](https://discourse.roots.io/u/bantunesm)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 11:05pm UTC](https://discourse.roots.io/t/query-monitor-not-working-on-routed-pages/28974 "2024-12-06T23:05:50Z")

</div>

Hi guys :wave: I’ve noticed that Query Monitor isn’t being included in pages defined in the web.php routes file. Has anyone encountered this issue or knows how to resolve it? Image below does not help that much, just i…

---

## [Run acorn command in PHP](https://discourse.roots.io/t/run-acorn-command-in-php/28885)

<div class="topic-metadata">

**Author:** [@filpiro](https://discourse.roots.io/u/filpiro)\
**Replies:** 4\
**Last updated:** [December 5, 2024, 10:44pm UTC](https://discourse.roots.io/t/run-acorn-command-in-php/28885 "2024-12-05T22:44:04Z")

</div>

Hello, is there a way to execute Acorn commands via PHP? Something similar to Artisan’s “call” method. I tried searching but couldn’t find anything specific for Acorn. My desired goal is to be able to execute commands …

---

## [Acorn scheduler is not loading wordpress correctly](https://discourse.roots.io/t/acorn-scheduler-is-not-loading-wordpress-correctly/28969)

<div class="topic-metadata">

**Author:** [@mfr148](https://discourse.roots.io/u/mfr148)\
**Replies:** 0\
**Last updated:** [December 3, 2024, 3:27pm UTC](https://discourse.roots.io/t/acorn-scheduler-is-not-loading-wordpress-correctly/28969 "2024-12-03T15:27:14Z")

</div>

Hello We are stuck on this one and we need help. Can anyone has the solution? We can hire someone for that ? thanks a lot

---

## [Sage Theme : \`wp acorn\` -\> Error establishing a database connection](https://discourse.roots.io/t/sage-theme-wp-acorn-error-establishing-a-database-connection/26443)

<div class="topic-metadata">

**Author:** [@OlivPi](https://discourse.roots.io/u/OlivPi)\
**Replies:** 7\
**Last updated:** [November 29, 2024, 4:13pm UTC](https://discourse.roots.io/t/sage-theme-wp-acorn-error-establishing-a-database-connection/26443 "2024-11-29T16:13:53Z")

</div>

Hello, I have some problemes with acorn, and i don’t find my response in topics. I’ll like to use it for install a simple breadcrumb package for Sage 10 (Log1x/crumb). I setup my bedrock project with Docker. My comman…

---

## [An Acorn package for managing user roles in WordPress](https://discourse.roots.io/t/an-acorn-package-for-managing-user-roles-in-wordpress/28896)

<div class="topic-metadata">

**Author:** [@SimonvanWijhe](https://discourse.roots.io/u/SimonvanWijhe)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 11:00pm UTC](https://discourse.roots.io/t/an-acorn-package-for-managing-user-roles-in-wordpress/28896 "2024-11-26T23:00:21Z")

</div>

Hello! First, thank you to everyone involved in the development of Bedrock, Sage and Acorn. Working with Laravel in WordPress has been really enjoyable! I’m excited to introduce wp-user-roles, a new Acorn package we’ve…

---

## [Fatal error: Declaration of Illuminate\\Console\\Application::add (WP CLI)](https://discourse.roots.io/t/fatal-error-declaration-of-illuminate-console-application-add-wp-cli/28913)

<div class="topic-metadata">

**Author:** [@Alexandr\_Yarovikov](https://discourse.roots.io/u/Alexandr_Yarovikov)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 4:05pm UTC](https://discourse.roots.io/t/fatal-error-declaration-of-illuminate-console-application-add-wp-cli/28913 "2024-11-22T16:05:45Z")

</div>

Hi there. I’v got this error after upgrade packages. Seems this is related with symfony/console v7+. I use wp cli with php-stubs/wp-cli-stubs package public function boot(): void { if (defined(‘WP\_CLI’) && WP\_CLI) …

---

## [Routes in web.php Not Working After Migrating to Acorn 4 – Looking for Insights](https://discourse.roots.io/t/routes-in-web-php-not-working-after-migrating-to-acorn-4-looking-for-insights/28919)

<div class="topic-metadata">

**Author:** [@bantunesm](https://discourse.roots.io/u/bantunesm)\
**Replies:** 0\
**Last updated:** [November 19, 2024, 7:46pm UTC](https://discourse.roots.io/t/routes-in-web-php-not-working-after-migrating-to-acorn-4-looking-for-insights/28919 "2024-11-19T19:46:00Z")

</div>

Hi everyone, I couldn’t identify the root cause, but for some reason, routes defined in web.php stop working after migrating to Acorn 4. Here’s a workaround you can use: add\_action('template\_redirect', functio…

---

## [Steps to use Livewire with Acorn 4.0](https://discourse.roots.io/t/steps-to-use-livewire-with-acorn-4-0/26668)

<div class="topic-metadata">

**Author:** [@dsturm](https://discourse.roots.io/u/dsturm)\
**Replies:** 12\
**Last updated:** [November 13, 2024, 9:32am UTC](https://discourse.roots.io/t/steps-to-use-livewire-with-acorn-4-0/26668 "2024-11-13T09:32:53Z")

</div>

Hej, since roots/acorn:4.0 we have official support forlivewire/livewire (Enhanced Router Compatibility (Including Livewire Support) And Filters For Early Service Container Overrides by broskees · Pull Request #291 · ro…

---

## [How to register a middleware?](https://discourse.roots.io/t/how-to-register-a-middleware/28803)

<div class="topic-metadata">

**Author:** [@maximeF](https://discourse.roots.io/u/maximeF)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 9:22am UTC](https://discourse.roots.io/t/how-to-register-a-middleware/28803 "2024-11-13T09:22:24Z")

</div>

Hi, is it possible to use the HTTP middlewares in Acorn and if so, how do I register it? I see that there is a wp acorn make:middleware command which creates a Middleware file, but I don’t know how to register it. Th…

---

## [Acorn v4 & v5 Router Fix for Response Codes](https://discourse.roots.io/t/acorn-v4-v5-router-fix-for-response-codes/28890)

<div class="topic-metadata">

**Author:** [@Log1x](https://discourse.roots.io/u/Log1x)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 12:27am UTC](https://discourse.roots.io/t/acorn-v4-v5-router-fix-for-response-codes/28890 "2024-11-07T00:27:11Z")

</div>

We’ve just released a fix for Acorn addressing an issue where the HTTP response on WordPress routes could incorrectly return a 200 status, even when another status code such as 404 is expected. Affected Versions This bu…

---

## [acorn v4.3.1 released](https://discourse.roots.io/t/acorn-v4-3-1-released/28888)

<div class="topic-metadata">

**Author:** [@QWp6t](https://discourse.roots.io/u/QWp6t)\
**Replies:** 0\
**Last updated:** [November 6, 2024, 10:37pm UTC](https://discourse.roots.io/t/acorn-v4-3-1-released/28888 "2024-11-06T22:37:06Z")

</div>

acorn v4.3.1 released What’s Changed :technologist: Group templates by name for block themes by @ssang in Ensure WordPress template hierarchy is intact for hybrid themes by ssang · Pull Request #390 · roots/acorn · Git…

---

## [acorn v5.0.0-beta.1 released](https://discourse.roots.io/t/acorn-v5-0-0-beta-1-released/28887)

<div class="topic-metadata">

**Author:** [@QWp6t](https://discourse.roots.io/u/QWp6t)\
**Replies:** 0\
**Last updated:** [November 6, 2024, 10:16pm UTC](https://discourse.roots.io/t/acorn-v5-0-0-beta-1-released/28887 "2024-11-06T22:16:05Z")

</div>

acorn v5.0.0-beta.1 released What’s Changed :adhesive\_bandage: Ensure WordPress template hierarchy is intact for hybrid themes by @ssang in Ensure WordPress template hierarchy is intact for hybrid themes by ssang · Pul…

[Previous page](https://discourse.roots.io/c/acorn/23.md)

[Next page](https://discourse.roots.io/c/acorn/23.md?page=2)
