<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi</p>
    <p>Find some replies inline.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16.09.2018 16:58, info wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>A mod @ GIS stack exchange put my question on hold. So here is
        the question: <br>
        <br>
        ---------------------------</p>
      <p><b>QUESTION: </b><br>
        <br>
        Ubuntu 18<br>
        <br>
        * I have problems with QGIS web client 2 features after install
        & configure w/ QGIS server.<br>
        <br>
        * I must be doing something incorrect with the project html link
        if I am seeing these issues i detail below, because in the demo
        all works correctly and the html links do not include wms
        request. <br>
        <br>
        * I see the html links in the demo themesConfig.json are like
        this: <br>
        <br>
            <a class="moz-txt-link-freetext"
          href="http://qwc2.sourcepole.ch/wms/themes/test"
          moz-do-not-send="true">http://qwc2.sourcepole.ch/wms/themes/test</a><br>
        <br>
        *so no capabilities request or WMS? When i leave out the wms
        request from the html yarn does not want to reload the theme
        even after symbolic links for project source, wms xml, &
        mapserv.fcgi<br>
        <br>
        * I can only get the map to appear when I do the html link like
        this: <br>
        <br>
           
        <a class="moz-txt-link-freetext"
href="http://qgis.demo/cgi-bin/projects/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
          moz-do-not-send="true">http://qgis.demo/cgi-bin/projects/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a><br>
        <br>
      </p>
      <p>I assume this is the core of the issues I am seeing. What am I
        missing? <br>
      </p>
    </blockquote>
    Add a rewrite URL rule to your webserver config, i.e. for Apache
    something like:<br>
    <br>
    RewriteRule ^/wms/(.+)$
    /qgis/qgis_mapserv.fcgi?map=/path/to/project/basedir/$1.qgs [QSA,PT]<br>
    <br>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <p> <br>
        --------------------------------</p>
      <p><b>ISSUES:</b><br>
        <br>
        1: when I use print function, I get 500 internal server error
        after pressing "print" button. <br>
      </p>
    </blockquote>
    I've seen this with certain QGIS server versions on Windows, that as
    soon as the print template contains a Label, it errors out. See
    <a class="moz-txt-link-freetext" href="https://issues.qgis.org/issues/15440">https://issues.qgis.org/issues/15440</a>.<br>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <p> <br>
         - test project has a print composer profile setup.<br>
        <br>
         - something in themesConfig.json or Config.json missing or
        incorrect possibly<br>
        <br>
        2: when I click on the map the pop up window that would show map
        feature details in the demo quickly disappears and I am sent to
        a blank white screen and I must refresh browser to get the map
        back.<br>
      </p>
    </blockquote>
    Please run the application in development mode (i.e. yarn start),
    open the browser console (typically F12), and in the javascript
    console, you should get a traceback. That should give a good
    indication of where an error occurred.<br>
    <br>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <p>  <br>
        - this feature was working with demo project sources & broke
        when I added my source<br>
        <br>
        3: When I export RASTER & DXF I get "unable to connect
        localhost:5000"<br>
      </p>
    </blockquote>
    Your config.json contains a proxy service URL, but you aren't
    running one (at least, not on localhost:5000). Either run a proxy
    service, or clear the setting in config.json. Consult the
    documentation on why and when a proxy service is needed.<br>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <p> <br>
         - same in demo & after I added my project source. <br>
        <br>
         - I see in config.json i need to configure proxy, but details
        are limited.<br>
        <br>
        4: when I access QWC2 from another system on the network, I am
        unable to see the test project. The thumbnail and project layers
        are not showing up. <br>
      </p>
    </blockquote>
    This is a broader problem that the qgis server / assets are not
    reachable from those other systems. You'll need to double check
    this, it is not a QWC2 specific issue.<br>
    <blockquote type="cite"
      cite="mid:a536c50f-d78d-edab-7d16-e5454e3ec1cf@vtadrones.com">
      <p> </p>
      <p>-------------------------------</p>
      <p><b>DOCS USED:</b><br>
      </p>
      <p>* Followed steps here for QGIS server install, sections 12.1
        & 12.2: <br>
        <a class="moz-txt-link-freetext"
