Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update user group #351

Open
carlkyo opened this issue Jun 3, 2023 · 2 comments
Open

Unable to update user group #351

carlkyo opened this issue Jun 3, 2023 · 2 comments

Comments

@carlkyo
Copy link

carlkyo commented Jun 3, 2023

No validation rules for the placeholder: id

SYSTEMPATH\Validation\Validation.php at line 687

VENDORPATH\lonnieezell\bonfire\src\Users\Controllers\UserController.php : 146 — CodeIgniter\Controller->validate ( arguments )

@najamalvi
Copy link

najamalvi commented Jul 3, 2023

Facing the same issue.

No validation rules for the placeholder: id
SYSTEMPATH/Validation/Validation.php at line 734

SYSTEMPATH/Validation/Validation.php : 142 — CodeIgniter\Validation\Validation->fillPlaceholders ( arguments )

The issue arises on the user details tab at http://localhost:8080/index.php/admin/users/4

I believe it's due to passing the 'id' value for validation which should not be.

dgvirtual added a commit to dgvirtual/Bonfire2 that referenced this issue Aug 16, 2023
@dgvirtual
Copy link
Contributor

The error is a result of the breaking change to CI 4.3.5 (https://codeigniter4.github.io/userguide/installation/upgrade_435.html) I have submitted a patch #385 to fix it. It will fix the issue only for new installs.

You can fix the issue immediately in your existing Bonfire installation by adding

        'id' => [
            'rules' => 'permit_empty|is_natural_no_zero',
        ],

to $validation array in your app/Config/Users.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants