Blank pages in WordPress pages

Blank pages can be seen in wordpress if the X-Frame-Options are set to deny. You can view the problem using browser dev tools and view the console log.

X-Frame-Options are used to indicate whether or not a browser should be allowed to render a page in a frame, iframe or object. Sites can use this to avoid clickjacking attacks.

Changing from DENY to SAMEORIGIN should work in most cases.

Nginx configuration

add_header X-Frame-Options SAMEORIGIN;

Using WordPress With LEMP


If you get the error ‘http error’ while uploading media:

1.Edit nginx.conf

nano /etc/nginx/nginx.conf

and add to the http block

client_max_body_size 100m;

2.Edit PHP config

nano /etc/php5/fpm/php.ini

and increase upload sizes

post_max_size = 100M
upload_max_filesize = 100M