Error and Pagination Bug
-
Hi Jose,
Just noticed one small bug with NLP and also an error that could be related but I’m not sure. The error I received when I was in Debug mode;
Notice: Undefined variable: total in /nas/wp/www/staging/chassett/wp-content/plugins/network-latest-posts/network-latest-posts.php on line 826Now the bug relates to clicking a Pagination number. After clicking a page number the Ajax request reloads the ‘NLP List’ displaying whatever page you selected. After this first load/page change, you can no longer slecect any other page. If you click on a different Pagination number, it does the Ajax reload again, but it will only load the same page you were just on. So essentially, you can only select one Pagination number, before having to reload the website for it to work again.
You can test it out here.
This issue wasn’t happening until recently, so it could be related to one of the last WordPress updates. Let me know if you have any question or if there is anything I can do to help!
Thanks Jose!
-Carl**I’m running the current versions WordPress and BuddyPress and the 2014 theme. I have tested the issue after disabling all plugins and using a default theme.
-
Hi Carl,
Thank you for the heads up, I just arrived from vacations so I am still checking hundreds of emails. I will check this issue and get back to you as soon as possible.
Best regards,
José SAYAGOOh boy, I know how that goes. Hope you had a great vacation and let me know if there is anything I can do to help when you get around to it. Thanks!
Hey José,
So good news! Looks like the Pagination issues was related to WordPress 4.1.0 and the update to 4.1.1 fixed it.
It was probably related to the ticket:
#30831- paginate_links() now needs add_args=falseI did notice a second Error code when in debug mode and logged out;
Notice: Undefined variable: ignore in /nas/wp/www/website/website/wp-content/plugins/network-latest-posts/network-latest-posts.php on line 308But everything seems to be working fine. Thanks for everything!
All the best,
CarlHey Carl,
Thanks for the good news!, indeed it was related to that ticket. The warning notice is related to some variables used but not being previously declared, I will fix this for future releases.
I am sorry I was not able to get back to you soon, some family issues came up and forced me to put work aside for a while.
Best regards,
José SAYAGOHi Carl,
Just to let you know I have updated the plugin again, thanks to Jorge Carbwood I realized there was a problem with pagination. The jQuery function using $.load() didn’t work anymore, so I replaced it with an $.ajax() call which hopefully improves the way pagination worked before.
Kind regards,
Jose SAYAGO.
The topic ‘Error and Pagination Bug’ is closed to new replies.