Jump to content

PHP Error after upgrading to PHP 8.1


bbeer
 Share

Recommended Posts

we are getting following error 

PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /.... /wire/core/WireInput.php:371

after upgrading to php 8.1 

Anyone else having this problem?

Just for reference, changing line 371 from 

if(!strlen($key)) return $this->cookieVars;

to

if(!$key || !strlen($key)) return $this->cookieVars;

seems to solve the problem. 

Edited by bbeer
added possible solution
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...