Our website has crashed. The host has reported this problem with Toolset Starter Theme :
Your theme is spilling logs into the PHP log file with this error ``Warning: readdir() expects parameter 1 to be resource, boolean given in /wp-content/themes/toolset-starter/functions.php on line 193``
Please advise. Cannot even access wp-admin the provide debug info.
This is the complete error message that is appearing. We do believe this is in fact the error that is causing the site to 500. It may be a warning, but it's happening multiple times a second- we lost count at 30per second with many more to still count.
```
2018/11/01 15:58:13 [error] 1774#1774: *553 FastCGI sent in stderr: "ge: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starter/functions.php on line 193
PHP message: PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /www/wp-content/themes/toolset-starte
```
It appears it cuts short as another error occurs before the server can completely record the error itself.
If you'd like to take a peak, you can download the entire error logs via the site's advanced tab to have your developers take a peak.