# An unknown error occured while loading the data

**URL:** <https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957>\
**Category:** Help\
**Created:** [January 9, 2019, 7:48pm UTC](https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957 "2019-01-09T19:48:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwhite1st](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jwhite1st/32/9376_2.png) [@jwhite1st](https://discourse.pi-hole.net/u/jwhite1st)\
**Post date:** [January 9, 2019, 7:48pm UTC](https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957/1 "2019-01-09T19:48:47Z")

</div>

## Expected Behaviour:

Seeing all the queries by a device.

## Actual Behaviour:

Getting "Unexpected error occurred while loading the data". But only for some clients, other clients show up fine.

## Debug Token:

Debug Token: 1yayo7ark3

I am nginx instead of Lighttpd. It might be because the log Tail of /var/log/nginx/error.log shows `[error] 634#634: *38211 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: api in /var/www/html/admin/scripts/pi-hole/php/add.php on line 14" while reading response header from upstream, client: 192.168.0.155, server: pi.hole, request: "POST /admin/scripts/pi-hole/php/add.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "pi.hole", referrer: "https://pi.hole/admin/queries.php"`. So maybe I messed up during the change from lighttpd to nginx but I don't think so as some clients show. My guess is that there is a file too big to be loaded but I don't know where it would be.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [January 9, 2019, 8:03pm UTC](https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957/2 "2019-01-09T20:03:20Z")

</div>

This guide may provide some assistance setting up nginx:

[https://docs.pi-hole.net/guides/nginx-configuration/](https://docs.pi-hole.net/guides/nginx-configuration/)

---

<div class="post-metadata">

**Author:** ![jwhite1st](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jwhite1st/32/9376_2.png) [@jwhite1st](https://discourse.pi-hole.net/u/jwhite1st)\
**Post date:** [January 9, 2019, 8:40pm UTC](https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957/3 "2019-01-09T20:40:25Z")

</div>

That is the guide that I followed and I have set up nginx sucessfully it is just when looking at logs that I get issues.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 30, 2019, 8:40pm UTC](https://discourse.pi-hole.net/t/an-unknown-error-occured-while-loading-the-data/15957/4 "2019-01-30T20:40:34Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
