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

php 8.1 deprecated calls on /restcontroller.php #1152

Open
ideamediaweb opened this issue Mar 4, 2024 · 1 comment
Open

php 8.1 deprecated calls on /restcontroller.php #1152

ideamediaweb opened this issue Mar 4, 2024 · 1 comment

Comments

@ideamediaweb
Copy link

i am getting on php 8.1 environement the following error:
ERROR - 2024-03-04 14:23:13 --> Severity: 8192 --> strtolower(): Passing null to parameter #1 ($string) of type string is deprecated /home/ideam3/public_html/gestionale/modules/zapier/vendor/chriskacerguis/codeigniter-restserver/src/RestController.php

So restcontroller.php should be updated

@QuintinK
Copy link

QuintinK commented Jun 20, 2024

Debugging the same thing today, workaround until the project is updated:

Go to application/libraries/RestController.php (your path may differ)

Line 837

Update

$method = strtolower($method);

To

$method = strtolower((!empty($method) ? $method : ''));

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

2 participants