- NewspaperWhen tagDiv Composer is Not Working
- NewspaperRequirements for Newspaper
Has anyone managed to get Newspaper6 to work with NGINX where by when I click on the secondpage e.g newspaper.com/page/2/ and it redirected back to homepage ? I tried googling around for solution, setting vhost $uri and etc. Still couldnt get it to work.
Any help is appreciated.
Hi,
I did not install any cache plugin due to i am using nginx server, this is what my hosting provider advise me. Therefore i would like to ask should i enable Ajax for the view count? And will it increase the load of the server since it will trigger admin-ajax.php.
Thanks.
Regards,
Terrence
Hi,
I don’t know for sure but I suspect that as the plugin editing section became more complex the header data increased. By default the client header buffer on Nginx is a bit low, you can read more on web, ex. – http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers – https://www.cevapsepeti.com/yazilar/nginx-header-large-client-header-buffers-problem/
Thank you!
I have found the issue. It was because of large_client_header_buffers in nginx. I increased it to
4 8k from 2 1k.
I am wondering that why the visual composer would send such big request header?
Yes it is Shared hosting but it’s too fast and the server is Nginx I have 15 essential plugins enabled.
Answer my few questions’
1. Are you on shared hosting?
2. is your server Apache or Nginx
3. How many plugins do you have installed?
There are also some really good articles out there on speeding up your website using Nginx + Varnish for “optimizing WordPress for speed” … don’t have links handy. I looked at that in depth Jan. 2014, ended up sticking with Apache for our little corner of the universe. 🙂
Hi
I’ve found some useful information in this regard here, it may help: https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ http://www.rackspace.com/knowledge_center/article/installing-nginx-and-php-fpm
Thanks!
Hi
Please check this guide regarding purging cdn: https://www.nginx.com/blog/9-tips-for-improving-wordpress-performance-with-nginx/ Also try to deactivate all plugins except visual composer, empty all caches again then test again. If the problem persist please provide the css code that you’re using so I can inspect it closer. I’ve also test test this on your site and the css for for excerpts works fine: http://screencast.com/t/v9DTOB56pUA
.td_module_10 .td-excerpt {
color: red;
}
Thanks!
@ bayu
How did you set up the Nginx and php5-fpm, did you install any other stuff like Varnish or Memcached?
Thanks
I think we chose to use opcache/APC + mod_pagespeed here …
but Varnish has been around quite awhile — lots of folks use it with NGINX server setups, especially. We’re Apache-centric here (at my company) so we’re kind of using the stuff built into Apache, CentOS, Plesk, where possible.
Waiting on HTTP/2 support to get one dot newer with Apache, as this replaces SPDY and some other stuff and is the cat’s total meow! 🙂
<center><h1>403 Forbidden</h2>
<h4>nginx</h4></center>
I think it’s spam post!
Ok, you have memcached installed in your server. Another plugin for nginx + memcached its WP-FFPC . Already you’ve tried?
-
This reply was modified 10 years by
Ing Geek.
Bryson, try this. Deactivate w3tc and install wp rocket + TagDiv Speed booster. Few months ago i was on Nginx server and this config works very good for me
Regarding the flush calls, since that’s in TGM I don’t know if that counts. Doesn’t seem to me that code is run on every front end page load to throw W3TC off. But you tell me?
Right now I’m using W3TC with just the reverse proxy, browser, and database cache modules active. That’s with a very lightly applied Varnish cache (doesn’t do much for WP without page caching activated), apache, nginx, and APC running. It’s actually a smaller server at the moment, but handled some better loads yesterday. Using SSDs. I’m going to upgrade it in the next week or so, which will help.
My main concern with speed for mobile (more than half my traffic is mobile) and a caching plugin that doesn’t hold stale pages. WPSC tends to not update the front page cache for half an hour after a new post is published. I’ve used it with Newspaper.
Part of it not understanding what you mean by “disk cache” in that reply. I have APC, Varnish, Memcache, Apache and Nginx all running. It’s a Cloudways managed setup, so my options are somewhat limited. My understanding is that WP Super Cache doesn’t work with reverse proxy or any of the other advanced stuff.
Your installs may not matter on this issue because you don’t have but a few plugins on any of the demos. Extra plugins means extra bloat and more need for premium caching.
Any further help on that is appreciated.
And as for W3TC’s claim that some flush method is responsible… are any instances used in the theme that I missed?
Thanks, Radu.
Hi Bryson,
Unfortunately it is very hard to debug this thing without replicating it.
We run the theme about one year ago on nginx + w3total cache and we did not encounter any problems. I’ve also used in that time the APC user cache.
Why can’t you switch to disk caching + wp super cache? Even when disk caching is used, the linux kernel will actually cache the files in memory if ram is available : https://www.thomas-krenn.com/en/wiki/Linux_Page_Cache_Basics
We tested the apc cache VS the normal disk cache and we did not found big improvements. We are currently using wp super cache and normal php disk caching on all of our installs.
Please send me the page (by using save as)…. the page source is encoded?
-
This reply was modified 10 years by
Radu.
Pretty much at the end of my wits on this issue. I’m using Newspaper 6.5.1 & W3TC, which I’ve said before I hate but have since moved to a managed VPS that is built to use it for APC and Varnish.
The problem I’m getting is encoded pages being served from the page cache module, regardless of what other modules are or are not enabled. If I change themes to something from a different developer, the problem goes away. The W3TC plugin FAQ on WP.org addresses this and says it’s due to the use of php_flush() or the function flush() by the theme, but I’m not seeing that in the header, index, or footer files though it’s entirely possible that one of those calls is in a deeper file.
Here’s what it looks like:

