No Code Attached Yet Information Required
avatar Attila-SWE
Attila-SWE
4 Apr 2023

Steps to reproduce the issue

PHP 8.1.17
Go to access settings for article in backend or edit article with user that does not have access to change access settings.

Expected result

No error

Actual result

Deprecated: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/src/Access/Access.php on line 776

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /libraries/src/Access/Access.php on line 744

avatar Attila-SWE Attila-SWE - open - 4 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Apr 2023
avatar Attila-SWE Attila-SWE - change - 4 Apr 2023
The description was changed
avatar Attila-SWE Attila-SWE - edited - 4 Apr 2023
avatar richard67
richard67 - comment - 4 Apr 2023

@Attila-SWE Which Joomla version have you used? I was not able to get these deprecated warnings on a current 4.3-dev branch. So maybe that has been already fixed and will be in the next 4.3.0 release? Could you try to reproduce it e.g. with the latest 4.3 nightly build from here https://developer.joomla.org/nightly-builds.html ? Or maybe describe more detailed how you could produce these warnings?

avatar richard67 richard67 - labeled - 4 Apr 2023
avatar richard67 richard67 - change - 4 Apr 2023
Labels Added: Information Required
avatar Attila-SWE
Attila-SWE - comment - 4 Apr 2023

Solved it. Issue was that article was "copied" from one site XXX_content to another without also copying XXX_assets information. So it was basically missing a row with rules and therefore the parameters were null. So issue was not with code.

avatar Attila-SWE Attila-SWE - close - 4 Apr 2023
avatar Attila-SWE Attila-SWE - change - 4 Apr 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-04-04 18:48:36
Closed_By Attila-SWE
avatar richard67
richard67 - comment - 4 Apr 2023

@Attila-SWE Thanks for reporting back.

Add a Comment

Login with GitHub to post a comment