Empty screen upon Check
-
Hi, I’ve download Theme Check, activated it and tried to run a test on my theme.
However, nothing is appearing on the admin screen.
I just have the dropdown and the checkbox (Suppress INFO).
My browser seems to be loading the page for a few seconds but then, nothing happens.
Does this mean that everything’s OK or that the test is not loaded correctly ?
Regards,
Matt
-
Same for me. I am checking Customizr Theme and just a blank inner screen. Theme Check on Twenty Fourteen and Twenty Thirdteen run successful. Any idea?
No idea. Maybe increase the PHP memory limit, or check the error log?
Hello Otto,
I have checked the memory limit. There is enough memory this is not the problem? Any more idea?
Thanks
Roman
Same here. Running it on a vagrant VM with nginx/php-fpm. Here’s the output of the log.
vagrant@homestead:/var/log$ sudo tail /var/log/nginx/www.mill.dev-error.log
2014/11/23 12:57:56 [error] 6897#0: *15 upstream timed out (110: Connection timed out) while reading upstream, client: 192.168.33.1, server: http://www.mill.dev, request: “POST /wp-admin/themes.php?page=themecheck HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “www.mill.dev”, referrer: “http://www.mill.dev/wp-admin/themes.php?page=themecheck”OK, added
fastcgi_read_timeoutto/etc/nginx/nginx.conf:http { ... fastcgi_read_timeout 600s; ... }Make sure to
sudo service nginx restartif you’re following along.Now the page loads rather than just returning a blank/empty page, and now I get a bit more in the error log.
vagrant@homestead:/var/log$ sudo tail /var/log/nginx/www.mill.dev-error.log 2014/11/23 13:35:30 [error] 7630#0: *53 FastCGI sent in stderr: "PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/checkbase.php on line 158 PHP message: PHP Stack trace: PHP message: PHP 1. {main}() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/themes.php:0 PHP message: PHP 2. require_once() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/themes.php:10 PHP message: PHP 3. do_action() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/admin.php:212 PHP message: PHP 4. call_user_func_array:{/home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505}() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505 PHP message: PHP 5. ThemeCheckMain->themecheck_do_page() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505 PHP message: PHP 6. check_main() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/theme-check.php:57 PHP message: PHP 7. listdir() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/main.php:17 PHP message: PHP 8. RecursiveDirectoryIterator->hasChildren() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/main.php:158" while reading upstream, client: 192.168.33.1, server: www.mill.dev, request: "POST /wp-admin/themes.php?page=themecheck HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.mill.dev", referrer: "http://www.mill.dev/wp-admin/themes.php?page=themecheck"So I have changed
max_execution_timein/etc/php5/fpm/php.inifrom 30 to 300. Again, make sure to restart the php servicesudo service php5-fpm restart. Now I get the blank/empty page again.vagrant@homestead:/var/log$ sudo tail /var/log/nginx/www.mill.dev-error.log PHP message: PHP Stack trace: PHP message: PHP 1. {main}() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/themes.php:0 PHP message: PHP 2. require_once() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/themes.php:10 PHP message: PHP 3. do_action() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-admin/admin.php:212 PHP message: PHP 4. call_user_func_array:{/home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505}() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505 PHP message: PHP 5. ThemeCheckMain->themecheck_do_page() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-includes/plugin.php:505 PHP message: PHP 6. check_main() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/theme-check.php:57 PHP message: PHP 7. listdir() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/main.php:17 PHP message: PHP 8. RecursiveDirectoryIterator->hasChildren() /home/vagrant/S3Box/Development/Themes/www.mill.dev/wp-content/plugins/theme-check/main.php:158" while reading upstream, client: 192.168.33.1, server: www.mill.dev, request: "POST /wp-admin/themes.php?page=themecheck HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.mill.dev", referrer: "http://www.mill.dev/wp-admin/themes.php?page=themecheck" 2014/11/23 13:52:08 [error] 7634#0: *60 upstream timed out (110: Connection timed out) while reading upstream, client: 192.168.33.1, server: www.mill.dev, request: "POST /wp-admin/themes.php?page=themecheck HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.mill.dev", referrer: "http://www.mill.dev/wp-admin/themes.php?page=themecheck”So, now to remove nginx from the mix, I stop nginx using
sudo service nginx stop, edit the cli php.ini at/etc/php5/cli/php.iniupdatingmax_execution_timefrom 30 to 300 again. I then cd to the project root directory (WordPress, not the theme) and runsudo php -S 192.168.33.10:80to serve it using PHP.vagrant@homestead:~/S3Box/Development/Themes/www.mill.dev$ sudo php -S 192.168.33.10:80 PHP 5.6.0-1+deb.sury.org~trusty+1 Development Server started at Sun Nov 23 14:02:36 2014 Listening on http://192.168.33.10:80 Document root is /home/vagrant/S3Box/Development/Themes/www.mill.dev Press Ctrl-C to quit.Now I reload the theme check page once again in the browser and wait for a result/error to be output in the command line. Now the page loads successfully showing the theme check results, so seems it’s a php/nginx timeout issue, likely because it’s running inside of vagrant with limited resources.
Ahh, a timeout makes sense. It is reading a lot of code and running a whole heck of a lot of regular expressions. I don’t use it in a vagrant, typically. Just in a local XAMPP install.
I have the exact same problem.
I am using local XAMPP installation, but when I check my theme, it shows a blank page.
It works well with other themes though.
What should I change or what I am doing wrong?
In the theme I’m working on, we’re using Gulp and SCSS which in turn creates two folders; node_modules and .sass-cache in the root of the theme which both contain a lot of additional files/folders.
It just occurred to me that Theme Check would also be scanning these which are obviously nothing to do with the theme, so I deleted them just to see if it made a difference and I’m now seeing Theme Check return results in a much more acceptable 19 seconds, as opposed to several (~5) minutes before.
Hope this helps someone.
Might be an idea to allow a config file or add a few options in wp admin to exclude certain files/folders @otto?
I also have git files/folder for example. Not sure if Theme Check ignores hidden folders/files but either way, being able to be explicit about what’s not checked would help prevent these issues.
The topic ‘Empty screen upon Check’ is closed to new replies.