- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsWhat is Ajax preloading?
Hello, so i run this theme on Ngix, when i try to translate it haves 0 effect, it just dont translate nothing from English to any languege. There is Error pulled out of log. Help?
2016/01/04 21:49:44 [error] 21838#0: *2105 FastCGI sent in stderr: “PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/clients/client127/web237/web/wp-content/themes/Newspaper/includes/wp_booster/aurora/tdx_options.php on line 116” while reading response header from upstream, client: 179.43.176.34, server: kana.pe, request: “POST /wp-admin/admin-ajax.php?td_theme_name=Newspaper
&v=6.4 HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9246”, host: “kana.pe”, referrer: “https://kana.pe/wp-admin/admin.php?page=td_theme_panel”
static function set_data_to_datasource($datasource, $options_array) {
if (!empty($options_array)) {
foreach ($options_array as $option_id => $option_value) {
self::update_option_in_cache($datasource, $option_id, $option_value);
}
}
self::flush_options();
it errors in the foreach line.
Hi @n_s_e
I’ve checked your site and seams that the indicated word comes from the article top ad sport: http://screencast.com/t/8QWQdKienh8 Check in theme panel > ads > article top ad if the spot contains something: http://screencast.com/t/aSK09bex7w and if is the case remove that content, clear all caches and test again.
Let me know how it goes.
Thanks!
Hello toros9,
Our theme has this option and when you want to share other posts on facebook will display the author name, like this: http://screencast.com/t/X9va7aOglP You have control on this feature from td_wp_booster_functions.php file like this: http://screencast.com/t/ThEgEFxgw6F Please inspect this file on your back end and check if you have this code. SEO Yoast Plugin is tested on our theme and works properly with default settings. I have no idea why do not work for you. If you use another Plugin for Seach Engine Optimization, try to disable it, maybe cause this problem and try it again.
Also, you can try to disable all the active plugins, except Visual Composer, empty all your caches and install only the plugins that come bundled with our theme.
Hope this helps and let us know how it goes!
Thank you for the message!
Hello,
The popular 7 days is sorting posts from the most popular down. So if a post has 10 views and others have below this number, then the post will be displayed first. Please clear your cache before testing it.
As for the performance penalty, it is a small difference in loading speed as more request have to be made to the server in order to check the post views but it is not a significant increase.
Thank you!
Hello,
The new version of visual composer is tested to work 100% with our theme. Please try to disable all your plugins except visual composer, clear cache and reset cdn if you use it. Update your version of vc and check again.
If the problem is still there after you disable all plugins, please send an email at contact@tagdiv.com and provide wp-admin so we can take a look at the issue.(if needed we can provide cia email the version of VC requested)
Thank you!
Hi
Try to deactivate all plugins except Visual Composer, clear all caches and test again. Usually this issue appear when the photon module of Jetpack plugin it’s used. If you use this module make sure you deactivate it and test again.
Thanks!
Hello,
Please try to disable all plugins except visual composer and clear your cache. Also check if you have any custom modifications done to the theme files. Please also check this issue on a WordPress default theme.
Let us know how it goes.
Thank you!
Hello
I can see 7 days popular post now. I have enabled post views and ajax view count. I notice that they appear not exactly sorted by most views, for example I have placed 5 articles and I can say that top 5 articles views are displayed but not in order, I don´t know if I could change this order or it´s a cache plugin problem.
As you said before, I have installed the recommended plugin WP-Cache, could it works with this configuration? What is exactly the small performance penalty?
Thanks
Hi,
Please send us your admin details via email so we can have closer look at this and also make sure you empty all caches and purge cdn files if using an cdn host then test again without any plugins active, besides theme’s plugins.
Address us at contact@tagdiv.com via email and also include a link tot this tread. We will get back back to your with an answer as soon as possible.
Thanks!
Hi,
I have checked your console again and you still have this error that could cause issues to the view counter – http://screencast.com/t/atFMmJzAT Please try to disable all the plugins except Visual Composer, clear cache and see if it counts when you refresh the post. If it works enable the plugins one by one and see which one cause this issue.
Thanks!
Hi
Please make sure that you updated the theme and the Visual Composer plugin according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ – https://forum.tagdiv.com/how-to-update-visual-composer-plugin/ deactivate all others plugins just to be sure that there is no conflict between Visual Composer and one of your plugins, clear all caches and test again.
Let us know how it goes and if you still can’t manage to solve this issue please send us your login credentials via email at contact@tagdiv.com so we can have a closer look at this issue.
Thanks!
Hello carmene,
I’ve tested on my side with Kite One font and bold weight and works as expected, you can see here: http://screencast.com/t/zostz6Rob -> http://screencast.com/t/5RJdHszSl. Please try to clear all your caches because might be caused by these.
For your second request, our theme has not been designed to add some fonts into the editor from the panel. It is not a simple task and if you want to have these options are required to change the whole functionality of the editor.
To display more levels, you need custom modifications and I suggest to hire a freelancer to do this for you as we cannot provide custom work at this time, sorry! Also, you can use a plugin with this functionality but I have not idea wich is this plugin, sorry! Please try to find it and see how it work for you -> https://wordpress.org/plugins/search.php?q=toggle you should search by TOGGLE (as example)
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
Happy new year!
If you still have this issue, please re-save your permalinks, clear all caches and purge your files if you use CDN like Christopher suggested.
Let us know how it goes and also provide your site url.
Thanks!
Hi
I’ve checked your site and noticed that you’re using an older version of Visual Composer plugin. I am not sure if this affect the way your affiliate link works but you can try to update the plugin at the current version available with the theme on themeforest, V4.9, clear all caches, deactivate all others plugins, leave just Visual Composer active and test again.
If you still can’t manage to solve this issue please provide the code that you’re using via
http://pastebin.com/ so I can inspect this closer.
Thanks!
Hi,
Please make sure you have post views enabled on your site and also if you use a cache plugin this sort order will not work properly like Catalin stated above. Also enable ajax view count – http://screencast.com/t/U4jJuAi2Dnn
Also you can test it by editing a post and take a look at custom fields: http://screencast.com/t/mSiJvu61tGj then refresh the post a few times and check if it increments. If those values are changed when the post is viewed then 7 days sort should work properly.
Thanks!
Hello colgate,
I have tested this feature on my side and everything seems to work properly. I have no idea why you have this problem. I suspect that could be a cache issue so try to clear all caches and test again. Also, please try to disable all the active plugins, except Visual Composer and install only the plugins that come bundled with our theme and try it again. If your problem is still there after this workaround, please provide your website URL so I can further inspect the issue.
Hope this helps and let us know how it goes!
Thank you for the message!
Hello Ryuko,
The theme code was tested and optimized for best performance, we have a lot of clients and the theme works well on a large variety of hosts.
First, please make sure that you use the recommended server configuration for Newspaper theme, you can check our documentation for more details: https://forum.tagdiv.com/requirements-for-newspaper/
There are lots of factors that influence the site’s page-sped. I suggest you first try this without any other plugins active, leave just VC plugin active the check again.
To improve your server response time you can try to reduce the number of queries (fewer plugins, fewer blocks on page, reduce the elements which use ajax requests/pagination like mega menus/load more/infinite load), also consider using a cache plugin, we recommend the WP super cache plugin with the following configuration: https://forum.tagdiv.com/cache-plugin-install-and-configure/
To improve the loading speed look the MySQL query cache: http://dev.mysql.com/doc/refman/5.1/en/query-cache.html we also use it on our demo.
Also, you can use the speed booster to move the js and CSS at the bottom of the page, eliminate render-blocking, but not for all plugins. Check the System Status if the speed booster is active if you use other plugins than the tested ones. You can find some useful information regrading Speed Booster usage in this topic: https://forum.tagdiv.com/topic/speed-booster-questions/
Also, you can read this guide, it may help – https://forum.tagdiv.com/how-to-make-the-site-faster/
Hope this helps and let us know how it goes!
Thank you for the message!
Hi
Try to deactivate all plugins except Visual Composer, clear all caches and test again. If the problem persist try this css in theme panel > custom code > custom css: http://screencast.com/t/UoHEgxhtvs
[class*="span"]{
margin-left: 0px;
}
Regarding the posts from big grid 5, they are displayed fine, but you have only four post set to be displayed in that grid: http://screencast.com/t/9OZNzD7Y Please make sure that you have enough post which correspond with the filters that you set for big grid 5, clear all caches and test again.
Thanks!
Hello,
on Chrome, my site doesn’t get the mods I made to typography and CSS. I’ve tried to empty the cache but nothing changes. On Safari, the mods are there. Any suggestions? Thanks
Hi
When the child theme it’s used for files customizations it’s a good practice to check update_log.txt file for each update and see what files had been modified so if those specific files are used in the child theme you will have to check your customizations to not break the functionality of the theme.
@rbemerson the way in which child theme works with our theme is by moving the file that you want to modify in Newsmag-child folder. You have to copy every file that you want to edit in child theme folder.
@DSLRMZ I have checked the child theme functionality and works fine. Please make sure that you’re using the child theme from the same package with the main theme: http://screencast.com/t/gwJPjoBUbvZ clear all caches, deactivate all plugins except Visual Composer and test again.
Thanks!
Hello John,
Please ensure you that this problem is not caused by a conflicting plugin. Please try to disable all the active plugins, except Visual Composer, clear all your caches and install only the plugins that come bundled with our theme and in this case, you should rule out the conflicts between plugins. After this advice, if your problem is still there, please send us an email at contact@tagdiv.com and provide your log-in information so we can take a look at your page setup. Please also provide a link to this topic so we know who you are.
Hope this helps!
Thank you for the message!
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
Hello lospicos,
I’ve tested on my site and everything seems to work properly. Please ensure you that this problem is not caused by a conflicting plugin. Please try to disable all the active plugins, except Visual Composer, clear all your caches and install only the plugins that come bundled with our theme and in this case, you should rule out the conflicts between plugins. After this advice, if your problem is still there, please let us know.
Hope this helps!
Thank you for the message!
Hi @barryc123
You can set the featured image from post editor: http://screencast.com/t/fzThUQ0Nq1u Also try to regenerate your thumbnails https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/ deactivate all plugins except Visual Composer, clear all caches and test again.
If the problem persist please provide your site url so I can inspect it closer.
Thanks!