? ? Pending

User tests: Successful: Unsuccessful:

avatar saumyasarkar11
saumyasarkar11
11 Mar 2021

Pull Request for Issue #32115 .

Summary of Changes

Starting index of search changed from $length to $wordpos on line 350.

Testing Instructions

Add an article and search for any keyword you had added to its title or description.

Actual result BEFORE applying this Pull Request

Fatal error: mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)

Expected result AFTER applying this Pull Request

Proper search results appear with listing filters.

Documentation Changes Required

No documentation changes required

avatar saumyasarkar11 saumyasarkar11 - open - 11 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 11 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2021
Category Administration com_search
avatar saumyasarkar11 saumyasarkar11 - change - 11 Mar 2021
The description was changed
avatar saumyasarkar11 saumyasarkar11 - edited - 11 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 11 Mar 2021
Title
Issue #32115 fixed
Issue #32115 fixed to display proper search results
avatar saumyasarkar11 saumyasarkar11 - edited - 11 Mar 2021
avatar ReLater ReLater - test_item - 12 Mar 2021 - Tested unsuccessfully
avatar ReLater
ReLater - comment - 12 Mar 2021

I have tested this item ? unsuccessfully on 3ed7e7b

Description of unsuccessful test will follow on Github.


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

avatar ReLater
ReLater - comment - 12 Mar 2021

See #32638 (comment)

Steps:

  • Installed Joomla_3.9.26-dev-Development-Full_Package.zip (Friday, 12 March 2021 03:00:04 UTC)

  • Environment Xampp PHP 8.0.2.

  • Installed German language.

  • No demo data.

  • Created a com_search menu item

  • Applied patch 32638

  • Created an article. Title: Modulpositionen mit Bootstrap 2 ausrichten - Die magische Zwölf

  • The HTML of editor text is here editor-html.zip . Just paste it in editor (HTML view).

  • Save article

  • Go to frontend and search for modulstil

  • Output on search page (see image 1). Errors:

    • Title is cut
    • Search result text is too long.
  • Compared it with a site where more articles exist (see image 2). Errors:

    • All titles of all hits are cut.
    • Same error with the article above.
  • How it should look like: See image 3.

Images

Image 1

12-03-_2021_13-34-14

Image 2

12-03-_2021_13-35-23

Image 3

12-03-_2021_13-39-52

avatar ReLater
ReLater - comment - 12 Mar 2021

When I use this ugly hack (not really knowing what I do) the output on search page seems to be OK. Therefore I think we need somewhere somehow a corrective calculation of the passed over $length. But ????? Because PHP messages are suppressed by the @ in PHP 7, maybe the creator of this method knew already that it works incorrectly under some circumstances?

12-03-_2021_12-59-12

avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-03-12 16:50:44
Closed_By saumyasarkar11
Labels Added: ?
avatar saumyasarkar11 saumyasarkar11 - close - 12 Mar 2021
avatar saumyasarkar11
saumyasarkar11 - comment - 12 Mar 2021

Will look into it. Thanks for the feedback.

avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Status Closed New
Closed_Date 2021-03-12 16:50:44
Closed_By saumyasarkar11
avatar saumyasarkar11 saumyasarkar11 - change - 12 Mar 2021
Status New Pending
avatar saumyasarkar11 saumyasarkar11 - reopen - 12 Mar 2021
avatar ReLater
ReLater - comment - 15 Mar 2021

Please note addition "Test instructions addition 2021-03-15" in first post of #32115

avatar ReLater
ReLater - comment - 20 Mar 2021

Another and better hack that also works if more than just 1 german Umlaut in headline:

@HLeithner Can you give a comment. See also issue #32115 TBH I don't understand the whole code in search.php ;-)

20-03-_2021_14-56-09

20-03-_2021_15-05-14

avatar saumyasarkar11 saumyasarkar11 - change - 29 Mar 2021
Title
Issue #32115 fixed to display proper search results
Display proper search results
avatar saumyasarkar11 saumyasarkar11 - edited - 29 Mar 2021
avatar ReLater
ReLater - comment - 3 Apr 2021

Hello @saumyasarkar11 ! Any news here? I'm just pushing a bit because the issue is a "real bug".

avatar saumyasarkar11
saumyasarkar11 - comment - 3 Apr 2021

Hello @saumyasarkar11 ! Any news here? I'm just pushing a bit because the issue is a "real bug".

Go ahead...I am staying a bit busy with other things now....Go ahead...its a real bug...needs to be fixed quickly

avatar ReLater
ReLater - comment - 12 Apr 2021

@saumyasarkar11
Please close this pr. Has been replaced by #33113

avatar HLeithner HLeithner - change - 12 Apr 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-04-12 14:11:29
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 12 Apr 2021

Add a Comment

Login with GitHub to post a comment