<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I´m confused about two parts of MapBender. I created a new application under <u><a href="http://localhost/mapbender3/manager/applications">http://localhost/mapbender3/manager/applications</a>.</u>
 When I add the element digitizer (please see added e-mail) in my 
content-part of layouts and connect my database, following error occurs 
by starting the application: <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br><i><span><div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default">​</div>Feature API query error."<!DOCTYPE 
html>\n<html>\n    <head>\n        <meta 
charset=\"UTF-8\" />\n        <title>An Error Occurred: 
Internal Server Error</title>\n    </head>\n    
<body>\n        <h1>Oops! An Error Occurred</h1>\n    
    <h2>The server returned a \"500 Internal Server 
Error\".</h2>\n\n        <div>\n            Something is 
broken. Please let us know what you were doing when this error 
occurred.\n            We will fix it as soon as possible. Sorry for any
 inconvenience caused.\n        </div>\n    
</body>\n</html>\n"</span></i></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><i><span><br></span></i></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span>I read in a forum comment, that one solution is to start the application in the developement mode under <u><a href="http://localhost/mapbender3/app_dev.php/manager/applications">http://localhost/mapbender3/app_dev.php/manager/applications</a></u>.
 By doing this, the element digitizer works fine and no errors occur
 by starting the application. But now: by editing any element "button" 
(layouts -> toolbar) an error occurs:<i> internal server error</i>. 
Other elements in the toolbar as well as in the content and footer can 
by edited without problems. Only the element "button" does not work. The
 tricky thing is, that working under </span><span><u><a href="http://localhost/mapbender3/manager/applications">http://localhost/mapbender3/manager/applications</a></u> all elements "button" are working fine and are easily editable.<u><br></u></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span>For
 the use of my application, I don´t want to open it in the developement 
