jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Bugs => Topic started by: Spark640 on 13.04.2022 16:23:14

Title: Another search and php8
Post by: Spark640 on 13.04.2022 16:23:14
I have the samr problem as the previous post about the search and php8 so i made sure I was on the latest version of Jdownloads. Still  getting 'mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)'.
Reverted to PHP 7.4 - no more error
Title: Re: Another search and php8
Post by: ColinM on 13.04.2022 18:25:38
Hi
PHP8 has made many changes and difficult to detect in all situations
Could let us know what in search you were doing please.

Was it a very long string?
Colin
Title: Re: Another search and php8
Post by: Spark640 on 13.04.2022 18:32:11
Hi Colin

Clicked search entered 'Easter' and got the error. After this the error comes up when clicking search. This happens in different browsers, Firefox, Edge and Chrome. Attached is most of the unhandled exception message
Title: Re: Another search and php8
Post by: ColinM on 14.04.2022 09:43:34
Hi
The Exception type 'ValueError' is new in PHP8.
The trail you produced is very long but it does not show where is was called in jD! so could you do the start of the chain please
Colin
Title: Re: Another search and php8
Post by: Spark640 on 14.04.2022 10:15:49
Hi Colin, that was the beginning, I left out the sensitive server stuff at the end. I've put the site back to PHP 7.4 so everything works fine as it did before, going to leave PHP8 alone for the while but thanks for your time  8)
Title: Re: Another search and php8
Post by: ColinM on 14.04.2022 13:22:58
OK
Note the beginning of the command chain is at the bottom of the error report list!! I should have made i clearer
Colin