This has been an on-going issue for me since about July of last year (I’ve kept Newspaper up to date within a few days of every update) and has remained consistent across two hosts (one cloud shared and one VPS). At the time this started W3TC was the recommended caching plugin for theme and even though that recommendation has changed, it’s not because the plugin breaks the theme. I can’t figure out what’s going on.
The host has looked into it with no luck. The W3TC support team doesn’t exist. And I’m not seeing the flush methods called from the theme to answer the documentation’s claimed cause of the problem.
Any ideas? I’m at a loss now. I’ve got a beautiful varnish/memcached/apache/nginx setup going to waste because of this and it’s starting the impede growth of the site.
Thanks.
Hi Alin,
Thanks for that.
It appeared to be a mixture of both — regenerating thumbnails said everything is ok were in fact it wasn’t as php-gd was installed but not recognised by Nginx. The grid issue was indeed caused by an old child theme version.
Thanks a lot for your quick help!
hello;
are you using nginx?
Hi
I’ve tried to customize header_menu.php and header-style-7.php, including modified files in parts folder inside my Newspaper-child theme: it works, but now I would like to go back to defaults.
I’ve deleted parts folder in the child theme, but if I select Style-7 I get just a blank header.
I’ve also tried to switch to another header style (it works), then Style-7 again, but nothing changes.
I’m not using any caching, by now, and I’ve also restarted nginx and php5-fpm.
Am I doing something wrong?
Thanks in advance
aha, I have found the issue, the newspage.woff and eof both were rejected by nginx due to security configuration. I have blocked access directly to wp-content. After I removed the single line, those icons are back online. chew~~
Thanks again. your theme is fabulous.
Hi Bogdan,
Thanks for the solution, I have tried to add the following config to the root location as I am using nginx
location / {
add_header 'Access-Control-Allow-Origin' *;
}
those icons are still not showing.
Nginx FastCGI Caching, but it should not affect this as it is running on the web server layer and disabled during I am logged in as admin
-
This reply was modified 10 years by
kornobis.
Hi
I have problem with user registration. When I register user in normal mode sitre urle/wp-login etc I got notification email for new registered user but when I use your custom made pop up user registration form new user doesn’t get notification. Login and password work good both on your custom made login form and original wordpress. I check it out on two diffrent servers one on apache one on nginx. I think that there is some issue maybe in td-login.php file but I’m not sure at all.