Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #550250

    Hi Enfold team,

    This morning I noticed that when I go to the next page on the blog(news) section of our website, it just keeps showing the articles of the first page. Even if I go to the last page (page 135) it keeps showing the articles of the first page. This started to happen after the last Enfold and WordPress updates. Could you guys have a look at what is going wrong please? The link to our website is in the private section.

    Thanks in advance,

    Alcadis

    #550380

    Hey Alcadis!

    Can you please try de-activating all active plugins and check if that helps?
    If not, please create a temporary admin login and post it here privately.

    Cheers!
    Yigit

    #550388

    Hey Yigit,

    I tried disabling all plugins and checked if that helped, but unfortunately it did not help.
    I have created a temporary admin login for you, see in private for the details:

    Please let me know if you are able to login

    Thanks in advance!

    #550391

    Hi!

    No, i was not “Forbidden. You do not have permission to access this document.”

    Cheers!
    Yigit

    #550393

    I was afraid of that, cause we blocked external IP adresses from logging in on our website due to some hack issues.
    I will call our hosting now to remove that and I will let you know when you can login.

    #550402

    Hey!

    Sure, we will be waiting to hear from you :)

    Regards,
    Yigit

    #550410

    Hi Yigit,

    Would it be possible for you to remote control my PC with teamviewer? It is going to be really hard to remove the accesslist and our technical director prefers to not remove the block regarding security issues. Please let me know if this is possible for you

    #550419

    You can check with my site Yigit as i have the same problem.
    WP 4.4
    Enfold 3.4.6

    #550420

    Hi!

    Unfortunately, that is not possible. We have reported the issue to our devs and they are now looking into it on another users installations. If it is not so urgent for you, we can work on other users installations and let you know about our findings :)

    Best regards,
    Yigit

    #550431

    Hi Yigit,

    I was afraid of that.
    Anyways although it is kinda urgent since we have quite some visitors coming to our website, I will have to wait for your devs to find a solution :)
    Could you please let me know as soon as possible once they have found a solution, so I can apply the changes to the website myself?
    Much appreciated,

    Alcadis

    #550460

    Hey!

    Our devs reported that issue is WP 4.4 related. They are making the changes and will release an update this week.

    Cheers!
    Yigit

    #560006

    Can you kindly indicate which files where changed to fix the pagination issues?
    Many thanks.

    #560441

    Hi!

    I just noticed that the pagination on this page http://www.alcadis.nl/nieuws/ works fine i see different content on different page.
    For all major updates you can find the change log on the http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990

    Regards,
    Vinay

    #560848

    Thanks but I’m kindly asking for which files were modified to fix the pagination bug.. (not what was changed in the latest release).

    Thanks again!

    #560883
    #561114

    Dear Elliot, thanks for your answer. That answer seems to be related to woocommerce products rather than the blog. In any case I have found the same line in blog.php (as indicated below) but still no luck :(

    if($params[‘offset’] == ‘no_duplicates’)
    {
    $params[‘offset’] = ( $page – 1 ) * $params[‘items’];
    $no_duplicates = true;
    }

    #561777

    Hi!

    There is a whole bunch of areas where it’s used.. pretty much all of the shortcodes where a query is set. It would be best to just update the theme.

    Best regards,
    Elliott

    #563846

    Hi There,

    We have the same problem here: https://news.suzuki.de/news/

    This solution didn’t work:

    //$params['offset'] = 0;
    $params['offset'] = ( $page - 1 ) * $params['items'];

    WP 4.4
    Enfold 3.4.7

    We need urgent help, please!

    Thanks, T.

    • This reply was modified 8 years, 10 months ago by elbnetz.
    #564479

    Hey!q

    A fix will be included on the next update. Please remove the modification then look for this code around line 338:

    $page = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : get_query_var( 'page' );
    

    .. replace it with:

    $page = get_query_var( 'paged' ) ? get_query_var( 'paged', 1 ) : get_query_var( 'page', 1 );
    

    Again, look for this line:

    if( $params['offset'] == 0 )
    				{
    					$params['offset'] = false;
    				}
    

    .. replace it with:

    //wordpress 4.4 offset fix
    				if( $params['offset'] == 0 )
    				{
    					$params['offset'] = false;
    				}
    				else
    				{
    					//if the offset is set the paged param is ignored. therefore we need to factor in the page number
    					$params['offset'] = $params['offset'] + ( ($page -1 ) * $params['items']);
    				}
    

    Lastly, look for this line of code around 367:

    'offset' => $params['offset'],
    

    .. replace it with:

    'offset' => !(int)$params['offset'] ? "" : $params['offset'],
    

    You can do the steps above or just remove every code in the blog.php file, replace it with this: http://pastebin.com/pJxDM7ec

    After that, go to line
    Best regards,
    Ismael

    #564537

    Hi There,

    We replaced the blog.php with the content from the linked version without success.

    Problem remains.

    Cheers, T.

    #565210

    Hi!

    The same code works on our installation so it’s probably a server configuration somewhere. Not exactly sure what. What is the current PHP version of the server?

    Cheers!
    Ismael

    #567740

    We have

    PHP-Version 5.6.14 (64bit)
    MySQL-Version 5.5.46

    Cheers, T.

    #568354

    Hey!


    @elbnetz
    : We found a patch for this and it works for most installations. Please create a new thread then provide the FTP details. If you want to do it yourself, please visit the following thread. You have to edit the wp-includes > query.php file. https://core.trac.wordpress.org/ticket/35344#comment:34

    Regards,
    Ismael

    #568488

    Hi Ismael,

    all the shown fixes didn’t help, I am afraid. What can we do next?
    So it is a WordPress problem?

    Bestes, T.

    • This reply was modified 8 years, 10 months ago by elbnetz.
    #569084

    Hi!

    Please use the query.php patch provided in the wp thread above then override the canonical.php file with a fresh copy. After that, modify the config-templatebuilder > aviashortcodes > postslider.php file. Refer to this link: https://kriesi.at/support/topic/pagination-not-working-after-wordpress-4-4-1-and-enfold-3-4-7/#post-565212

    Cheers!
    Ismael

    #569383

    Hi Ismael,

    I followed all steps, but it is still not working, I am afraid.

    Cheers, T.

    • This reply was modified 8 years, 10 months ago by elbnetz.
    #569420

    Hi all,

    Sorry to interrupt, but is it possible to move this thread to another? I keep getting notifications, but my problem has been solved since the last update.

    Sorry for the inconvenience!

    Greetings,
    Alcadis

    #570455

    Hey!


    @elbnetz
    : Please create another thread with the WP and FTP details. We’ll check the issue there.


    @Alcadis
    : We’ll close this thread now. Sorry for the disruption. :)

    Cheers!
    Ismael

Viewing 28 posts - 1 through 28 (of 28 total)
  • The topic ‘Blog pagination not working’ is closed to new replies.