When using the module "Views Infinite Scroll" and enable the option "Initially load all pages up to the requested page" there is a Exception when visiting the site with a parameter like "?page=2".
Error Message:
Drupal\Core\Database\DatabaseExceptionWrapper: Exception in Job List[job_list]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 5: SELECT "node_field_data"."created" AS "node_field_data_created", "node_field_data"."nid" AS "nid", "node_field_data"."langcode" AS "node_field_data_langcode" FROM "node_field_data" "node_field_data" LEFT JOIN "node__field_ [...] ORDER BY "node_field_data_created" DESC LIMIT 18 OFFSET -1; Array ( [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => job [:db_condition_placeholder_3] => de [:db_condition_placeholder_4] => 0 [:views_join_condition_0] => 0 ) in main() (line 19 of /server/web/index.php).
Active
1.2
Code