<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error on init.js using custom Journal template with Portal in Classic Esri Story Maps Questions</title>
    <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213104#M2372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a secure map in Portal, shared it, made a Web Mapping Application using the Story Map Journal template, and downloaded the template. I extracted the files on a different web server and made the necessary config changes for Portal. I registered the app in Portal. When I try to view the app in the browser, it prompts for my login information using the ESRI authentication form as expected.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="authform.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116020_authform.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I submit my login info, it shows this on the page and never displays the story map:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mapjournal initializing.png" class="image-2 jive-image" src="/legacyfs/online/116042_mapjournal initializing.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The JavaScript console shows the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;TypeError: Cannot read property '0' of undefined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://myserver.com/myapp/app/viewer-min.js?v=1.1:1:162579" rel="nofollow" target="_blank"&gt;http://myserver.com/myapp/app/viewer-min.js?v=1.1:1:162579&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:76:221" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:76:221&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:76:10" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:76:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at b.Deferred.resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:77:350" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:77:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect it may have to do with the DEFAULT_SHARING_URL. I had to guess at this value because I'm not an admin, but the one used in the code at least sees the Map Journal on the server (because other examples I tried immediately errored out), and it prompts me for my login. However, when I try to hit the DEFAULT_SHARING_URL in my web browser, it gives me an error "Invalid URL&amp;nbsp; Error: 400". So it partially works. Is there a permission or port that needs to be changed? Or is something else going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 18:36:24 GMT</pubDate>
    <dc:creator>PamRichmond</dc:creator>
    <dc:date>2015-07-08T18:36:24Z</dc:date>
    <item>
      <title>Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213104#M2372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a secure map in Portal, shared it, made a Web Mapping Application using the Story Map Journal template, and downloaded the template. I extracted the files on a different web server and made the necessary config changes for Portal. I registered the app in Portal. When I try to view the app in the browser, it prompts for my login information using the ESRI authentication form as expected.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="authform.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116020_authform.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I submit my login info, it shows this on the page and never displays the story map:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mapjournal initializing.png" class="image-2 jive-image" src="/legacyfs/online/116042_mapjournal initializing.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The JavaScript console shows the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;TypeError: Cannot read property '0' of undefined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://myserver.com/myapp/app/viewer-min.js?v=1.1:1:162579" rel="nofollow" target="_blank"&gt;http://myserver.com/myapp/app/viewer-min.js?v=1.1:1:162579&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:76:221" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:76:221&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:76:10" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:76:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at b.Deferred.resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://js.arcgis.com/3.11/init.js:77:350" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.11/init.js:77:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect it may have to do with the DEFAULT_SHARING_URL. I had to guess at this value because I'm not an admin, but the one used in the code at least sees the Map Journal on the server (because other examples I tried immediately errored out), and it prompts me for my login. However, when I try to hit the DEFAULT_SHARING_URL in my web browser, it gives me an error "Invalid URL&amp;nbsp; Error: 400". So it partially works. Is there a permission or port that needs to be changed? Or is something else going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 18:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213104#M2372</guid>
      <dc:creator>PamRichmond</dc:creator>
      <dc:date>2015-07-08T18:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213105#M2373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it looks like your sharing URL is not valid.&lt;/P&gt;&lt;P&gt;If your Portal for ArcGIS can be accessed at myserver.com/portal, the sharing url should be //myserver.com/portal/sharing/content/items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you access it at myserver.com it should be //myserver.com/sharing/content/items&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213105#M2373</guid>
      <dc:creator>GregoryL_Azou</dc:creator>
      <dc:date>2015-07-08T21:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213106#M2374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. The URL I am using does use that pattern (i.e., &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;//myserver.com/portal/sharing/content/items and I access on &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;//myserver.com/portal&lt;/SPAN&gt;&lt;/SPAN&gt;), but I get the error "Invalid URL Error: 400". Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213106#M2374</guid>
      <dc:creator>PamRichmond</dc:creator>
      <dc:date>2015-07-08T21:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213107#M2375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;If you go to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://myserver.com/portal/sharing/" rel="nofollow" target="_blank"&gt;https://myserver.com/portal/sharing/&lt;/A&gt;&lt;SPAN&gt; do you get to a valid page?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213107#M2375</guid>
      <dc:creator>GregoryL_Azou</dc:creator>
      <dc:date>2015-07-08T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213108#M2376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. See below. ".../portal/sharing/content/" works as well, but not "..../content/items/". &lt;/P&gt;&lt;P&gt;&lt;IMG alt="portal-sharing.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116089_portal-sharing.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213108#M2376</guid>
      <dc:creator>PamRichmond</dc:creator>
      <dc:date>2015-07-08T21:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213109#M2377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your&amp;nbsp; sharing URL configuration must be fine then, it has to be something else.&lt;/P&gt;&lt;P&gt;have you configured the appid in index.html? or Are you putting it in the URL parameter?&lt;/P&gt;&lt;P&gt;If you are using the URL parameter, have you configured the authorizedOwner property (index.html line 45?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213109#M2377</guid>
      <dc:creator>GregoryL_Azou</dc:creator>
      <dc:date>2015-07-08T21:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213110#M2378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had tried the appid in index.html and in the URL, and neither worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just downloaded the GitHub application and made the necessary config changes, and it is now working. I originally downloaded the code from within Portal, so there must have been an issue there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 13:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213110#M2378</guid>
      <dc:creator>PamRichmond</dc:creator>
      <dc:date>2015-07-09T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error on init.js using custom Journal template with Portal</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213111#M2379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear, sorry about this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/error-on-init-js-using-custom-journal-template/m-p/213111#M2379</guid>
      <dc:creator>GregoryL_Azou</dc:creator>
      <dc:date>2015-07-09T15:39:31Z</dc:date>
    </item>
  </channel>
</rss>

