← Back to team overview

dhis2-users team mailing list archive

Re: Event Capture problems

 

Hi Abyot, thanks for your reply.

I just installed the 2.21 version (on Tomcat), and I cleared the
browser cache and cookies so many times, but still no luck. Just to be
sure, I created a brand new database: only one option set, only one
data element, only one program (without registration), only one
organization unit; I assigned the option set to the data element, the
data element to the program stage, and the program to the orgunit.
When I click on the drop down menu of the data element "DA gender",
what I get is in the picture attached.. :( Obviously I checked a
hundred times the option management (also attached). I attach a dump
of my db (MySQL) as well.

Thanks in advance,

Iuri


2015-10-29 19:03 GMT+01:00 Abyot Gizaw <abyota@xxxxxxxxx>:
> Hi Iuri,
>
> That shouldn't really stop you from proceeding. Which version of dhis2 are
> you using? Also make sure you have cleared your browser cache.
>
>
> ---
> Thank you,
> Abyot.
>
> On Thu, Oct 29, 2015 at 2:49 PM, Iuri Fanti <iuri.fanti@xxxxxxxxx> wrote:
>>
>> Sure. When I click on "Event Capture", the console shows me these
>> messages:
>>
>> Creating Application Cache with manifest
>> http://localhost:8080/dhis/dhis-web-event-capture/cacheManifest.action
>> index.html:1 Application Cache Checking event
>> index.html:1 Application Cache Error event: Failed to parse manifest
>> http://localhost:8080/dhis/dhis-web-event-capture/cacheManifest.action
>> angular.js:87 GET
>> http://localhost:8080/dhis/api/userSettings/currentStyle 404 (Not
>> Found)(anonymous function) @ angular.js:87n @ angular.js:82f @
>> angular.js:80(anonymous function) @ angular.js:112n.$eval @
>> angular.js:126n.$digest @ angular.js:123n.$apply @ angular.js:126l @
>> angular.js:81M @ angular.js:85F.onload @ angular.js:86
>> dhis2.menu.ui.js:1114 Unable to load usersettings, falling back to
>> systemSettings
>> directives.js:12 Finished loading orgunit tree
>> event-capture.js:142 Loading required meta-data
>> dhis2.angular.directives.js:71 Finished loading orgunit tree
>> event-capture.js:142 Loading required meta-data
>> jquery.min.js:2 GET
>>
>> http://localhost:8080/dhis/api/programRules.json?paging=false&fields=id,program[id]&_=1446126435971
>> 500 (Internal Server Error)send @ jquery.min.js:2p.extend.ajax @
>> jquery.min.js:2getD2MetaObject @
>> event-capture.js:509getMetaProgramRules @
>> event-capture.js:476(anonymous function) @ jquery.min.js:2k @
>> jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @ jquery.min.js:2k @
>> jquery.min.js:2l.add @ jquery.min.js:2(anonymous function) @
>> jquery.min.js:2k @ jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @
>> jquery.min.js:2k @ jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @
>> jquery.min.js:2(anonymous function) @ event-capture.js:527k @
>> jquery.min.js:2l.fireWith @ jquery.min.js:2y @ jquery.min.js:2d @
>> jquery.min.js:2
>> event-capture.js:168 Finished loading meta-data
>> event-capture.js:170 Started availability check
>> jquery.min.js:2 GET
>>
>> http://localhost:8080/dhis/api/programRules.json?paging=false&fields=id,program[id]&_=1446126435981
>> 500 (Internal Server Error)send @ jquery.min.js:2p.extend.ajax @
>> jquery.min.js:2getD2MetaObject @
>> event-capture.js:509getMetaProgramRules @
>> event-capture.js:476(anonymous function) @ jquery.min.js:2k @
>> jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @ jquery.min.js:2k @
>> jquery.min.js:2l.add @ jquery.min.js:2(anonymous function) @
>> jquery.min.js:2k @ jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @
>> jquery.min.js:2k @ jquery.min.js:2l.fireWith @ jquery.min.js:2l.fire @
>> jquery.min.js:2(anonymous function) @ event-capture.js:527k @
>> jquery.min.js:2l.fireWith @ jquery.min.js:2y @ jquery.min.js:2d @
>> jquery.min.js:2
>> event-capture.js:168 Finished loading meta-data
>> event-capture.js:170 Started availability check
>>
>> Is it useful?
>>
>> Iuri
>>
>> 2015-10-28 12:57 GMT+01:00 Abyot Gizaw <abyota@xxxxxxxxx>:
>> > Hi Iuri,
>> >
>> > Do you have any log to share from your browser console?
>> >
>> >
>> > ---
>> > Thank you,
>> > Abyot.
>> >
>> > On Tue, Oct 27, 2015 at 8:32 PM, Iuri Fanti <iuri.fanti@xxxxxxxxx>
>> > wrote:
>> >>
>> >> Hi all,
>> >>
>> >> the "second problem" is still there:
>> >>
>> >> "I can't see any options for the Option sets in the program stage
>> >> during data entry. Clicking on the drop down menu, all I get is a text
>> >> field with a lens and the caption "Select or search from the list".
>> >>
>> >> All the best,
>> >>
>> >> Iuri
>> >>
>> >> 2015-10-26 13:41 GMT+01:00 Iuri Fanti <iuri.fanti@xxxxxxxxx>:
>> >> > I solved the problem with the non-existent programs: I deleted the
>> >> > cookies related to "localhost". They were described as "local
>> >> > storage". So, it's something that DHIS should do by itself, someway.
>> >> >
>> >> > 2015-10-26 13:22 GMT+01:00 Iuri Fanti <iuri.fanti@xxxxxxxxx>:
>> >> >> With private/incognito mode the non-existent programs disappeared
>> >> >> from
>> >> >> the drop down menu. I guess it's a useful info to solve the problem
>> >> >> in
>> >> >> the real-life DHIS. Anyway, the problem with the option sets is
>> >> >> still
>> >> >> there: no options in the drop down menus.
>> >> >>
>> >> >> 2015-10-23 22:57 GMT+02:00 Knut Staring <knutst@xxxxxxxxx>:
>> >> >>> Whenever you clear the browser cache, try restarting the browser
>> >> >>> also.
>> >> >>> Did
>> >> >>> you try private/incognito mode?
>> >> >>>
>> >> >>> Knut
>> >> >>>
>> >> >>> On Fri, Oct 23, 2015 at 10:03 PM, Iuri Fanti <iuri.fanti@xxxxxxxxx>
>> >> >>> wrote:
>> >> >>>>
>> >> >>>> Hi all,
>> >> >>>>
>> >> >>>> I have a couple of problems with the Event Capture app (single
>> >> >>>> event
>> >> >>>> without registration).
>> >> >>>>
>> >> >>>> If I click on the drop down menu for the available programs, it
>> >> >>>> shows
>> >> >>>> programs that I deleted. Even after cleaning the browser cache and
>> >> >>>> the
>> >> >>>> app cache (from Data Administration --> Cache statistics --> Clean
>> >> >>>> cache) it keeps showing those entries. I looked for them directly
>> >> >>>> in
>> >> >>>> the database as well, but I couldn't find them.
>> >> >>>>
>> >> >>>> The second problem is that I can't see any options for the Option
>> >> >>>> sets
>> >> >>>> in the program stage during data entry. Clicking on the drop down
>> >> >>>> menu, all I get is a text field with a lens and the caption
>> >> >>>> "Select
>> >> >>>> or
>> >> >>>> search from the list".
>> >> >>>>
>> >> >>>> All the best,
>> >> >>>>
>> >> >>>> Iuri
>> >> >>>>
>> >> >>>> --
>> >> >>>> @-`-,--
>> >> >>>>
>> >> >>>> _______________________________________________
>> >> >>>> Mailing list: https://launchpad.net/~dhis2-users
>> >> >>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> >> >>>> Unsubscribe : https://launchpad.net/~dhis2-users
>> >> >>>> More help   : https://help.launchpad.net/ListHelp
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Knut Staring
>> >> >>> Dept. of Informatics, University of Oslo
>> >> >>> Norway: +4791880522
>> >> >>> Skype: knutstar
>> >> >>> http://dhis2.org
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> @-`-,--
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > @-`-,--
>> >>
>> >>
>> >>
>> >> --
>> >> @-`-,--
>> >>
>> >> _______________________________________________
>> >> Mailing list: https://launchpad.net/~dhis2-users
>> >> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> >> Unsubscribe : https://launchpad.net/~dhis2-users
>> >> More help   : https://help.launchpad.net/ListHelp
>> >
>> >
>>
>>
>>
>> --
>> "The best argument against democracy is a five-minute conversation
>> with the average voter." - Winston Churchill
>> @-`-,--
>
>



-- 
"The best argument against democracy is a five-minute conversation
with the average voter." - Winston Churchill
@-`-,--

Attachment: option_mgm.png
Description: PNG image

Attachment: program.png
Description: PNG image

Attachment: dhis2_v2.zip
Description: Zip archive


Follow ups

References