href="https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/index.html"
          moz-do-not-send="true">https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/index.html</a><br>
        <br>
        * Followed steps here for QGIS web client 2 after 12.2.6
        QGIS-server instructions said to use the older QWC version: <br>
        <a class="moz-txt-link-freetext"
href="https://github.com/qgis/qwc2-demo-app/blob/master/doc/QWC2_Documentation.md"
          moz-do-not-send="true">https://github.com/qgis/qwc2-demo-app/blob/master/doc/QWC2_Documentation.md</a><br>
        <br>
        -----------------------------<br>
        <b><br>
        </b><b>RESULTS:</b><br>
        <br>
        * QGIS install was successful <br>
        - can send WMS get capabilities and map requests.<br>
        <br>
        <a class="moz-txt-link-freetext"
          href="https://i.stack.imgur.com/o7WVR.png"
          moz-do-not-send="true">https://i.stack.imgur.com/o7WVR.png</a><br>
        <br>
        * QWC2 demo install was successful <br>
        - all features working with demo project sources (expect export
        RASTER & DXF, I get "unable to connect localhost:5000")<br>
        <br>
        <a class="moz-txt-link-freetext"
          href="https://i.stack.imgur.com/k9E1p.png"
          moz-do-not-send="true">https://i.stack.imgur.com/k9E1p.png</a><br>
        <br>
        ----------------------------------------------<br>
        <br>
        * I modified the themesConfig.json & the test project
        (world.qgs) displays in QWC2 locally on server:<br>
        <br>
        <a class="moz-txt-link-freetext"
href="http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/world.qgs"
          moz-do-not-send="true">http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/world.qgs</a><br>
        <br>
        or <br>
        <br>
        This (w/ symbolic links):<br>
        <br>
        <a class="moz-txt-link-freetext"
href="http://qgis.demo/cgi-bin/projects/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
          moz-do-not-send="true">http://qgis.demo/cgi-bin/projects/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></p>
      <p><br>
        <a class="moz-txt-link-freetext"
          href="https://i.stack.imgur.com/K7qxo.png"
          moz-do-not-send="true">https://i.stack.imgur.com/K7qxo.png</a><br>
        <br>
        <a class="moz-txt-link-freetext"
          href="https://i.stack.imgur.com/juOpa.png"
          moz-do-not-send="true">https://i.stack.imgur.com/juOpa.png</a><br>
        <br>
        ---------------------------------<br>
        <br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 9/16/2018 12:20 AM, info wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:088939f8-094a-4bb8-f3f6-cd4f9e131d45@vtadrones.com">Hello 
        :) <br>
        <br>
        This is a great app! I am very excited I found this. Very clean
        and useful. Thank you for your development on this project. <br>
        <br>
        I have some configuration issues with QWC2 & QGIS server. I
        made a detailed post on GIS stack exchange. I was hoping you
        might be able to assist. I appreciate any help you can provide.
        <br>
        <br>
        <a class="moz-txt-link-freetext"
href="https://gis.stackexchange.com/questions/296056/qgis-web-client-2-qgis-server-configuration-questions-issues"
          moz-do-not-send="true">https://gis.stackexchange.com/questions/296056/qgis-web-client-2-qgis-server-configuration-questions-issues</a>
        <br>
        <br>
        Regards, <br>
        Justin Van Fleet <br>
        <br>
        _______________________________________________ <br>
        qgis-qwc2 mailing list <br>
        <a class="moz-txt-link-abbreviated"
          href="mailto:qgis-qwc2@lists.osgeo.org" moz-do-not-send="true">qgis-qwc2@lists.osgeo.org</a>
        <br>
        <a class="moz-txt-link-freetext"
          href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2"
          moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a>
        <br>
      </blockquote>
      <br>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
qgis-qwc2 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>