I cannot edit an event already registered, whether it is an open or completed event

See error message

TypeError: Cannot read properties of undefined (reading ‘events’)
TypeError: Cannot read properties of undefined (reading ‘events’)
at http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/app.ec04538c.chunk.js:1:1487868
at Xi (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1148790)
at Ts (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1195015)
at Cl (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1187762)
at El (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1187687)
at ml (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1184689)
at http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1136068
at t.unstable_runWithPriority (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1211423)
at Za (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1135777)
at Qa (http://dhis2ven.servehttp.com:8080/dhis-web-capture/static/js/141.930b86e8.chunk.js:2:1136013)
in Unknown
in Unknown
in withRouter()
in Connect(withRouter())
in QF
in t
in Unknown
in Connect(Component)
in div
in div
in div
in div
in Lm
in t
in div
in Unknown
in t
in Connect(t)
in div
in div
in yW
in t
in Unknown
in t
in Connect(t)
in WC
in div
in Unknown
in Unknown
in t
in Unknown
in Connect(Component)
in t
in t
in Unknown
in Unknown
in Connect(Component)
in Unknown
in Connect(Component)
in a
in t
in Connect(t)
in Unknown
in Connect(Component)
in AppPagesLoader
in div
in AppContents
in t
in IH
in div
in t
in t
in d
in CH
in t
in t
in t
in pt
in FH
in VH
in Unknown
in Suspense
in Qe
in div
in div
in tt
in L
in c
in Y
in c
in d
in DHIS2RuntimeProvider
in ot
in nt
in Ne
in Qe
in st
in R
in f

I can record the events but it is not allowing editing

image

To this day, the problem continues when wanting to edit an event, however I appealed for the application on Android and from there I edited the event and later synchronized with the server and the change was registered. The problem is present when editing the event from dhis2 on computer in the web browser.

Hi @alexander_carrasquel

I am using DHIS 2 Demo - Sierra Leone and exactly the same app version as you posted yet I’m able to open events, edit them, and save without any issue.

If you’re also unable to reproduce this issue on play then it could be related to your server and browser cache, database, or configuration. To start with, please use the Data Administration app → Maintenance, to clear cache and then test in the Guest mode of your browser to ensure it’s not a cache issue: Browse Chrome as a guest - Computer - Google Chrome Help

Thanks!

I entered the browser as a guest and cleaned the cache, the problem still persists, the strange thing is that, as I mentioned, from the Android application I can edit the events and synchronize without any problem.

in case it is a database issue, what possible solutions would you recommend?

This also catches my attention, not being able to edit the events

Hi @alexander_carrasquel,

Can you do a screen capture so we can see what happens when you click edit? Then it goes directly to this “Something went wrong” screen?

Can you also have the “Network” (I have marked it in your screenshot) open when you click edit? And see if there are any URLs marked in red (meaning they failed) and send us those error reports if any?

Hello, today I updated the capture application to version 100.67.9 and the problem in question was resolved, I can now edit an event from the browser without problem.

2 Likes

Great, thank you for sharing the solution! :slight_smile: