? ? Pending

User tests: Successful: Unsuccessful:

avatar tonypartridge
tonypartridge
27 Mar 2018

Resolved #19998

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Expected result

Actual result

Documentation Changes Required

avatar tonypartridge tonypartridge - open - 27 Mar 2018
avatar tonypartridge tonypartridge - change - 27 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2018
Category com_tags Front End
avatar mbabker
mbabker - comment - 27 Mar 2018

This should be fixed in a view class if possible, not a layout. Layouts
shouldn't have to validate data type, and this fix would have to be applied
by anyone with an override (so the dataset being used/injected isn't being
validated well enough; IIRC our models with getItems methods should only
return non-countables if in an error state).

On Mon, Mar 26, 2018 at 8:55 PM Tony Partridge notifications@github.com
wrote:

Resolved #19998 #19998

Pull Request for Issue # .
Summary of Changes Testing Instructions Expected result Actual result Documentation
Changes Required

You can view, comment on, or merge this pull request online at:

#20000
Commit Summary

  • Make sure items is an array.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#20000, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoRobdgGm9bT27IljscBBKj0qJgVUks5tiZwjgaJpZM4S8Kgp
.

--

  • Michael Please pardon any errors, this message was sent from my iPhone.
avatar tonypartridge tonypartridge - change - 27 Mar 2018
Labels Added: ?
avatar Quy
Quy - comment - 27 Mar 2018

The notice is still there. To test, install the demo. Remove green tag from articles. On the frontend, access the page (the URL maybe different on your setup):
http://localhost/joomla-cms-staging/index.php/all-tags/green

avatar hakanara
hakanara - comment - 27 Mar 2018

@tonypartridge thank you very much for your efforts. With your call, I have uploaded the file and I am now visiting the tag pages on the web site. Let me observe it for a few hours on the logs because I don't exactly know which pages caused this error. I was receiving this error every day after the upgrade so I can tell you if it works or not within a few hours. Kind regards.

avatar Quy
Quy - comment - 27 Mar 2018

To reproduce, access a tag page that has no articles assigned to it on the frontend.

avatar hakanara
hakanara - comment - 27 Mar 2018

You guys are amazing. Unfortunately the notice is still there and in the logs as @Quy says. I have tested it, it didn't work for me. I have tested it on a tag page without an article.

avatar tonypartridge
tonypartridge - comment - 27 Mar 2018

@mbabker @hakanara now fixed and correctly. Well it's the same as com_content ;-)

avatar tonypartridge
tonypartridge - comment - 27 Mar 2018

No need to be sorry! But you’re wrong ;). we were checking if the array was empty and if it was we were returning false. Now we return parent which is and empty array. Problemo solved.

On 27 Mar 2018, 17:03 +0100, Michael Babker notifications@github.com, wrote:

@mbabker commented on this pull request.
In components/com_tags/models/tag.php:

@@ -87,6 +87,11 @@ public function getItems()

           if (!empty($items))
           {
  •                   if(!is_array($items))
    

$items = parent::getItems();

if (!is_array($items)) {
return $items;
}

if (!empty($items)) {
// Whatever is in place now
}

return $items;
That's the gist of what it should be. But there should also be something setting an error at some point in this case. Also, this block really shouldn't be commented out (it has been since com_tags was merged 5 years ago, seeing this now leads me to believe there's some other issue being masked, you say the parent is returning false, that means there was a database error caught in the parent method, why are we ignoring it?).
We just got into a major rabbit hole here. Sorry!

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar mbabker
mbabker - comment - 27 Mar 2018

Well, that's better news then. But we still have the issue of the view ignoring errors to address at some point.

avatar tonypartridge
tonypartridge - comment - 27 Mar 2018

Good point! I’ll try and find time to look into that when things cool down, but this resolves the immediate issue. Thanks again for you input really appreciated!

On 27 Mar 2018, 17:08 +0100, Michael Babker notifications@github.com, wrote:

Well, that's better news then. But we still have the issue of the view ignoring errors to address at some point.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar hakanara
hakanara - comment - 27 Mar 2018

I have tested this and it works now. Thanks to all the contributors.

avatar Quy
Quy - comment - 27 Mar 2018
avatar Quy
Quy - comment - 28 Mar 2018

I have tested this item successfully on bf43a16


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

avatar Quy Quy - test_item - 28 Mar 2018 - Tested successfully
avatar hakanara
hakanara - comment - 28 Mar 2018

I have tested this item successfully on bf43a16


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

avatar hakanara
hakanara - comment - 28 Mar 2018

I have tested this item successfully on bf43a16


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

avatar hakanara hakanara - test_item - 28 Mar 2018 - Tested successfully
avatar Quy Quy - change - 28 Mar 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 28 Mar 2018

RTC


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

avatar mbabker mbabker - change - 29 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-29 11:53:50
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 29 Mar 2018
avatar mbabker mbabker - merge - 29 Mar 2018
avatar davidmocond
davidmocond - comment - 13 Feb 2021

Generally speaking, I agree with the author of the post, but everything happens a bit differently in life. I saw another interpretation that you can see in the article on the https://essaysservicesreviews.com/. Thanks for the post anyway, it was very interesting to read,


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

Add a Comment

Login with GitHub to post a comment