News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Bug in Search Function and PHP 8 - Solved - [Fixed in 3.9.8.3]

Started by belini, 01.02.2022 20:27:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

belini

Hi guys, we did a server migration that was previously:
- Debian 3.16.43
- Apache 2
- PHP 5.6.30
- MySQL 5.5.55

For :
- Debian 11
- Nginx 1.21.4
- PHP 8.0.13
- MySQL 8.0.27

In the Joomla migration we kept all components unchanged, using the same version of the original, which was working without problems. So, after the migration, jDownloads was still at version 3.2.69, but we started getting errors when trying to add a new file for download, error like this (the error appeared after clicking save, in the adding files form):

Error:


I did a test migration to version 3.9.8.2, on the test server, which has the same characteristics as the new production server and this problem no longer occurs, it seems that it solved by updating jDownloads.

What happens now is another error that I didn't solve, the problem is with the search, which started to show errors, as soon as I click the search button:



Error:


The strange thing is that the first time I click on a given category, then I click on the search button, the system displays the search form, then I type some text I click search and the error appears. From this point on, the form no longer appears and whenever I click on the search button, the page with an error comes up.

Please, if anyone has any tips, or anything I can do to solve the problem, I would appreciate it.

  •  

ColinM

Hi
The first error was something we fixed in jD3.9.8.2

The second one I do not know!!  PHP8 is much more "fussy"
What level of Error reporting have you set in Joomla Globalal Config - Error Reporting?

Colin
Colin M
  •  

ColinM

Hi
I have searched all of the jD 3.9.8.2 source code. Could ntot find any use of mb_strpos

So it might be some other plugin or similar

Colin
Colin M
  •  

Arno

Hi belini,
please try the file below. Copy the attached (unzipped) file via FTP to joomla_root/components/com_jdownloads/helpers and overwrite the old one. Test it then again and post here your result.

QuoteThe strange thing is that the first time I click on a given category, then I click on the search button, the system displays the search form, then I type some text I click search and the error appears. From this point on, the form no longer appears and whenever I click on the search button, the page with an error comes up.
You can start with an empty search form every time you click the "Reset" button.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

belini

Quote from: Arno on 03.02.2022 12:32:09
Hi belini,
please try the file below. Copy the attached (unzipped) file via FTP to joomla_root/components/com_jdownloads/helpers and overwrite the old one. Test it then again and post here your result.
You can start with an empty search form every time you click the "Reset" button.

Hi Arno!

This solution worked perfectly, the search is online again.



Did you make a palliative adjustment for my case only?

I ask because I want to know if I can make jDownlodas updates in the future without losing this bug fix?

Thanks Arno and ColinM for the help
  •  

Arno

#5
Hi belini,
thanks for the posted result.  :)

This bugfix will be a part from the next published version 3.9.8.3. So you will not loose it after an update.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •