List page is showing 404

Having the permalink as /%postname%/ it doesn’t work either if I switch back to the original WP theme and disable all plugins. It works though if I change the permalink to the predefined /%year%/%monthnum%/%postname%/ or to a custom /%year%/%postname%/ permalink. From my point of view, it is a WP bug.

Reciving Error 404 blog/page/2/

function wphelp_custom_pre_get_posts( $query ) { if( $query->is_main_query() && !$query->is_feed() && !is_admin() && is_category()) { $query->set( ‘paged’, str_replace( “https://wordpress.stackexchange.com/”, ”, get_query_var( ‘page’ ) ) ); } } add_action(‘pre_get_posts’,’wphelp_custom_pre_get_posts’); function wphelp_custom_request($query_string ) { if( isset( $query_string[‘page’] ) ) { if( ”!=$query_string[‘page’] ) { if( isset( $query_string[‘name’] ) ) { unset( $query_string[‘name’] ); } } } return $query_string; … Read more