No Code Attached Yet
avatar Stevec4
Stevec4
13 Feb 2023

I am seeing this message on pages that have third party components loaded. The only change on my system was updating to php 8.1

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in \Joomla_4.3\administrator\components\com_fields\src\Helper\FieldsHelper.php on line 59

If I cast string to $contextString the msg goes away but I am not sure if that is the best way to solve it.

public static function extract($contextString, $item = null)
   {
       $parts = explode('.', $contextString, 2);

       if (count($parts) < 2) {
           return null;
       }
avatar Stevec4 Stevec4 - open - 13 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Feb 2023
avatar Quy
Quy - comment - 13 Feb 2023

Closing as duplicate of #39719. Thanks.

avatar Quy Quy - close - 13 Feb 2023
avatar Quy Quy - change - 13 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-13 16:22:24
Closed_By Quy

Add a Comment

Login with GitHub to post a comment