- NewsmagRequirements for Newsmag
I wanted to let u know also that I tested on another hosting (a shared one on ipage) and worked perfectly.
The site we want to upload is on VM on digitalocean with Nginx, MySql & php-fpm
Is there any special setting we could change in order to make it work?
thanks a lot
You need to specify each category in the editor for each ‘block/module’ on your home page in the visual editor on the ‘page’ you have created.
To tune your site, you need to do a number of things
a) increase default memory for WordPress in your wp-config file
b) make sure your hosting setup is optimized (gzip/deflate on?)
c) put proper directives in your htaccess file (for Apache; sligtly diff. for Nginx)
d) optimize images
e) tune your site with ads off
f) consider using caching AFTER you have everything else sorted
You can test your site speed and recommended fixes at gtmetrix.com for free.
Also see the theme docs on ‘speeding up your site …”
NEWSMAG OPTIMIZATION EFFORT 2016
——————————-
PRECIS:
* WordPress 4.6
* Newsmag 3.1
* tagDiv Composer v1.0 BETA
* TD Speed Booster plugin – Version: 4.5
——————————-
I am re-optimizing my network sites since upgrading from v2 v3, and needing to revisit all the past steps from past 3 years with new TadDiv tech, code, etc.
This project presumes I will do several advanced things
1) run mod_pagespeed on deploy; currently disabled for all other efforts; with proper webp format support added as mime type and in htaccess (MPS converts some png files to base64 inline, and others to .webp format when better than jpeg)
2) compress main css and js files not already compressed after ‘thinning’
3) decomment some TD files loaded by pages which are (ahem) overly commented
4) have proper gzip/deflate/TTL elements on server
5) no caching used for initial deploy (MPS uses opcache/memcache)
6) move CSS to footer and use critical CSS generator for inline above the fold CSS
7) test free SSL cert and http/2 on our new server for 2017
8) test move to PHP7 from PHP5
Follow along if the mood strikes; I’m just sharing my info not offering to consult with you (you cannot afford me, in most cases). Please do not post any questions until I post the info during last half of August 2016, as you can “try” any of my changes if you wish, at your own risk.
I am using Unix/Linux, CentOS, Plesk 12.5x (will likely move to ONYX when releases for 2017); Apache with NGINX in front; dedicated server, 1GB connection to network in Class A datacenter in Texas, USA. Running PHP 5x with PHP7 installed and will test ‘7’ once initial deploy stable with my ‘thinning’ and optimization.
Hey party people, it’s on!
-
This reply was modified 9 years by
simchris.
I just don’t want to load down my site with bloated stuff that isn’t needed.
I also found a big chunk of Buddypress CSS – why is that there?
I’ve removed some of the things I don’t think I need and that has taken the 876K down to 691K. (I estimate I can get it down another 100K.
The minified complete style.css is 648K and the cutdown minified css is 489k
Before, My story pages were loading in 8+ seconds. Now they are loading in 4 seconds.
That is better, but I want them to be faster. That is why I want to remove anything that doesn’t need to be there. I haven’t tried it with the cutdown CSS yet.
I’ve also tried most of the things suggested by Chris, including preventing Visual Composer loading in stories (posts).
After this, I will work on shrinking VC for the front page.
Then, I will try using Varnish and nginx rather than Apache.
You can experience problems with 3.1 due to cached CSS.
I ran update on site with varnish and 2D ttl on css on nginx.
It gave me small problems that users needed to do hard refresh to get the page to look nice.
Every time my site gets more than 1,000 users at once, the site slows down to the point where it’s unusable. CPU load is over 85 percent. I’m using Cloudflare nginx server and caching, but I don’t have any caching plugin installed currently. The issue with the site is with the wpt_view_count function that keeps showing up in my source code, but I have view count turned off.
Here is the offending code:
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$.post(‘http://www.**********.com/wp-admin/admin-ajax.php’, {action: ‘wpt_view_count’, id: ‘9738’});
});
</script> </div>
Please advise, as I’m losing the ability to post anything on the site when I get any amount of decent traffic.
Thank you.
Hi,
I noticed that the FB social counter does not update immediately even when the page is refreshed manually. Is this how it works? Here’s my setup:
Web server: Nginx + PHP-FPM (v7)
CDN: Cloudflare (Free)
The FB social counter would update after several hours. I tried restarting Nginx and PHP-FPM but it did not force update. I also purged all the files from Cloudflare and put it in development mode to prevent caching. Still the FB counter does not update when I refreshed the page. I even bypassed Cloudflare entirely so that requests would go directly to the server. Still, the counter did not update.
Another issue I experienced was getting the access token using the “Get Access Token” script. It does not get anything at all. I had to manually get the token from https://developers.facebook.com/tools/explorer/145634995501895/
Thanks
Open up the console and that was there:
was loaded over HTTPS, but requested an insecure script ‘http://api.tagdiv.com/user_translations/get_translation?callback=jsonpCallback&language_code=pt&_=1464400386052’. This request has been blocked; the content must be served over HTTPS.send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4
can you guys enable https?
I recommend letsencrypt.
If you’re using docker, with a nginx-proxy there’s even a docker for that:
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
I have a funny issue with mobile website version of articles displayed on low resolution (less than FullHD) on desktop browser (mac with safari/chrome and firefox).
I don’t use a cache plugin, I use nginx / redis full-page cache.
The mobile plugin might be a good idea but it currently creates many issues. I understand that you can’t test every possible server setup and all plugins, I am a still a little bit disappointed by this new feature.
Hello, can you help me to find out why the thumbnail crop is look very weird even after i do force regenerate thumbnail? and the icon that i set on Theme-Panel for iOS Bookmark is didn’t show up when i add my site on iOS device.
My web is 1news.id
For more information it’s on Nginx VPS Server
Yes it is.
I use PHP7 + Nginx 1.10.0 + MySQL 5.7 on Ubuntu 16.04
Unfortunately no luck.
I have disabled ALL but your plugins,
I cleared the server cache, restarted the server (nginx+ redis + hhvm)
Installed new chrome dev browser (Google Nexus 6P) to check and the following STRINGS appear in English language instead of GERMAN:
– ABOUT US
– FOLLOW US
– LATEST ARTICLES
Other language strings are okay, meaning the translation appears. When the mobile plugin is disabled, the above mentioned languages strings are okay.
On the other hand if it is only my specific problem and not a theme BUG I will try to solve it on my own.
I want to use CDNSun for our theme, but custom load failed. CDNSun give some suggest like:
How to enable CORS
Add the HTTP header Access-Control-Allow-Origin: * (allowing all domains to request the content) to all files on your origin with eot, ttf, otf and woff extension.
# Apache
<FilesMatch “.(eot|ttf|otf|woff)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
# Nginx
location ~* \.(eot|ttf|otf|woff)$ {
add_header Access-Control-Allow-Origin “*”;
}
Our CDN honors all HTTP headers set on origin so in particular your custom fonts in the CDN cache will have the Access-Control-Allow-Origin: * HTTP header set and they will work in every browser.
Do Newspaper support this?
Good morning all,
I’ve been noticing that I often need to load a post twice in order to get the images to load. This seems (observation only) to be more prevalent when choosing Style 8 as the template where the main background image will load but no others.
Is anyone else experiencing this?
It is not my server. I run 32GB of RAM, SSD drives, Nginx and Litespeed server and use Cloudflare.
The site is http://ideas2live4.com
Thoughts, suggestions, solutions?
Thanks,
David Wilks
I changed 2 hosting providers, both because site was slow (url: visoko.co.ba). But, now i am on third hosting on this package:
https://www.menkisys.de/cloudserver/homepage-shop-ssl-website
and again have problems. I dont have any more sites on this server, only this Visoko.co.ba. Owner of server said to me that site uses too much RAM at some times, and server blocks and site becomes not responsive.
can this be because of theme or wordpress? I found this on post about page speed:
“If you have a dedicated server / VPS:
make sure that you have APC installed or another ‘op cache’ for php. This will reduce your server response time.We have receive some reports that the accelerator has some problems in some specific configurations with our theme and Nginx.”
why are you using nginx and apache at the same time? Use memcache only if you have setup multiple VPS to host your website. You don’t need a caching plugin if you use nginx. The configuration file can handle the caching of static content on VPS
My server is 8 cpu, 12G ram, APC, Memcashe,server nginx with apache. W3cash.
Hello,
We have recently moved the site to a Nginx server, everything is oeprational except for Feature Video, it will not create the feature image.
I’ve ensured following the steps here:
https://forum.tagdiv.com/featured-image-or-video/
For Feature Video
I have disabled everything, zend ocpache, all caching plugins, I’ve disabled all plugins entirely except for js_composer.
We are running PHP 5.6.
Hi,
I solved my problem.
In fact, many of the settings did not work on the theme.
I viewed on SQL td_011 items in phpmyadmin so i understand that there are problems in the PHP version
My current version of PHP 5.6 on Apache 2.4
I built as Apache 2.4 PHP 5.5
Newsmag running stably on PHP 5.5 in Centos 7.2
Note: Also Nginx not working or not stable in Centos 7.2
Best regards,
Erdal Cakmakcı
-
This reply was modified 10 years by
erdalcakmakci.
Hi
Infinite loading works perfectly on desktop browser. But on mobile devices, it doesn’t load. When I checked using dev-tools, I can see that on desktop admin-ajax.php response has a json response with the next set of articles, while on mobile the response is 0.
Can’t figure out why this is happening. I’m on nginx, varnish, php5-fpm, w3tc, cloudflare, tagdiv speedbooster. Kindly help me.
Hi
Compliments for the extensive theme and its options. I am impressed with all the functions and possibilities, but encounter a problem that I can’t seem to fix without help. I have searched the forum and tried several solutions found on the forum and by searching Google, but with no luck. We have draft articles and deleted articles showing up in the search results and I have no idea on how to fix this. Any suggestions?
Our site is running on nginx and using Varnish and Cloudflare for caching purposes. With or without Cloudflare active makes no difference. The search page with results is not cached but somehow the search engine is able to show results of pages that either have been deleted of are not yet published (drafts) or meant to be (deleted).
Regards
Wilbert
I tried this line in nginx…
location ~* \.(eot|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin “*”;
}
didn’t work. I tried httaccess method, didn’t work either.
Then simply told my host to send CORS headers forfont files for my website. They confirmed it and I see that that it was done “Access-control-allow-origin: * ”
Still those perky icons not loading lol
When font awesome didn’t want to load, i simply loaded it from external CDN (maxcdn) and it worked again. If i can do the same with the other random font files, then would be good to go.
I don’t know if this problem related to the theme or not but let’s see. and please help me :/
I started from 10/2015 with newspaper theme my CTR was about 4% and sometimes higher
then traffic was increasing so i moved to VPS ” nginx ” and cached my website
and used cloudflare and used their plugin to restore the user IP.
after that my CTR is dropped too much ! and for sure my CPC.
I’m using ads from your ads system and shortcodes also from newspaper shortcodes for ads
I’m thinking about the ads maybe it’s not appear to mobile devices due to caching or something like this i really don’t know :/
Here’s a link for a multi-page article https://boredomdoctors.com/handyman-fix-furnace/
I don’t know the problem but sure it’s from caching or cloudflare because before this i was working so well!
Indeed! Thank you Chris!
I thought it was nginx, because just recently I was solving the 404 redirection.
Cheers.
Are you sure that isn’t t he pagination bug with WP 4.41 ?
NGINX doesn’t handle permalinks, WordPress does, and generally via the htaccess file or comparable.
Note the sticky thread on bug in WP 4.41 which will be fixed in WP 4.42; and there is temp workaround posted.