[GeoNode-users] Adding layer from GeoExplorer porduces error

David Alda Fernandez de Lezea dalda at hazi.eus
Thu Feb 4 02:33:55 PST 2016

Hi List,

I don’t know why but when I’m trying to add a layer in the geoexplorer interface I get an error 404 a prompt shows: PAGE NOT FOUND  Using fiddler I’ve seen that it fails requesting the url

where puntos_rakel is a previously added shape layer. It also occurs with all geoserver added layers.

The full output from fiddler is

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <link href="/static/lib/css/assets.min.css?v=2.4" rel="stylesheet"/>
      <link href="/static/geonode/css/ext-compatibility.css?v=2.4" rel="stylesheet" />
      <link href="/static/geonode/css/base.css?v=2.4" rel="stylesheet" />
      <style type="text/css">[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}</style>
    <!--[if IE]>
      <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
            display: block !important;
            height: 150px;
            text-align: center;
    <link rel="search" type="application/opensearchdescription+xml" href="/catalogue/opensearch" title="GeoNode Search"/>
  <body class="">

    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          <a class="navbar-brand" href="/">GeoNode</a>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li id="nav_layers">
              <a href="/layers/">Capas</a>
            <li id="nav_maps">
              <a href="/maps/">Mapas</a>
            <li id="nav_documents">
              <a href="/documents/">Documentos</a>
            <li id="nav_people">
              <a href="/people/">Personas</a>
            <li id="nav_groups">
              <a href="/groups/">Grupos</a>
          <form class="navbar-form" id="search" action="/search/" >
            <div class="col-md-3">
              <div class="input-group">
                <input id="search_input" type="text" placeholder="Search" class="form-control" name="title__icontains">
                <span class="input-group-btn">
                  <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button>
          <ul class="nav navbar-nav navbar-right">
              <a href="#" data-toggle="modal" data-target="#UserModal" role="button" aria-expanded="false">
                <img src="http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e/?s=30" alt="u0899jbe" /> u0899jbe
        </div><!--/.nav-collapse -->

    <div class="alert alert-danger alert-dismissible" role="alert" id="ieflag" style="display:none">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
      <h1>You are using an outdated browser that is not supported by GeoNode.</h1>
      <p>Please use a <strong>modern browser</strong> like Mozilla Firefox, Google Chrome or Safari.</p>

  <div id="wrap">
    <div class="container">
      <div class="alert alert-warn" id="status-message" hidden="hidden">
    <a class="close" onclick="$('.alert').hide()">×</a>
    <strong><p id="status-message-text">Placeholder for status-message</p></strong>  
    <p id="status-message-text-body">Placeholder for status-message-body</p>



      <div class="row">
        <div class="col-md-8">
  <div id="description"><h3>Página no encontrada</h3></div>
La página solicitada no existe. Tal vez usted está utilizando un marcador desactualizado.⏎

        <div class="col-md-4">
    <footer class="footer">
      <div class="container">
        <div class="row">
          <div class="col-md-8">
            Proporcionado por: <a href="http://geonode.org">GeoNode</a> <em>Versión 2.4</em> |
            <a href="/developer/">Desarrolladores</a> |
            <a href="/about/">Acerca de</a>
          <div class="col-md-4">
            <label class="hidden">Idioma</label>
            <form class="form-inline" action="/i18n/setlang/" method="post">
            <input type='hidden' name='csrfmiddlewaretoken' value='jwfEKZjzwie2cflbenmB0s4wNuXKAFTn' />
              <select class="col-md-6 pull-right" name="language" onchange="javascript:form.submit()">
                <option value="en" >
                <option value="es"  selected="selected">
                <option value="it" >
                <option value="fr" >
                <option value="de" >
                <option value="el" >
                <option value="id" >
                  Bahasa Indonesia
                <option value="zh-cn" >
                <option value="ja" >
                <option value="fa" >
                <option value="ar" >
                <option value="bn" >
                <option value="ne" >
                <option value="sq" >
                <option value="af" >
                <option value="sw" >
                <option value="pt" >
                <option value="ru" >
                <option value="vi" >
                <option value="ko" >
                <option value="am" >
                <option value="km" >
                <option value="pl" >
                <option value="sv" >
                <option value="th" >
                <option value="uk" >
                <option value="si" >
                <option value="ta" >
                <option value="tl" >

    <!-- Modal must stay outside the navbar -->
    <div class="modal fade" id="UserModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 class="modal-title" id="myModalLabel">Menu</h4>
          <div class="modal-body">
            <ul class="list-unstyled">
              <li><a href="/layers/upload"><i class="fa fa-cloud-upload"></i> Subir Capas</a></li>
              <li class="modal-divider"></li>
              <li><a href="/people/profile/u0899jbe/"><i class="fa fa-user"></i> Perfil</a></li>
              <li><a href="/social/recent-activity"><i class="fa fa-fire"></i> Reciente Actividad</a></li>
              <li><a href="/messages/inbox/"><i class="fa fa-inbox"></i> Bandeja de entrada</a></li>
              <li class="modal-divider"></li>
              <li><a title="Help" rel="tooltip" href="/help/"><i class="fa fa-question-circle"></i> Ayuda</a></li>
          <div class="modal-footer">
            <form action="/account/logout/" id="logout_form" method="post">
              <input type='hidden' name='csrfmiddlewaretoken' value='jwfEKZjzwie2cflbenmB0s4wNuXKAFTn' />
              <a class="btn btn-warning btn-block" href="javascript:{}" onclick="document.getElementById('logout_form').submit();">Salir</a>
    <!-- End of Modal -->
    <script src="/static/lib/js/assets.min.js?v=2.4"></script>
    <script src="/static/geonode/js/utils/utils.js?v=2.4"></script>
    <script src="/static/geonode/js/base/base.js?v=2.4"></script>

