Website errors when viewing local build in v21

Post here questions and problems related to editing and publishing DITA content.
cfurlin
Posts: 9
Joined: Wed Nov 02, 2016 1:48 am

Website errors when viewing local build in v21

Post by cfurlin »

In v21, I see strange behavior in my output (mobile buttons, etc.) and inspecting the page in my browser shows the follwing errors:

Code: Select all

[Error] Not allowed to load local resource: file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/css/bootstrap-theme.min.css (index.html, line 31)
[Error] Not allowed to load local resource: file://www.google-analytics.com/analytics.js
(anonymous function) (index.html:49)
Global Code (index.html:50)
[Error] Not allowed to load local resource: file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/js/bootstrap.min.js
[Error] Not allowed to load local resource: file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/css/bootstrap.min.css.map
[Error] Not allowed to request resource
[Error] Cannot load file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/css/bootstrap.min.css.map due to access control checks.
[Error] Not allowed to load local resource: file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/js/bootstrap.bundle.min.js.map
[Error] Not allowed to request resource
[Error] Cannot load file:///Users/cfurlin/Build/out/webcontent/oxygen-webhelp/lib/bootstrap/js/bootstrap.bundle.min.js.map due to access control checks.
None of these errors occur when I build and view locally (from the same directory) in v20.

Anyone know what might be causing this?

EDIT: From what I can tell, it must be a difference between using DITA-OT2.x and DITA-OT3.x but for the life of me I don't know what I need to change to fix the issue.
cosmin_andrei
Posts: 138
Joined: Mon Jun 12, 2017 10:50 am

Re: Website errors when viewing local build in v21

Post by cosmin_andrei »

Hello,

Thank you for contacting us!

To further investigate this issue, could you please try in a clean installation of Oxygen XML with the built-in DITA-OT on our sample project flowers.ditamap to check if you reproduce the problem.

Also, please try this procedure on your project and check if the problem persist.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
cfurlin
Posts: 9
Joined: Wed Nov 02, 2016 1:48 am

Re: Website errors when viewing local build in v21

Post by cfurlin »

Sorry for the late reply.

I did solve the issue. I'm using a custom template I created and hadn't refactored it for v21. Once I did that, everything built just fine.
Post Reply