Error: BadMethodCallException on Page Access Due to Quick Node Clone Module

Created on 3 March 2025, about 1 month ago

Problem/Motivation

BadMethodCallException: The "\Drupal\quick_node_clone\Controller\QuickNodeCloneNodeAccess::cloneNode" method is not callable as a _custom_access callback in route "/clone/{node}/quick_clone" in Drupal\Core\Access\CustomAccessCheck->access() (line 78 of /var/www/html/docroot/core/lib/Drupal/Core/Access/CustomAccessCheck.php).

Steps to reproduce

Attempt to access any page on the site.
Observe the error message preventing page access.

Proposed resolution

Investigate why the cloneNode method is being referenced as an access check for unrelated pages.
Review the route definitions in the quick_node_clone module to confirm proper callback usage.
Ensure the module does not interfere with general page access permissions.
Apply necessary fixes to resolve the issue.

Remaining tasks

Debug and identify the root cause.
Implement and test a fix.
Deploy the changes and validate page accessibility.

User interface changes

None expected.

API changes

Potential updates to the Quick Node Clone moduleโ€™s access control logic.

Data model changes

None expected.

๐Ÿ› Bug report
Status

Active

Version

1.22

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia govind.maloo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024