Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    What happens if after the 4 reports are generated, you go into the options page and click the button on the button to save options and check for new pages?

    Thread Starter Mirko

    (@miwalter)

    The green status bar In the “Report List” tab is showing (for a short amount of time, about 20 seconds), but it does not catch additional reports (and I don’t see an error in the log).

    I also tried deleting all existing reports and let the plugin create a complete new set of reports. But this doesn’t change the situation.

    Plugin Author Matt Keys

    (@mattkeys)

    Is it possible that you could provide me temporary access to your admin area to take a look?

    If so, those credentials can be sent privately via my sites contact form:

    https://mattkeys.me/about

    Thanks,

    Matt

    Thread Starter Mirko

    (@miwalter)

    sure. I sent you the login. thanks!

    Plugin Author Matt Keys

    (@mattkeys)

    Thanks, I took a quick look just now and I do not see any easy explanations for the behavior you are seeing.

    I will try to get back to this again later today when I’ve had a chance to think about it some more.

    Thread Starter Mirko

    (@miwalter)

    Thanks, that would be wonderful! Please give a short feedback if/when you don’t need the login anymore.

    Plugin Author Matt Keys

    (@mattkeys)

    I took another look at your site, and I logged the response from the plugin when it called get_posts to retrieve all of the published posts for checking with Google Pagespeed. For some reason on your site, only 4 posts are returned from this call, even though my plugin passes the correct parameters to retrieve all posts.

    My guess is that some other plugin or code on your site is hooking in to the query and changing things.

    You may be able to narrow down the issue by temporarily deactivating or disabling other plugins or custom code and testing again. This would be best done on a staging server if this site is live so you do not disturb anything for visitors.

    Sorry I can’t help pinpoint any further than that, but the issue seems to exist outside of my plugin.

    Thread Starter Mirko

    (@miwalter)

    Thanks for you help!

    I think with your help/hint I solved the problem. I originally only set the option to check wordpress posts – no other options were checked. When I tried setting the “check category index”-option too this morning, the plugin seems to get all _posts_ (and category-pages) and is right now processing all pages.

    As you considered a hook which is filtering the get_posts-query, I also removed a custom query filter from the theme. Although I can’t find any error in this, the options are all not set to “gallery”, this filter sets posts_per_page to 4 – the number of posts the plugin got:

    function minimatica_paged_posts( $query ) {
    	if( (
    		( $query->is_home() && 'gallery' == minimatica_get_option( 'homepage_view' ) ) ||
    		( $query->is_category() && 'gallery' == minimatica_get_option( 'category_view' ) ) ||
    		( $query->is_tag() && 'gallery' == minimatica_get_option( 'tag_view' ) ) ||
    		( $query->is_author() && 'gallery' == minimatica_get_option( 'author_view' ) ) ||
    		( $query->is_archive() && 'gallery' == minimatica_get_option( 'archive_view' ) )
    		) && ( ! is_single() )
    	)
    		$query->set( 'posts_per_page', '4' );
    }
    endif;
    
    add_filter( 'pre_get_posts', 'minimatica_paged_posts' );
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Only creates reports for 4 pages’ is closed to new replies.