FAQ Database Discussion Community


Grails tag actionSubmit causes 404 error

java,forms,grails,http-status-code-404
I'm using the grails tags form and actionSubmit and I'm getting a 404 error when submit (I am using Grails 2.3.7). At view write.gsp: <g:form action="send"> <g:actionSubmit value="test1"/> <input type="submit" value="test2"/> </g:form> and when the view is rendered, it results in: <form method="post" action="/messaging/send"> <input type="submit" value="test1" name="_action_test1"> <input type="submit"...

PHP - How can i make php to show webservers 404 error page on header 404?

php,html,error-handling,http-status-code-404
I am using PHP for scripting, and sometimes I need to throw a "404 Not Found" status message. I have tried this: <?php header($_SERVER['SERVER_PROTOCOL']." 404 Not Found"); header("Location: 404.html"); exit(); ?> But it's redirecting the user to the 404.html page and I don't think it's good practice to do so....

style.css not found on this server [closed]

php,html,css,http-status-code-404
I'm working on a php-project that i just uploaded to my server online : see my project On localhost everything seems fine, but when uploaded to server, there is no styling. The file style.css is present on the ftp.server and when inspecting the element both in Chrome and FF they...

Google App Engineer, I can not find my css and js files by config static_dir

python,google-app-engine,http-status-code-404,app.yaml
my files directories is: helloboard: |--bower_components | |--jquery | |--lotsof.js |--css | |--app.css |--js | |--app.js | |--someother.js |--app.yaml |--index.html |--main.py My app.yaml is: application: helloboard version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: - url: /.* script: main.app - url: /css/* static_dir: css expiration: "364d" - url: /js...

Getting 404 when switching to production with yii framework

php,yii,http-status-code-404,production-environment
i'm using yii framework to develop, everything works fine when i was in development. This morning I added a new route and push it to the server but i can't access it, i got a 404 page not found. I try to change access rules to make it accessible by...

Ionic + Angular - How to avoid the “404 Not Found (from cache)” after POST request?

javascript,php,angularjs,post,http-status-code-404
this question is partly pointing to my previous question : Ionic + Angular POST request return state 404 But i wasn't able to find working solution. Problem is following: if I do request from the mobile app running on the device i always get response 404: Request Method:POST Status Code:404...

How to use language properties with Spring MVC 4 and jQuery I18N?

javascript,jquery,spring-mvc,internationalization,http-status-code-404
I'm developing a web app with Spring MVC 4 and jQuery I18N. I have already checked the following links without success: How to dynamically change language using jquery-i18n-properties and JavaScript? How to load i18n Property file using jQuery.i18n.properties.js + Spring 3 mvc But when I access to the page, I'm...

Flask app returning 404 in Xampp

python,apache,flask,http-status-code-404
I currently have my files structured as: /xampp/code/menumaster_project menumaster __init__.py menumaster_app.py sqltables.py In my Apache httpd.conf file I have: <IfModule wsgi_module> <VirtualHost *:8081> WSGIScriptAlias /myapp C:/xampp/htdocs/flaskapp/flask.wsgi <Directory C:/xampp/htdocs/flaskapp> Order allow,deny Allow from all </Directory> </VirtualHost> </IfModule> flask.wsgi import sys sys.path.insert(0, 'C:/xampp/code/menumaster_project') from menumaster import app as application The file that...

website 404 error from external webbrowser

xampp,http-status-code-404,external
I can't get access to my website from external over the ip adress. this works: localhost/my_website // shows my web_site https://IP-adress/ // I see xampp startpage this doesn't work: https://IP-adress/my_website //-> I get 404 error when i add to the httpd.config file "listen 443" or "listen 80" the server doesn't...

404 on weblogic hello world application

weblogic,http-status-code-404
I'm trying to run a simple hello world web application to make sure I've got the structure of everything right. Here's what I've got: ear_test.ear ear_test.ear/META-INF ear_test.ear/META-INF/application.xml ear_test.ear/META-INF/MANIFEST.MF ear_test.ear/META-INF/weblogic-application.xml ear_test.ear/test_web_project_1.war ear_test.ear/test_web_project_1.war/META-INF ear_test.ear/test_web_project_1.war/META-INF/MANIFEST.MF ear_test.ear/test_web_project_1.war/WEB-INF/classes ear_test.ear/test_web_project_1.war/WEB-INF/lib...

Spring security username not displayed on error page which value is not specified

spring,spring-security,http-status-code-404
This is my error handler controller. it goes to the 404 page when links/urls does not exist. Im also using spring security. Basically, when user logs in, the username of the user will be displayed. But if the user mistypes or typed the wrong url/link, it displays the 404 error...

Best practice for 404 page for API

json,api,rest,http-status-code-404,httpresponse
I am writting REST API now. I faced with one problem - how 404 page in api should look like. Of course it will be better to show user link to the API documentation. But what about page in general. Should it be beautiful page or just simple text also...

Error 404: cordova-plugin-file when trying to install cordova-plugin-zip for iOS

ios,cordova,plugins,registry,http-status-code-404
When trying to install the cordoba-plugin-zip using: cordova plugin add https://github.com/MobileChromeApps/zip.git as documented (https://github.com/MobileChromeApps/cordova-plugin-zip), I get the below 404 error message. Has the cordova-plugin-file its trying to reference been moved? How can I tell the plugin to look for it elsewhere if so? Installing "cordova-plugin-zip" for ios Fetching plugin "cordova-plugin-file"...

Symfony “No route found for ”GET /check.php" fresh install

php,symfony2,http-status-code-404,symfony-2.7
I've just installed Symfony 2.7. I've started my app from the command line with: $ php app/console server:run I installed XAMPP to run PHP. The following pictures show my localhost:8000/config.php and localhost:8000 pages. Config ! Main page ! EXACT SOLUTION: _blog: path: / defaults: { _controller: AppBundle:Default:index } Where: path...

HTTP 404 Java Servlets

java,servlets,http-status-code-404
I get this error when I click on submit HTTP Status 404 - /GradeRetrieval/DbConnection type Status report message /GradeRetrieval/DbConnection description The requested resource is not available. This is the form tag, my HTML form has a submit button. <form action="../DbConnection" method="post"> This is my directory structure This is my webxml...

Linux Server deployed JSP - Http 404 the requested resouce is not available

linux,jsp,tomcat,servlets,http-status-code-404
I am working on a web based project in eclipse on a system with jre 1.8 and Tomcat 8. My application works fine on my system. Now I have to deploy my application on a linux server machine.. As I am a novice I am facing some difficulties. My server...

How to catch and redirect rails routes that are valid, but invalid resource id?

ruby-on-rails,redirect,path,routes,http-status-code-404
match '*path' => redirect('/'), via: :all if Rails.env.production? handles things nicely, but it doesn't properly catch cases like this /root.com/articles/293 where 293 is an article id that doesn't exist in the database. In this case, it still redirects to the default 404 page, which on heroku is the ugly "something...

Ionic / Leaflet - Can't get Tiles 404 Not Found (from cache)

http-status-code-404,ionic-framework,leaflet,ionic,angular-leaflet-directive
I'm locked with an issue that is very odd. I'm using leaflet with angular-leaflet-directive. On the previous app, everything worked. Now on a new app, I'd like to implement a new leaflet map. I have therefore copied my previous code. My Issue is that, the leaflet map opens, my markers...

Phonegap Cordova Ajax requests 404 (Not Found) Error

jquery,ajax,cordova,http-status-code-404
My cordova version is 5.0.0 I am getting a 404 error for the all ajax request made when the app is deployed on the device. On the web browser, it works fine but same app when deployed on a device does not work. I tried adding following to solve the...

The requested URL was not found on this server. Django

python,django,http-status-code-404
I try to write the comment on page and then instead redirect on page I have the empty window in browser and [b'<h1>Not Found</h1><p>The requested URL /post/add_comment/test_single_post/ was not found on this server.</p>'] and AssertionError: 404 != 302 in terminal log. I can't understand why page is not found (404)...

report error 404 by email with last accessed URL

php,jquery,email,http-status-code-404,http-referer
I'm making a page 404 with button for user report that site have a problem. The idea is when user click on button, I receive a email with information of the last page accessed... The problem is that I'm using the php variable '$_SERVER['HTTP_REFERER']' and this ever return a null...

404 Not Found error with streamsend API when trying to Import

api,stream,http-status-code-404
I successfully uploaded a file to StreamSend got the upload ID. Using the upload id i am trying to import the details. Below is the URL i am using https://app.streamsend.com/audiences/1/imports Below is the XML i am posting to the above URL <import> <reactivate>false</reactivate> <lists>7</lists> <upload-id>{17}</upload-id> <separator>Tab</separator> <columns> <column>email_address</column> </columns> </import>...

Http 404 Not Found error

asp.net-mvc,http-status-code-404
I have created a number of controllers and each of them returns a number of views. The views get displayed successfully on the browser upon entering the url, for example: /localhost:21419/Accounting/Index There is no problem with displaying views for any of the controller views except one(named OrderController) For this OrderController,...

Twitter Login Stopped Working “sorry, that page doesn't exist”

ios,twitter,parse.com,http-status-code-404,fabric.io
I'm logging users in with twitter using the PFTwitterUtils loginWithBlock: method. This has always worked fine and the name of my app appears above the username and p/w ready for user input. However, recently (which may or may not correspond to installing Fabric.io) the modal display that appears, after entering...

Simple search gives 404 page for results

search,http-status-code-404
EE2.9.2. Simple search form: {exp:search:simple_form channel="home|about|network|community|pages|people|news" search_in="entries" result_page="search/results" form_id="search_form"} <input type="text" name="keywords" id="search" placeholder="Search" /> {/exp:search:simple_form} Results page: <h2>Search results for &ldquo;{exp:search:keywords}&rdquo;</h2> <p>Your search returned {exp:search:total_results} results.</p> {exp:search:search_results} {if count == 1} {/if} <h3><a href="{if...

URL is broken in Apache HTTPS

apache,.htaccess,http-status-code-404
I have a problem where all the links in my site are broken when the site is in https. Anyway what I need to do is redirect all request from http to https so I added the code below in .htaccess. # Redirect from http to https. RewriteCond %{HTTPS} off...

HTTP 404 error - in simple Struts2 application

java,eclipse,tomcat,struts2,http-status-code-404
A simple hello world application is showing http-404 error. I am using the tools below: 1) Eclipse Luna 4.4 2) Apcache tomcat 7.0 3) JDK 7 Application structure Am I missing any jar files ??? index.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">...

Wordpress - Page renders fine, Web Sniffer returning HTTP Response Header 404

wordpress,header,http-status-code-404
I hope someone can help, I've been going round and round in circles. I've tried calling my host 1and1 they basically told me it's nothing to do with them. All my Wordpress pages render fine to the eye of the user. However if I use http://web-sniffer.net and put any page...

Custom error pages based on path/URL in ASP.NET

c#,asp.net,web-config,http-status-code-404,global-asax
I have some pages in /panel/ directory and some in /website/ directory. I need two different 404 pages for these pages based on their path, because these directories have different master pages. when I use customErrors in web.config file, it redirects all pages to one 404 page so it's useless...

Receive 404 error from url in Android

android,url,http-status-code-404
I want receive the 404 error from url, but the code that I use always produce an error: public String getRespond(String request) { try{ URL url=new URL (request); URLConnection connection=url.openConnection(); InputStream in=new BufferedInputStream(connection.getInputStream()); Scanner scanner =new Scanner(in); String response=scanner.nextLine(); scanner.close(); return response; } catch (Exception e){ return null; } }...

NodeJS res.sendFile not sending images or directorys

javascript,node.js,http-status-code-404
so as said above, i run the html file only and i'm able to see the pictures, but when i run the file via node it sends me a 404 error on the file i used. <html> <body> <img src="aaa.jpg" /> <script src="/socket.io/socket.io.js"> </script> <script src="http://code.jquery.com/jquery-1.11.1.js"></script> <script> </script> </body> </html>...

SignalR on hosting - virtualdirectory/signalr/hubs shows Error 404

c#,asp.net,signalr,http-status-code-404,web-hosting
I have a SinglaR app (empty web application without any global.asax and RouteConfig) which works well. http://localhost:62673/signalr/hubs shows 'ASP.NET SignalR JavaScript Library v2.2.0' javascript and it is working (I use Winforms client, not the javascript one). But when I deploy it to the webhosting (virtual directory), on the address http://myhosting.xxx/virtualdirectory/signalr/hubs...

Django can't show images on page

python,django,http-status-code-404
I'm desperatly trying to load some images to and from my database with the help of Django. Loading seems to work, but getting them back from the database and showing them on a webpage doesn't seem to work. Here some info: Environment: myproject |_forpix(my app) |_myproject |_media |_images |_mimicry3.png I...

Is there a 301 wildcard match?

.htaccess,redirect,http-status-code-404,http-status-code-301
I am having great difficulty fielding all the 301 redirects that seem to be needed following a complete site redesign. Entire sub-directories and their extensive content no longer exist. If, for example, 'myolddata' was a folder that no longer exists, and was full of countless files that each no longer...

Laravel 5.0 custom 404 does not use middleware

laravel,http-status-code-404,middleware
I'm using a middleware to parse the output of the templates. This is working fine for all pages. However when I want to show a 404 (got a custom page for that) it doesn't treat it as a http request (that's what I think) since it doesn't go through the...

Java config /j_spring_security_check not found

java,spring,spring-security,http-status-code-404,j-security-check
I'm a noob to Spring framework. Trying to configure security options for the app. I have following as my (xml-less) security config: @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired @Qualifier("accountService") UserDetailsService userDetailsService; @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()); } @Override protected void configure(HttpSecurity http) throws...

404 page not found - Go rendering css file

html,css,templates,go,http-status-code-404
I'm currently working in Go. I created a web server on my local machine. I followed the instruction on this page Rendering CSS in a Go Web Application but I'm still getting the 404 error that the program can't seem to find where my css file is. My directory is...

Flask Application - How to link a javascript file to website

javascript,html,flask,http-status-code-404
I am having some trouble getting started with using javascript files on my website (A Flask application). I start the website by running run.py which looks like this: #!flask/bin/python from app import app app.run(debug=True) In my html page I have the following code which gives a 404 error: Error message:...

Docker 1.6 and Registy 2.0

search,docker,http-status-code-404,docker-registry
Has anyone tried successfully the search command with docker 1.6 and new registry 2.0. I've set mine up behind nginx with SSL, and so far I it is working fine, I can push, pull images without problems. But when I try search for it all these command give 404 response......

Django Basics: 4.5 Mappings… Page not found (404)

python,django,http-status-code-404
forgive me but I am a complete newbie to Django and Python. I am going through the 'Django Basics' tutorial (http://www.tangowithdjango.com/book17/chapters/setup.html) I have completed up to the 4.5 Mappings section, and here is my code, identical to the site's tutorial code: from django.conf.urls import include, url, patterns from django.contrib import...

Django Page not found using complete url

python,django,views,http-status-code-404
im new at Django and im trying to write a very simple app, however i got stuck and have a couple of questions: First my app is called "empleados" (spanish) and I am trying to create a simple index view which shows all the entries from my table, i can...

How to pass custom message into 404 blade in Laravel 5

http-status-code-404,laravel-5
In a certain route, if a cat cannot be found by its id, I return a 404 with a custom message: App::abort(404, 'Invalid cat id'); I want to pass custom messages like the one above into Laravel's 404 blade but I cannot figure out how to get this message into...

Make dynamic links (with ?) return error 404 not found

apache,.htaccess,dynamic,hyperlink,http-status-code-404
Using .htaccess (are there any other solutions?) is there a way to make all dynamic links (links containing the sign ?) of a site return a 404 not found response header? For example: http://www.example.com/?bla_bla - will return 404 http://www.example.com/test/index.html?no_redirect=true - will return 404...

Angular map file not found

angularjs,google-chrome,dictionary,http-status-code-404
I've just downloaded a fresh copy of angular.min.js, and I'm getting a 404 on angular.min.js.map, which I'm not including in my code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" /> </head> <body> <script type="text/javascript" src="js/angular.min.js"></script> </body> </html> The error in Chrome: GET http://angular.dev/js/angular.min.js.map 404 (Not Found) ...

(Spring MVC) Upload multipartfile method POST returns 404 error

spring-mvc,post,controller,http-status-code-404,multipart
I have a Spring application with an update file form: <form class="form-inline" role="form" method="POST" enctype="multipart/form-data" action="<c:url value="upload" />"> <div class="form-group"> <label class="control-label"> <spring:message code="file.to.upload"/> </label> </div> <div class="form-group"> <input type="file" name="file" id="file" class="btn btn-primary"> </div> <div class="form-group"> <input type="submit" class="btn btn-primary"...

What HTTP Response code to return for urls containing " or %22?

html,error-handling,http-status-code-404,rfc,http-status-code-400
Per http://tools.ietf.org/html/rfc7230#section-3.1.1 recipients of an invalid request-line SHOULD respond with a 400 - Bad Request. Thus as per the RFC, the request, GET /cat".html HTTP/1.1 should return 400. I've written a server that will return just that upon detection of a ". Thus a request via telnet to my server...

ASP.NET 4.5 Web Forms Custom 404 Page Best Practice

c#,asp.net,iis-7.5,http-status-code-404,urlrewriter.net
Well, for about one week, I have been searching the web, trying my own solutions and testing the results. But unfortunately I did not end up to the satisfying result that is needed. Problem Details: Using IIS 7.5 The problem is that; either using Response.Redirect(); method or declaring customErrors and...

How to make MVC accept dots in parameters? [duplicate]

c#,asp.net-mvc,model-view-controller,http-status-code-404
This question already has an answer here: Dots in URL causes 404 with ASP.NET mvc and IIS 7 answers I have following route config: routes.MapRoute( name: "Downloads", url: "downloads/{filename}", defaults: new { controller = "Downloads", action = "Index", filename = UrlParameter.Optional } ); and following controller code: public ActionResult...

Firebug shows 404 error for claro_rtl.css, but I can't find the source that is trying to reference that file

css,dojo,http-status-code-404,firebug
I'm in the middle of testing a customized Dojo theme based on the popular claro theme. The new theme is named 'jelam'. I've gone through all the suggested steps for making a new theme based on an existing theme like claro and all seems to be working fine - except...

Angular app throws 404 error on github.io

javascript,angularjs,http-status-code-404
I've written a fairly simple app and put it on github so that it could be viewed on the net. But there seems to be a problem with the urls (or maybe something else!). The only way I managed to make it work on localhost is by using # symbol...

Serve static file without file extension in ASP.net

asp.net,visual-studio,http-status-code-404
I want to imitate a REST-Server (for testing purposes) and therefore want to make some static text files available at certain URLs on localhost. When I try to just put those files in a Visual Studio folder, that is available via HTTP, then I get an error 404.17, saying that...

Handling missing images without jQuery

javascript,html,http-status-code-404
I would like to create a clean solution for handling missing image on the client using <img src="image.gif" onerror="handleErrors()"> so far the handleErrors looks like this: function handleErrors() { image.onerror = ""; image.src = "/images/noimage.gif"; return true; } But I feel this is not scalable enough and the no image...

Docker registry 2.0 API v2

search,curl,docker,http-status-code-404,docker-registry
I pulled and setup the local docker registry:2.0 I have tried pushing an image successfully, but when ever I try searching for an image I get 404: [email protected]:~# curl -v -X GET http://localhost:5000/v2/search * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port...

WebException: The request VB

vba,exception,http-status-code-404
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Navigation..ctor() +269 UrlRewriteModule.Application_BeginRequest(Object source, EventArgs e) +262 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1513 ...

Node express 404 error HTTP status code

node.js,express,http-status-code-404
I have stripped down my node Express application to the bare minimum. I do not even define routes anymore. When I go to any route, e.g. localhost:3000/sdfsdf, I get the expected output: {"message":"Not Found","error":{"status":404}} The HTTP status code of the response however is 200. I expect it to be 404....

No Content matches the given query. (Django)

python,django,http-status-code-404
I am trying to complete a 'Hackernews clone tutorial (Django Unchained by Tuts+) so I can get my head around using Django as I am a noob. However I am currently stuck on creating the points/vote system. Instead of the votes being applied to a specific peice of content I...