# Having trouble moving my SAGE 10 Bedrock site from local to live hosting - wsod

**URL:** https://discourse.roots.io/t/having-trouble-moving-my-sage-10-bedrock-site-from-local-to-live-hosting-wsod/26930
**Category:** sage
**Tags:** sage10
**Created:** 2024-04-02T22:31:04Z
**Posts:** 9

## Post 1 by @SiOliver1976 — 2024-04-02T22:31:04Z

Hi,

I’m very new to SAGE 10 and I’m having some problems moving my site from local to hosting.

I’ve managed to get a simple one page site with ACF created locally, running in MAMP.

I have run yarn build production from inside my theme, and also ran composer install --no-dev from inside the theme.

I then moved all of the files (except the node\_modules and .git files) up to the hosting.

I exported the database from the local site using wp-migrate and set to change to the live domain name. I then imported the db to the hosting.

I edited the .env file so that it contained the details of the hosted db, set it to production and updated the WP\_HOME to be the live domain name.

This has been done inside a subdomain - [https://bm.simon-testing.co.uk/](https://bm.simon-testing.co.uk/)

I’m getting a white screen and I’m unable to log in to the admin, any suggestions of where I’m going wrong?

I have used SAGE 9 previously but I’m struggling a little with SAGE 10!

Thanks in advance for any help :slight_smile:

---

## Post 2 by @csorrentino — 2024-04-03T02:08:33Z

Are there any clues in your logs? The two places I would be checking are `web/app/cache/acorn/logs` and `web/app/debug.log`

You could also probably switch the .env to ‘development’ briefly to see if that exposes an error.

---

## Post 3 by @SiOliver1976 — 2024-04-03T16:16:49Z

Hi, thanks for getting back to me, I had a look in the application log and found the following -

[2024-03-29 15:00:05] development.ERROR: call\_user\_func\_array(): Argument #1 ($callback) must be a valid callback, function “App\your\_action\_hook” not found or invalid function name (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php) (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php) {“userId”:1,“exception”:"[object] (Illuminate\View\ViewException(code: 0): call\_user\_func\_array(): Argument #1 ($callback) must be a valid callback, function "App\your\_action\_hook" not found or invalid function name (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php) (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php) at /Applications/MAMP/htdocs/bancmedia/web/wp/wp-includes/class-wp-hook.php:324)  
[stacktrace]  
#0 /Applications/MAMP/htdocs/bancmedia/vendor/illuminate/view/Engines/PhpEngine.php(60): Illuminate\View\Engines\CompilerEngine-\>handleViewException(Object(Illuminate\View\ViewException), 1)  
#1 /Applications/MAMP/htdocs/bancmedia/vendor/illuminate/view/Engines/CompilerEngine.php(72): Illuminate\View\Engines\PhpEngine-\>evaluatePath(‘/Applications/M…’, Array)  
#2 /Applications/MAMP/htdocs/bancmedia/vendor/illuminate/view/View.php(207): Illuminate\View\Engines\CompilerEngine-\>get(‘/Applications/M…’, Array)  
#3 /Applications/MAMP/htdocs/bancmedia/vendor/illuminate/view/View.php(190): Illuminate\View\View-\>getContents()  
#4 /Applications/MAMP/htdocs/bancmedia/vendor/illuminate/view/View.php(159): Illuminate\View\View-\>renderContents()  
#5 /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/index.php(3): Illuminate\View\View-\>render()  
#6 /Applications/MAMP/htdocs/bancmedia/web/wp/wp-includes/template-loader.php(106): include(‘/Applications/M…’)  
#7 /Applications/MAMP/htdocs/bancmedia/web/wp/wp-blog-header.php(19): require\_once(‘/Applications/M…’)  
#8 /Applications/MAMP/htdocs/bancmedia/web/index.php(7): require(‘/Applications/M…’)  
#9 {main}

I changed the .env to development but no joy I’m afraid, still on the white screen.

---

## Post 4 by @csorrentino — 2024-04-03T16:39:01Z

Are you using a function “App\your\_action\_hook” in your `app.blade.php` view? I would start by searching your files for “your\_action\_hook”. It seems like you might have left something in there that was intended to be renamed.

> [@SiOliver1976](#):
>
> development.ERROR: call\_user\_func\_array(): Argument #1 ($callback) must be a valid callback, function “App\your\_action\_hook” not found or invalid function name (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php) (View: /Applications/MAMP/htdocs/bancmedia/web/app/themes/bancmedia-theme/resources/views/layouts/app.blade.php)

---

## Post 5 by @SiOliver1976 — 2024-04-03T16:53:36Z

I did a search on my entire project and it didn’t find your\_action\_hook anywhere, nothing in the app.blade.php as well, I checked just in case.

It did ring a bell though so I looked it up and the first result is this -

> [@Sage 10: Where is head, body, app, etc?](https://discourse.roots.io/t/sage-10-where-is-head-body-app-etc/20557):
>
> Hi in Sage 10 where I have to put: code for \<head\> (ie. meta for favicons or Google Analytics or other) where I put classes on \<body\> tag how to remove \<div id="app"\> wrapping all? Or is it reccomended to keep it? Thanks

Which I remember trying when I was setting up the site locally.

I can’t find it anywhere in my code though, strange!

Edit: I have the same error in my application log on my local machine, but the local version works ok.

---

## Post 6 by @csorrentino — 2024-04-03T17:02:34Z

Have you tried clearing your view cache? `web/app/cache/acorn/framework/views`. Try deleting that directory just in case something is cached that shouldn’t be

---

## Post 7 by @SiOliver1976 — 2024-04-03T17:16:47Z

I deleted the views folder from web/app/cache/acorn/framework/views but I’m still getting a wsod I’m afraid.

Is there a way to check I’ve got rid of the bug on local first, even though it loads up? I tried clearing out the application.log but it seems to automatically fill up again.

---

## Post 8 by @strarsis — 2024-04-03T17:33:37Z

This applied to older `acorn`/Sage, but it may well be a permissions/ownership issue, to the `cache/acorn` directory in that setup:

> [@Having difficulty deploying bedrock](https://discourse.roots.io/t/having-difficulty-deploying-bedrock/21180/7):
>
> As you are not using Trellis, you have to ensure by other means that the ownerships/permissions are correct. According to a Trellis setup, the storage/ directory should be owned by the web user and the www-data group, and its permissions should be 755 (drwxr-xr-x). In fact, all folders below app/ should have these attributes.

---

## Post 9 by @SiOliver1976 — 2024-04-03T17:45:39Z

Thanks for that, I set the app in public\_html and all files below to 755, is that right?

Still getting the wsod though :frowning:
