WordPress 4.4.1 pagination NEW FIX!

Posted in: Newspaper
Post count: 780

The WordPress 4.4.1 security update introduced an incompatibility issue with a lot of themes that use custom pagination on homepage templates. We are very sorry for this inconvenience and we are working very hard to fix this ASAP with an update from themeforest.

UPDATE: Newspaper 6.6.4 is in the approval queue. You will get an email from themeforest when the update is out.

Until the final package is ready, you can use this fix for the pagination issue (paste it at the end of your functions.php file from the theme)

add_filter('redirect_canonical', 'td_tmp_fix_wp_441_pagination', 10, 2);
function td_tmp_fix_wp_441_pagination($redirect_url, $requested_url) {
   global $wp_query;

   if (is_page() && !is_feed() && isset($wp_query->queried_object) && get_page_template_slug($wp_query->queried_object->ID) == 'page-pagebuilder-latest.php') {
      return false;
   }

   return $redirect_url;
}
  • This topic was modified 10 years by Radu.
  • This topic was modified 10 years by Radu.
  • This topic was modified 10 years by Radu.
Post count: 44

Great, this works fine. So do you think this change in WordPress 4.4.1 is definite or might they change things to fix what was broken (so we won’t need the fix above)?

Post count: 8

wonderful, works perfectly

Post count: 85

I updated to Newspaper v6.6.4 but this doesn’t seem to completely solve my pagination issue. I can click on page 3, 4 etc, but not page 2. Page 2 sends me back to the homepage.

Site: http://gfqnetwork.com/

I am using a child theme if that makes any difference.

  • This reply was modified 10 years by sunkast.
Post count: 85

Nevermind. Had a couple friends look at it and it appears to be a browser cache issue on my end.

Post count: 780

UPDATE: the pagination issue may be from a bug that was introduced in WordPress 4.4.1: https://core.trac.wordpress.org/ticket/35344 from that bug report it seems that they will fix it in WordPress 4.4.2 . Until they fix it, our solution should work as a fix.

other reports:
https://core.trac.wordpress.org/ticket/35353
https://core.trac.wordpress.org/ticket/35359


@sunkast
yes… browsers tend to cache header responses more aggressively.

  • This reply was modified 10 years by Radu.
  • This reply was modified 10 years by Radu.
Post count: 8

Thanks Radu, this fix solved my problem 🙂
Once wordpress 4.4.2 released, do I need to delete this fix from function.php? Or it is okay to left it there?

Post count: 22421

Hi,
For now leave it there and we will see when the next update comes out if the fix needs to be removed or it can be left there. It is too early to tell right now and we need to test this if we are going to give a statement weather you should remove it or not.
Thank you

Post count: 15

We downloaded an updated theme from Envato. Works perfectly. Will there be any issues when WordPress releases version 4.4.2 ?

Best Regards

http://www.ayrton-senna.net Team

Post count: 22

Hello it looks like my site’s infinite loading is not working… it only shows normal pagination

Post count: 22421

Hello,

Please create new topics for issues as this one being a sticky one, it will be difficult to follow. (We would have to constantly check it for new posts).

@sennasempre
Unfortunately we cannot know the future so we cannot say what will be changed in version 4.4.2 and if there will be any issues with our theme (WP officially stated they will fix the issues created by 4.4.1 but just as easily others could be created at the same time). What we do know is that if there will be any issues, they will be fixed as soon as possible.

@BhawaniGarg
Your problem is different than the one created by WP. Yours sounds like a plugin conflict so please disable all plugins except visual composer and clear your cache. If the problem persists please create a new topic and provide as many details as possible. Provide a link to your website as well so we can inspect it.

Thank you!

Post count: 6

Hi
I use Newspaper Version 444
I try the fix in function.php but did not work. Could you help me to fix it.
Thanks and best regards

Post count: 16

Hi I have Newspaper Version 6.4 and same problem :/ I tryed to fix it in functions.php. Do not work. Thank you for help.

http://www.sportujeme.sk

Post count: 22421

Hello,


@dessousat
Unfortunately we have not tested the new version of WP with the old version of our theme and we are not sure the fix provided will work with that version. Please update your theme to the latest version so you can benefit from the updated features and fixes for issuers like these.


@sportujeme
Please check your fix again and make sure you copy the whole code in the correct file. If it still will not work, then please update your theme as the fix was implemented in the latest version (6.6.4)

Update tutorial: https://forum.tagdiv.com/how-to-update-the-theme-2/

Thank you!

Post count: 1

Hello,

Thanks for your solution, my Newsmag met this problem too! Haha!

Thanks again!

Post count: 54

i add fix and still not working for me

i use

WordPress 4.4.1

Theme config
Theme name i Newsmag
Theme version i 2.2

  • This reply was modified 10 years by yopyop22.
Post count: 6535

Hi

Try to deactivate all plugins except Visual Composer, clear all caches, purge cdn files if you’re using and test again.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials and we will inspect this issue as soon as possible, also include a link to this topic.

Thanks!

Post count: 90

Now that WP 4.4.2 has been released what happens with Newsmag? Will you release a new version soon or the current version is compatible with 4.4.2?

Post count: 22421

Hello,
As far as we know the current version of newsmag has no issues with the latest version of wordpress. We have not encountered any bugs or issues with it so it.
Thank you!

Post count: 54

But now with 4.4.2 we must add the fix or not ?

Post count: 54

i add the fix, i make update to 4.4.2 and still same problem

look here

http://destinationsoleil.info/jeux-gratuit-en-ligne/

and try to go in second page

maybe is my cache ?

Post count: 44

I removed the fix from my functions.php and everything works fine, so I reckon WordPress fixed the problem with fix #35344 (Strange pagination issue on front page after 4.4.1 update).

Post count: 54

ok i remove the fix and the problem was still there ?

Post count: 22421

Hello,
Please update your theme to the latest version and no fix will be required anymore. The same applies to both themes as the issues with wp 4.4.1 were fixed in the latest updates. You can use this guide to do it: https://forum.tagdiv.com/newsmag-how-to-update-the-theme/
Thank you!

Post count: 54

yes i make upadate in one site and everything work great now, but i dont make update in ma second site. I have a question before. I make many change in second site like add a sidebar in left and add many filter in loop-single-7.php if i make update i will lost my work ?

Viewing 25 posts - 1 through 25 (of 30 total)
You must be logged in to reply to this topic.