InvalidComponentException on Views Full pager

Created on 28 May 2025, about 2 months ago

Problem/Motivation

Receive the following error with the GCDS theme active, on a View that contains a Full pager.

Drupal\Core\Render\Component\Exception\InvalidComponentException: [gcds:gcds-pagination/current_page] Integer value found, but a string, a null or an object is required. The provided value is: "1". [gcds:gcds-pagination/total_pages] Integer value found, but a string, a null or an object is required. The provided value is: "681". in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 232 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Steps to reproduce

Create a View with a display that uses a Full pager. Render the Views display (on a page).

Proposed resolution

Fix the configuration for the gcds-pagination component to accept the current_page and total_pages properties as integers rather than strings.

Supplying a proposed patch.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇚🇊Canada jmdeleon

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the “VDC” tag instead.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024