<script type="text/javascript">
jQuery(function($) {
function getCookie(name) {
    var cookieValue = null;
    if (document.cookie && document.cookie != '') {
        var cookies = document.cookie.split(';');
        for (var i = 0; i < cookies.length; i++) {
            var cookie = jQuery.trim(cookies[i]);
            // Does this cookie string begin with the name we want?
            if (cookie.substring(0, name.length + 1) == (name + '=')) {
                cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
    return cookieValue;
function csrfSafeMethod(method) {
    // these HTTP methods do not require CSRF protection
    return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
function sameOrigin(url) {
    // test that a given url is a same-origin URL
    // url could be relative or scheme relative or absolute
    var host = document.location.host; // host + port
    var protocol = document.location.protocol;
    var sr_origin = '//' + host;
    var origin = protocol + sr_origin;
    // Allow absolute or scheme relative URLs to same origin
    return (url == origin || url.slice(0, origin.length + 1) == origin + '/') ||
        (url == sr_origin || url.slice(0, sr_origin.length + 1) == sr_origin + '/') ||
        // or any other URL that isn't scheme relative or absolute i.e relative.
    beforeSend: function(xhr, settings) {
        if (!csrfSafeMethod(settings.type) && sameOrigin(settings.url)) {
            // Send the token to same-origin, relative URLs only.
            // Send the token only if the method warrants CSRF protection
            // Using the CSRFToken value acquired earlier
            xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));

<script type="text/javascript" src="/static/autocomplete_light/django_admin.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/autocomplete.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/widget.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/addanother.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/text_widget.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/remote.js"></script>
<link rel="stylesheet" type="text/css" href="/static/autocomplete_light/style.css" />

    <script type="text/javascript" src="/jsi18n/"></script>
    <script type="text/javascript">
        var autocomplete = $('#search_input').yourlabsAutocomplete({
            url: '/autocomplete/ResourceBaseAutocomplete/',
            choiceSelector: 'span',
            hideAfter: 200,
            minimumCharacters: 1,
            placeholder: 'Escriba aquí su busqueda  ...',
            appendAutocomplete: $('#search_input'),
            autoHilightFirst: false
        $('#search_input').bind('selectChoice', function(e, choice, autocomplete) {
            if(choice[0].children[0] == undefined) {
        // Workaround to fix the autocomplete box positions
        yourlabs.Autocomplete.prototype.fixPosition = function(html) {
            this.input.parents().filter(function() {
                return $(this).css('overflow') === 'hidden';
            }).first().css('overflow', 'visible');
            if(this.input.attr('name') !== 'resource-keywords'){
              this.box.insertAfter(this.input).css({top: 0, left: 0});
              var pos = $.extend({}, this.input.position(), {
                height: this.input.outerHeight()
              this.box.insertAfter(this.input).css({top: pos.top + pos.height, left: pos.left});
    <script type="text/javascript" src="/lang.js"></script>


Any Ideas?


Agur bero bat,

David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.
dalda at hazi.eus | www.hazi.eus
T 945 003 240 – M 627 923 170 – F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

More information about the geonode-users mailing list