← Back to team overview

dhis2-devs team mailing list archive

404 Error when trying to use the DHIS2 menu in an APP

 

Hi Devs

Please can you assist me in getting the DHIS Menu to display in my app?

I'm using dhis 2,25 build 8182981

*and this is the error I receive on the console :-*

jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json
404 (Not Found)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960
(anonymous) @ dhis2.menu.ui.js:1266
(anonymous) @ dhis2.menu.ui.js:1268

jquery.min.js:2 GET
http://localhost:9090/dhis/api/apps/dhis-web-commons/menu/getHelpPageLinkModule.action
404 (Not Found)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955
(anonymous) @ dhis2.menu.ui.js:1266
(anonymous) @ dhis2.menu.ui.js:1268

*This is the script as per the DHIS2 documentation:-*

<script type="text/javascript">
<!-- DHIS2 Settings initialization for a baseUrl that is used for the menu
-->
    window.dhis2 = window.dhis2 || {};
    dhis2.settings = dhis2.settings || {};
    dhis2.settings.baseUrl = 'dhis';
</script>

*This is the script with the relative path I am using:-*

<script type="text/javascript"
src="../../../dhis-web-commons/javascripts/dhis2/dhis2.menu.js"></script>
 <script type="text/javascript"
src="../../../dhis-web-commons/javascripts/dhis2/dhis2.menu.ui.js"></script>

-- 


*This message and any attachments are subject to a disclaimer published at 
http://www.hisp.org/policies.html#comms_disclaimer 
<http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the 
disclaimer before opening any attachment or taking any other action in 
terms of this electronic transmission.  If you cannot access the 
disclaimer, kindly send an email to disclaimer@xxxxxxxx 
<disclaimer@xxxxxxxx> and a copy will be provided to you. By replying to 
this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.*

Follow ups