No Code Attached Yet
avatar Chessy65
Chessy65
7 Nov 2023

Steps to reproduce the issue

If you access from a joomla system to another joomla on which is Joomla 4.4 and PHP8.1 or higher an dthe WebClient.php is needed,
then you receive 9 !! error lines with following text:

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in ../libraries/vendor/joomla/application/src/Web/WebClient.php

This issue is for a long time and should be solved, but it is missing in the actual fork. Why?

You need insert only '(string)'

Expected result

see picture

Actual result

System information (as much as possible)

Additional comments

I have found it already im #39960screen shot 2023-11-07 at 17 57 48

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar Chessy65 Chessy65 - open - 7 Nov 2023
avatar Chessy65 Chessy65 - change - 7 Nov 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Nov 2023
avatar alikon alikon - close - 8 Nov 2023
avatar alikon
alikon - comment - 8 Nov 2023
avatar alikon alikon - change - 8 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-11-08 07:19:40
Closed_By alikon
avatar samlatif
samlatif - comment - 4 Jan 2024

I have the sam error,
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 286.

joomla4.4 PHP 8.2.14 template Cassiopeia. Any suggestions to solve it?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42317.

avatar dustbin34
dustbin34 - comment - 23 Jan 2024

Hello I have this issue. Only at the root of my website : if I enter http://mywebsite.com I have the deprecated issue, if I enter http://mywebsite.com/index.php that's ok.
I use Cassiopea, how could I solved this trouble?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42317.

avatar dustbin34
dustbin34 - comment - 23 Jan 2024

Sorry problem solved! I connected to the Joomla aministration and after a cache clearing the issue Deprecated: stripos(...) on my home page has disappeared.
Bye!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42317.

avatar richard67
richard67 - comment - 3 Mar 2024

Please test #42937 . Thanks in advance.

avatar richard67
richard67 - comment - 4 Mar 2024

For 5.x this issue has been fixed with PR #42945 , which will be part of the 5.1.0-beta1 coming up tomorrow.

For 4.4 it still needs to be fixed.

avatar M-Falken
M-Falken - comment - 5 Jun 2024

Hi,
still present under 5.1.1
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 380
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 472
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 502
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 505
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 545

avatar DrZen33
DrZen33 - comment - 11 Aug 2024

I am also seeing the same problem in Joomla 5.1.2
My Error Log file is massive, because of this problem. It repeats over and over again...
When I posted about this problem before, someone replied and said it was probably being caused by an Extension and to just ignore it. I've turned off my Extensions on test site and cannot locate what is causing this. Is Joomla the problem?

PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /libraries/vendor/joomla/application/src/Web/WebClient.php on line 502
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 505
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 508
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 526
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 472
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 483
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 494
PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /public_html/libraries/vendor/joomla/application/src/Web/WebClient.php on line 498


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42317.

Add a Comment

Login with GitHub to post a comment