# Back office not loading correctly

**URL:** <https://forum.litium.com/t/back-office-not-loading-correctly/727>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [March 19, 2019, 12:59pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727 "2019-03-19T12:59:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.kraft](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@david.kraft](https://forum.litium.com/u/david.kraft)\
**Post date:** [March 19, 2019, 12:59pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/1 "2019-03-19T12:59:51Z")

</div>

We are setting up a fresh development environment at the moment, and everything seems to work just fine locally. The problem arises when logging in to the back office (no problems) and clicking on any of the links. The client gets stuck in the loading, and looking at what requests the browser sends it seems to be missing the call for the token. Nothing seems to be odd about the requests that are sent, and 200-responses all across the board. Nothing suspicious in the logs either.

I compared the js-file that is supposed to send the request with my local machine and the dev-server and they are identical (and not modified by us).

So, what are we missing?

Litium version: 7

---

<div class="post-metadata">

**Author:** ![ton.nguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ton.nguyen/32/989_2.png) [@ton.nguyen](https://forum.litium.com/u/ton.nguyen)\
**Post date:** [March 19, 2019, 2:11pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/2 "2019-03-19T14:11:21Z")

</div>

Do you have any 404 or 500 request for .js files? Please check if the browser can load app.js or litium-element.js files.

---

<div class="post-metadata">

**Author:** ![erik.jorpes](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@erik.jorpes](https://forum.litium.com/u/erik.jorpes)\
**Post date:** [March 20, 2019, 10:42am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/3 "2019-03-20T10:42:44Z")

</div>

Hi. Thanks for input Ton

as far as I can see 200 OK on all script files in the browser-developer-network tab. when loading the empty /litium back office UI.

![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/fd8db42736aecabd8ebf293a66a2bf4178067e1d.png)

When clicking on the GEAR (top right) it just hanging…

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/e785715584e4d8aa06eeee0925434e805c699185.png)

---

<div class="post-metadata">

**Author:** ![erik.jorpes](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@erik.jorpes](https://forum.litium.com/u/erik.jorpes)\
**Post date:** [March 20, 2019, 10:45am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/4 "2019-03-20T10:45:13Z")

</div>

However, in the Console it is caught an exception

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/92a99aa27b10a7b23d3c72083aae70f2f6e0b16e.png)

Does this help you to lead us to a solution?

Thanks

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 20, 2019, 10:57am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/5 "2019-03-20T10:57:13Z")

</div>

Do you have any other errors when it should load resources if you turn off the filter so all files will be visible?

Can you select any other module in the hamburger-menu or will you always get this loading page and nothing more?

---

<div class="post-metadata">

**Author:** ![erik.jorpes](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@erik.jorpes](https://forum.litium.com/u/erik.jorpes)\
**Post date:** [March 20, 2019, 11:36am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/6 "2019-03-20T11:36:28Z")

</div>

Hi Patrik.

Thanks for reply.

from HamburgerMenu I can go to:

- products
- sales

But, spinning dooughnut hanginng on:

- websites
- customers
- media

![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/749104815ebbeff19ba72693c760f5c451343f2f.png)

From the network tab, all resources 200 OK. But again, when hit the (for example) customers: bootstrap:78 Uncaught TypeError: Cannot read property ‘call’ of undefined

So something with webpack…

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/11b9a6f1a35a6deb927ccee4d6ab24d074d40bce.png)

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 20, 2019, 11:52am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/7 "2019-03-20T11:52:41Z")

</div>

What is the exact version number you have on your `Litium.Setup.Core` nuget-packages? Is it a default accelerator based on the same version?

---

<div class="post-metadata">

**Author:** ![david.kraft](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@david.kraft](https://forum.litium.com/u/david.kraft)\
**Post date:** [March 20, 2019, 2:48pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/8 "2019-03-20T14:48:37Z")

</div>

Hello again!

The exact version is 7.10.

Using the debugging tools in the browser, it seems to be lacking a certain “1.js” file, resulting in an exception. This happens in the bootstrap file, line 78 (function **webpack\_require** (moduleId)).

It seems like we solved the issue; scripts where being copied to “…\Litium\Client\Scripts\dist” and changing this to “…\Litium\Client\Scripts” solved the issue.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 20, 2019, 4:49pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/9 "2019-03-20T16:49:27Z")

</div>

Can you explain more what you were changing to get it to work?

The scripts that are in that folder is bundled with the product and you should not be able to change them so interested in what you were doing.

---

<div class="post-metadata">

**Author:** ![david.kraft](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@david.kraft](https://forum.litium.com/u/david.kraft)\
**Post date:** [March 21, 2019, 7:26am UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/10 "2019-03-21T07:26:55Z")

</div>

Ah, I was a bit unclear about that.

It is when the files are being copied by the publish script, not the normal build process. Hence the discrepancy between running locally and on the server.

---

<div class="post-metadata">

**Author:** ![PontvsXlent](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@PontvsXlent](https://forum.litium.com/u/PontvsXlent)\
**Post date:** [March 21, 2019, 12:14pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/11 "2019-03-21T12:14:56Z")

</div>

Have you checked this out (Don’t let the link title fool you)? [Edit websitestrings in litium /](https://forum.litium.com/t/edit-websitestrings-in-litium/308/11?u=pontvsxlent)

---

<div class="post-metadata">

**Author:** ![david.kraft](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@david.kraft](https://forum.litium.com/u/david.kraft)\
**Post date:** [March 21, 2019, 12:30pm UTC](https://forum.litium.com/t/back-office-not-loading-correctly/727/12 "2019-03-21T12:30:09Z")

</div>

That was news for me at least.

Will have a look at it, thanks!
