Pagination inside wp-ajax not working and return 404

I have issue when using wp ajax. my WP Wuery for Custom Post type not working with paginate links I have change base url but /page/2 return 404 I use Custom post type and custom taxonomy for my website here my code: add_action(‘wp_ajax_taxFilterKlussen’, ‘tax_klussen_filter_function’); add_action(‘wp_ajax_nopriv_taxFilterKlussen’, ‘tax_klussen_filter_function’); function tax_klussen_filter_function(){ $paged = ( get_query_var( ‘paged’ ) )…

Can’t get to stub abstract classes/traits

Everytime I encounter a method inside an abstract class or trait, I try mocking it following PHPUnit/Drupal documentation, but I keep getting warnings. I.E. I’ve got the following condition inside a function: $remaining = (int) $this->getRequest()->query->get(‘media_library_remaining’); if ($remaining || $remaining === FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) { $form[‘upload’][‘#multiple’] = $remaining > 1 || $remaining === FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED; $form[‘upload’][‘#cardinality’] = $form[‘upload_help’][‘#cardinality’]…