<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello everybody,<br><br>I was working with a bit old version of geonode <em>2.4.dev20151029170512 </em>on ubuntu 14.04 server.<br>I uploaded 3 different geotiff file. I was dealing with the style of those raster layers.<br><br>From the layer view I was trying to set the style from 'edit layer' style 'manage', but I got this:<br><br><h1>UnboundLocalError at /gs/geonode:fav_finale/style/manage</h1>
  <pre class="exception_value">local variable 'title_node' referenced before assignment</pre>
  

    <table class="meta"><tbody><tr>
      <th>Request Method:</th>
      <td>GET</td>
    </tr>
    <tr>
      <th>Request URL:</th>
      <td>http://my_server_ip/gs/geonode:fav_finale/style/manage</td>
    </tr>

    <tr>
      <th>Django Version:</th>
      <td>1.6.11</td>
    </tr>

    <tr>
      <th>Exception Type:</th>
      <td>UnboundLocalError</td>
    </tr>


    <tr>
      <th>Exception Value:</th>
      <td><pre>local variable 'title_node' referenced before assignment</pre></td>
    </tr>


    <tr>
      <th>Exception Location:</th>
      <td>/usr/local/lib/python2.7/dist-packages/geoserver/style.py in sld_title, line 83</td>
    </tr>

    <tr>
      <th>Python Executable:</th>
      <td>/usr/bin/python</td>
    </tr>
    <tr>
      <th>Python Version:</th>
      <td>2.7.6</td>
    </tr>
    <tr>
      <th>Python Path:</th>
      <td><pre>['/dati/.venvs/geonode/lib/python2.7/site-packages',
 '/dati/geonode',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/home/eugenio']</pre></td>
    </tr>
    <tr>
      <th>Server time:</th>
      <td>ven, 11 Dic 2015 09:12:39 -0600</td></tr></tbody></table><br><br>Looking at apache2 error.log I got:<br>sudo tail -f /var/log/apache2/error.log<br>[Fri Dec 11 09:12:39.347828 2015] [:error] [pid 25987:tid 139718709159680]     return view_func(request, *args, **kwargs)<br>[Fri Dec 11 09:12:39.347833 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/views.py", line 169, in layer_style_manage<br>[Fri Dec 11 09:12:39.347838 2015] [:error] [pid 25987:tid 139718709159680]     set_styles(layer, cat)<br>[Fri Dec 11 09:12:39.347843 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/helpers.py", line 777, in set_styles<br>[Fri Dec 11 09:12:39.347847 2015] [:error] [pid 25987:tid 139718709159680]     layer.default_style = save_style(default_style)<br>[Fri Dec 11 09:12:39.347852 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/helpers.py", line 792, in save_style<br>[Fri Dec 11 09:12:39.347857 2015] [:error] [pid 25987:tid 139718709159680]     style.sld_title = gs_style.sld_title<br>[Fri Dec 11 09:12:39.347861 2015] [:error] [pid 25987:tid 139718709159680]   File "/usr/local/lib/python2.7/dist-packages/geoserver/style.py", line 83, in sld_title<br>[Fri Dec 11 09:12:39.347866 2015] [:error] [pid 25987:tid 139718709159680]     return title_node.text if title_node is not None else None<br>[Fri Dec 11 09:12:39.347871 2015] [:error] [pid 25987:tid 139718709159680] UnboundLocalError: local variable 'title_node' referenced before assignment<br><br>What does it mean?<br>Can I solve this issue?<br><br>E.<br>                                     </div></body>
</html>