I tried to use angular-chart. I've put Chart.min.js before angular-chart.min.js. Also I've checked those file at my root project. This is the dependency:
<script src="/bower_components/chart.js/dist/Chart.min.js"></script>
<script src="/bower_components/angular-chart.js/dist/angular-chart.min.js"></script>
But it produces an error:
(index):72 GET
http://localhost:5000/bower_components/chart.js/dist/Chart.min.js 404
(Not Found) (index):74 GET
http://localhost:5000/bower_components/angular-chart.js/dist/angular-chart.min.js
404 (Not Found)
Related
I have a page generated by Flutter-Web shops and it is a blank page. And I have an error in the console. This happened after uploading the build web of Flutter into GitHub Pages.
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://adamtechnologynl.github.io/') with script ('https://adamtechnologynl.github.io
/flutter_service_worker.js?v=2470069411'): A bad HTTP response code (404) was received when fetching the script.
manifest.json:1 Failed to load resource: the server responded with a status of 404 ()
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
manifest.json:1 Failed to load resource: the server responded with a status of 404 ()
(index):88 Failed to load app from service worker. Falling back to plain <script> tag.
(anonymous) # (index):88
(index):47 GET https://adamtechnologynl.github.io/main.dart.js net::ERR_ABORTED 404
loadMainDartJs # (index):47
(anonymous) # (index):91
I found the solution. This happens when you have put it another directory instead of the root of the GitHub.
So my code is in "https://username.github.io/demo/book-king/belasting-web-v1/" so that last part we should append everything after "https://username.github.io/" also in the index.html. You can solve it by modifying the line (number 17 by me):
Change:
<base href="/">
into:
<base href="/demo/book-king/belasting-web-v1/">
And then you are done.
This solution works. But for me, line no 17 was not <base href="/">.
It was like this <base href="$FLUTTER_BASE_HREF">. Given that FLUTTER_BASE_HREF is a variable, it can be modified.
How?: Provide --base-href argument to flutter build like below
HostingURL : https://<github_user_name>.github.io/project_aj/demo/gh-pages/
Apart from the https://<github_user_name>.github.io should go as the value for --base-href
flutter build web --base-href=/project_aj/demo/gh-pages/
in CakePHP v3.2.12
I get GET http://test/debug_kit/js/toolbar.js 404 (Not Found)
When I try this:
cd webroot
ln -s ../vendor/cakephp/debug_kit/webroot debug_kit
I get this:
toolbar.js:53 GET http://test/debug_kit/toolbar/b977c7b2-a414-4970-8ac3-ef48e3e8982e 404 (Not Found)
I found out I was missing AllowOverride All from my .conf file stated in the CakePHP documentation
Hello i'm trying to render my html page with thymeleaf but it fails to load the .js file. I'm using spring-boot and my file structure is src/main/resources/templates this contains all my html files. My css files are located in src/main/resources/static/css/. My .js files are located in src/main/resources/js/.
Now i tried rendering my guest.html file but it's failing to load resources as i tried inspecting the element on chrome and it displays error message below:
http://localhost:8080/js/bootstrap-formhelpers.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/js/bootstrap.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
Below is the issue in my guest.html file that fails to locate the resources:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" th:src="#{https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js}" ></script>
<script src="../js/bootstrap.min.js" th:src="#{js/bootstrap.min.js}"></script>
<script src="../js/bootstrap-formhelpers.min.js" th:src="#{js/bootstrap-formhelpers.min.js}"></script>
Spring Boot does not serve static content from src/main/resources by default. It serves content from the following classpath locations:
classpath:/META-INF/resources
classpath:/static
classpath:/resources
classpath:/public
Therefor, src/main/resources/static/css is served, but not src/main/resources/js/.
Move the js directory to the src/main/resources/static directory to have it served. Another option is to add a resource handler:
#Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/js/**")
.addResourceLocations("classpath:/js/");
}
You can also override the spring.resources.staticLocations property.
More information about serving static content with Spring Boot can be found in the Spring Boot Documentation: Static Content.
I used 'view source page' and took all the html from the this example on the bootstrap website: http://getbootstrap.com/examples/carousel/
It runs smoothly on my localhost using Django except for one small thing. That Gray Box within the sliding carousel doesn't appear? Oddly, if I put all the html into JSfiddle it's also missing.
I've included the CSS and works perfectly for everything else on the page:
<link rel="icon" href="../../favicon.ico">
<link href="carousel.css" rel="stylesheet">
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
So my django page looks exactly like this: http://jsfiddle.net/yU9zE/1/
Funkylaundry has identified that some of the css isn't loading for some reason. He found this warnings/errors using a debugging tool called firebug:
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/1/show/carousel.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/dist/css/bootstrap.min.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/ie10-viewport-bug-workaround.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/ie-emulation-modes-warning.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/dist/js/bootstrap.min.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/docs.min.js
I'm not sure what to do because I'm new bootstrap and I usually just use a simple external css file. Should i be seeing new css files in my assets folder on django too? Becuase I don't. I'd love to get the gray box to appear, but I'm stumped.
It seems you did not hook your assets right (i.e. the carousel.css is never loaded). If you check your developer tools/firebug or whatever you're using you will see a bunch of 404s:
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/1/show/carousel.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/dist/css/bootstrap.min.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/ie10-viewport-bug-workaround.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/ie-emulation-modes-warning.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/dist/js/bootstrap.min.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://fiddle.jshell.net/yU9zE/assets/js/docs.min.js
I have a problem which I have no clue how to solve. I have a joomla site which looks like working perfect (http://secretinvizimals.com/). There is only one page which fails - my add new article page.
Here is a link to my problem: http://secretinvizimals.com/index.php/contribute
You might need to login first with these credentials: Username: StackOverflow password: StackOverflow
you can log in on the mainpage at the top: http://secretinvizimals.com/
Just very short: The problem is that the page comes out with no style:
Does anyone have an idea of where I can start with this - or maybe a solution?
Here comes some faqs about my joomla site:
Joomla version 2.5.7
Custom theme developed in Artisteer 4.0
I hope you can help me.
BR
Firebug/Chrome Developer Tools state that your missing the editor.css file. Which is the style sheet for editing stuff. The link its looking for it is here:
http://secretinvizimals.com/index.php/skins/kama/editor.css?t=C3HA5RM
Although there is no file there - judging by the other links I'm guessing this was an old template or something?? You either need to change the file location if it does exist in another location or you need to create a file for it and put in the standard stuff.
Chrome developer tools is also finding half a dozen errors
<error> index.php:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/config.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/skins/kama/editor.css?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/lang/en-gb.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/linkBrowser/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/mediaembed/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/readmore/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/plugins/tableresize/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/plugins/autogrow/plugin.js?t=C3HA5RM
Uncaught [CKEDITOR.resourceManager.load] Resource name "linkBrowser" was not found at "http://secretinvizimals.com/index.php/../plugins/linkBrowser/plugin.js?t=C3HA5RM". index.php:1519
Uncaught RangeError: Maximum call stack size exceeded (x10)
Uncaught RangeError: Maximum call stack size exceeded index.php:1654 (x2)
Uncaught RangeError: Maximum call stack size exceeded (x6)
Uncaught RangeError: Maximum call stack size exceeded index.php:1654 (x2)
Uncaught RangeError: Maximum call stack size exceeded (x6)
The initial one being to do with the fact there is no doctype, html declaration or anything at the top of your page. Which is a bit more confusing. I'd have to assume that this was some kind of template issue. But obviously its a lot harder to test something like that from the outside access. Have you tried turning on the Joomla debug feature to see whats going on?