processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

PHP 8.4.x deprecations

Open tiefenb opened this issue 7 months ago • 10 comments

Thread to collect deprications which appear with PHP 8.4.x.

tiefenb avatar May 12 '25 13:05 tiefenb

Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in /var/www/html/wire/core/WireSessionHandler.php on line 51

tiefenb avatar May 12 '25 13:05 tiefenb

Confirmed here. It occurs in the admin, upon logout of superuser. Apparently it's not occurring for everyone, because the issue is quite obvious and embarrassing. How to reproduce here :

  • Processwire latest version
  • TracyDebugger latest version
  • Logged in as superuser
  • Logout -> . if TracyDebugger is enabled (in its settings), then error . otherwise, no error Note that according to the backtrace, TracyDebugger is not involved (?)

er314 avatar Jun 13 '25 23:06 er314

NOTICE: PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wire/core/PageTraversal.php on line 708

Also happens in PHP 8.3.x

tiefenb avatar Jul 09 '25 21:07 tiefenb

Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in /var/www/html/public/index.php on line 64

@tiefenb could you please fix the typo in the issue subject so that people find it when searching for "depr-e-cation" :)

BernhardBaumrock avatar Jul 15 '25 14:07 BernhardBaumrock

Deprecated: Constant E_STRICT is deprecated in /site/modules/TextformatterHannaCode/test-results.php:9

adrianbj avatar Jul 25 '25 18:07 adrianbj

Deprecated: Less_Functions::__construct(): Implicitly marking parameter $currentFileInfo as nullable is deprecated, the explicit nullable type must be used instead in /site/modules/Less/wikimedia/less.php/lib/Less/Functions.php on line 12

BernhardBaumrock avatar Jul 28 '25 13:07 BernhardBaumrock

Deprecated: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in ModulesInstaller.php:305

adrianbj avatar Jul 30 '25 13:07 adrianbj

@ryancramerdesign - just because I saw it again today:

Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in /index.php on line 64

adrianbj avatar Aug 15 '25 00:08 adrianbj

PW 3.0.246 master

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in .../Inputfield/InputfieldCKEditor/InputfieldCKEditor.module:206

Toutouwai avatar Sep 23 '25 22:09 Toutouwai

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../Inputfield/InputfieldSelector/InputfieldSelector.module:1659

https://github.com/processwire/processwire/blob/8e4000a61723f470271d90542fe9fa8f7a47d2bc/wire/modules/Inputfield/InputfieldSelector/InputfieldSelector.module#L1659

Perhaps a rare case - I have a custom Fieldtype that extends FieldtypePage but the Inputfield does not extend InputfieldPage, which seems to cause the inputfield property to be null.

Toutouwai avatar Oct 02 '25 01:10 Toutouwai