I dont know how to fix this OS issue, its all guessing on my part.
Maybe you have better luck at a proper Pi-OS/Raspbian support forum.
Or wait for someone here that has a solution for the mandb issue.
The two problems your experiencing might be related.
And I would get the mandb issue fixed first before proceeding to solve the other problem(s).
For comparison with my Pi-hole + Unbound dedicated Pi:
cat /proc/device-tree/model
Raspberry Pi Model B Rev 1
I think I'll just reflash my raspberry pi altogether, seems like too many things are broken at this point. Thanks a lot for your help! Really appreciate it!
Actually, I didn't notice the url and clicked it (it's really late here and I've got a maths exam tmr) and IT WORKED! Only the pi.hole/ page is broken, apparantly all other pages are working fine. That's quite interesting.
EDIT: Ow and some virus scanners can interfere, try disable it and try load the page again!
Maybe you have to create some exception in your AV for Pi-hole.
EDIT: Ow and what URL are you trying to access?
Below is proper one (http and not https):
I don't think those should cause an issue since I've tried using different browsers and different devices. I will still however reflash my pi just to fix the mandb issue. Thanks a lot for your help! A link sent by mistake ended up solving it upto some extent, the world sure can be weird!
Even though the dashboard successfully opens and logs in, most actions still result in a 500 Internal Server Error with the same error as above popping up in logs. I will go ahead and reflash my pi as mandb still appears to be broken and pihole, even though functional, is not working properly.