? Success
Pull Request for # 6842

User tests: Successful: Unsuccessful:

avatar chrisdavenport
chrisdavenport
25 Apr 2015

Fix for #6842.

If a menu item exists but there is no page_title parameter set, then indexing will throw a PHP notice. This PR suppresses the notice by first checking that the parameter exists.

avatar chrisdavenport chrisdavenport - open - 25 Apr 2015
avatar brianteeman brianteeman - change - 27 Apr 2015
Rel_Number 6842
Relation Type Pull Request for
avatar zero-24 zero-24 - change - 29 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 29 Apr 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 29 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 29 Apr 2015
Category CLI Search
avatar zero-24 zero-24 - change - 29 Apr 2015
Status New Pending
avatar pe7er
pe7er - comment - 9 May 2015

@chrisdavenport
Could you please add a test instructions so that others can reproduce this issue?

This issue is somewhat difficult to reproduce:
when you create a new menu item,the page_title is added to parameters:
"page_title":""
Do you have to remove that parameter via phpMyAdmin to trigger the error?
Thanks!


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

avatar pe7er pe7er - test_item - 9 May 2015 - Not tested
avatar chrisdavenport
chrisdavenport - comment - 9 May 2015

I don't know how you would get to the point where you have a menu item without the page_title parameter being set, so the easiest way to test this PR is, as you suggest, to use phpMyAdmin to manually remove it from a menu item that points to an article.

To make it super easy, I use https://www.jsoneditoronline.org/ to edit the json-encoded parameters.

avatar wilsonge wilsonge - change - 23 May 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-05-23 01:08:09
Closed_By wilsonge
avatar wilsonge wilsonge - close - 23 May 2015

Add a Comment

Login with GitHub to post a comment