mode! Do you know, why the both modes are acting so differnt? Do I have 
to do special or additional configurations? Which mode is best for using
 it and modifying an application?<br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span>Thank you so much in advance!<br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span>Best regards</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span>Teresa<br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><i><span></span></i></div>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Teresa Graßl</b> <span dir="ltr"><<a href="mailto:teresagrassl91@gmail.com">teresagrassl91@gmail.com</a>></span><br>Date: 2017-09-22 16:01 GMT+02:00<br>Subject: Re: [Mapbender-users] Mapbender don´t show map<br>To: Mapbender User List <<a href="mailto:mapbender_users@lists.osgeo.org">mapbender_users@lists.osgeo.org</a>><br><br><br><div style="font-family:arial,helvetica,sans-serif">Hello Charlotte,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">maybe you can help me again.</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">I´ve added the element "digitizer" and entered following yml-file:</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif"><b>bohrdaten:<br>    label: Punkt Digitalisierung<br>    inlineSearch: true<br>    maxResults: 500<br>    featureType:<br>        connection: Bohrpunkte_NP<br>        table: bohrdaten<br>        uniqueId: id<br>        geomType: point<br>        geomField: geom<br>        srid: 4326<br>    openFormAfterEdit: true<br>    zoomScaleDenominator: 500<br>    allowEditData: true<br>    allowDelete: true<br>    allowDigitize: true<br>    useContextMenu: true<br>    useCancelButton: true<br>    toolset:<br>        - type: drawPoint<br>        - type: moveFeature<br>    popup:<br>        title: Editieren Bohrpunkte <br>        width: 500px<br>    searchType: currentExtent<br>    tableFields:<br>        id: {label: Nr.}<br>        projektnummer: {label: Projekt}<br>        adresse: {label: Adresse}<br>        beschreibung: {label: Beschreibung}<br>        datum: {label: Datum}<br>        gw_flurabstand: {label: GW-Flurabstand [m]}<br>        gw_maechtigkeit: {label: GW-Mächtigkeit [m]}<br>        gok: {label: GOK [m ü. NN]}<br>        gwo: {label: GWO [m ü. NN]}<br>        tertiaer_ok: {label: Tertiär-OK [m ü. NN]}<br>        erschliessung: {label: Erschließung}<br>        nutzung: {label: Nutzung}<br>    styles:<br>        default:<br>            strokeWidth: 2<br>            strokeColor: '#0e6a9e'<br>            fillColor: '#1289CD'<br>            fillOpacity: 1<br>            fillWidth: 2<br>            pointRadius: 10<br>        select:<br>            strokeWidth: 3<br>            strokeColor: '#0e6a9e'<br>            fillOpacity: 0.7<br>            pointRadius: 10<br>    formItems:<br>       - type: tabs<br>         children:<br>           - type: form<br>             title: Basisinformationen<br>             css: {padding: 10px}<br>             children:<br>                 - type: label<br>                   title: Hier kannst du einen neuen Bohrpunkt erfassen!<br>                 - type: input<br>                   title: Projekt <br>                   mandatory: true<br>                   name: projektnummer<br>                   mandatoryText: Hoppla. Unvollständige Eingabe!<br>                   infoText: "Bitte gib eine Projektnummer an!"<br>                   placeholder: "z.B. 1234 oder 1234-1"<br>                 - type: textArea<br>                   title: Adresse<br>                   name: adresse<br>                   rows: 2<br>                 - type: select<br>                   title: Erschließung<br>                   name: erschliessung<br>                   multiple: false<br>                   options: {1: Rammsondierung, 2: Kleinbohrung, 3: Bohrung}<br>                   infoText: "Hier kann angegeben werden, wie der Bohrpunkt erschlossen wurde"<br>                 - type: select<br>                   title: Nutzung<br>                   name: nutzung<br>                   multiple: false<br>                   options: {1:Erkundung, 2:GWM, 3:Geothermie}<br>                   infoText: "Hier kann angegeben werden, wie der Bohrpunkt genutzt wird"<br>                 - type: input<br>                   title: Beschreibung<br>                   name: beschreibung<br>                   mandatory: false<br>                   placeholder: "Hier können zusätzliche Informationen angegeben werden."<br>                 - type: date<br>                   title: Datum<br>                   name: datum <br>                   placeholder: "z.B. 01.01.2017"<br>                   dateFormat: dd.mm.yy<br>                   infoText: "Das Datum wird im Format dd.mm.yy angegeben."<br>           - type: form<br>             title: Details<br>             css: {padding: 10px}<br>             children:<br>                 - type: label<br>                   title: Bitte gib hier weitere Informationen zum Bohrpunkt an!<br>                 - type: fieldSet<br>                   children:<br>                       - type: input<br>                         title: GW-Flurabstand [m]<br>                         name: gw_flurabstand<br>                         css: {width: 33%}<br>                       - type: input<br>                         title: GW-Mächtigkeit [m]<br>                         name: gw_maechtigkeit<br>                         css: {width: 33%}<br>                       - type: input<br>                         title: GWO [m ü. NN]<br>                         name: gwo<br>                         css: {width: 33%}<br>                 - type: fieldSet<br>                   children:<br>                       - type: input<br>                         title: GOK [m ü. NN]<br>                         name: gok<br>                         css: {width: 50%}<br>                       - type: input<br>                         title: Tertiär-OK [m ü. NN bzw. m unter GOK]<br>                         name: tertiaer_ok<br>                         css: {width: 50%}</b><br></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span><br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>I added two database-connection to my config.yml and my parameters.yml (like explained in <a href="https://doc.mapbender3.org/de/book/database.html" target="_blank">https://doc.mapbender3.org/de/<wbr>book/database.html</a>):</span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span><br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>1) in the config.yml<br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><b><span>doctrine:<br>    dbal:<br>        default_connection: default    <br>        connections:<br>            # Datenbankverbindung default<br>            default:<br>                driver:   %database_driver%<br>                host:     %database_host%<br>                port:     %database_port%<br>                dbname:   %database_name%<br>                path:     %database_path%<br>                user:     %database_user%<br>                password: %database_password%<br>                persistent: true<br>                charset:  UTF8<br>                logging: %kernel.debug%<br>                profiling: %kernel.debug%<br>            # Datenbankverbindung Bohrpunkte_NP<br>            Bohrpunkte_NP:<br>                driver:   %database2_driver%<br>                host:     %database2_host%<br>                port:     %database2_port%<br>                dbname:   %database2_name%<br>                path:     %database2_path%<br>                user:     %database2_user%<br>                password: %database2_password%<br>                persistent: true<br>                charset:  UTF8<br>                logging: %kernel.debug%<br>                profiling: %kernel.debug%<br></span></b></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><b><span><br></span></b></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>2) In the parameters.yml</span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span><b>parameters:<br>    # Datenbankverbindugn default<br>    database_driver:   pdo_pgsql<br>    database_host:     localhost<br>    database_port:     5432<br>    database_name:     mapbender3<br>    database_path:     ~<br>    database_user:     postgres<br>    database_password: ****<br><br>    #Datenbankverbindung Bohrpunkte_NP<br>    database2_driver:   pdo_pgsql<br>    database2_host:     localhost<br>    database2_port:     5432<br>    database2_name:     Bohrpunkte_NP<br>    database2_path:     ~<br>    database2_user:     postgres<br>    database2_password: ****<br>    <br>    mailer_transport:  smtp<br>    mailer_host:       localhost<br>    mailer_user:       ~<br>    mailer_password:   ~</b><br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">After updating and return to my application following error occured:</div><div style="font-family:arial,helvetica,sans-serif"><br></div>
  
  <div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error">
<i><span><div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default">​​</div>Feature API query error."<!DOCTYPE 
html>\n<html>\n    <head>\n        <meta 
charset=\"UTF-8\" />\n        <title>An Error Occurred: 
Internal Server Error</title>\n    </head>\n    
<body>\n        <h1>Oops! An Error Occurred</h1>\n    
    <h2>The server returned a \"500 Internal Server 
Error\".</h2>\n\n        <div>\n            Something is 
broken. Please let us know what you were doing when this error 
occurred.\n            We will fix it as soon as possible. Sorry for any
 inconvenience caused.\n        </div>\n    
</body>\n</html>\n"</span></i></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span><br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>When I import my application in the develover environment <u><a href="http://localhost/mapbender3/app_dev.php/application/bp" target="_blank">http://localhost/mapbender3/<wbr>app_dev.php/application/bp</a></u> </span><span>and open my application, everything´s working (no error).</span><i><span> </span></i><span>So I´m confused, why in the app_dev.php it works, but not at the frontend <u><a href="http://localhost/mapbender3/application/bp" target="_blank">http://localhost/mapbender3/<wbr>application/bp</a></u>? Do I have to do special oder additional configurations?<br></span><i><span></span></i></div><span></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span><br></span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>Thank you in advance and have a nice weekend</span></div><div class="gmail-m_4989928544658807284gmail-notifyjs-bootstrap-base gmail-m_4989928544658807284gmail-notifyjs-bootstrap-error"><span>Cheers,</span></div><span>Teresa</span></div></div>