-
Notifications
You must be signed in to change notification settings - Fork 298
Conversation
…enerating an undefined variable error notice and then a fatal error notice because it is not defined previously in that method. After changing that on my site, which I had just upgraded to 2.5.0, it started working again.
@@ -493,11 +493,11 @@ public function countMenuChildren() | |||
$active = $menu->getActive(); | |||
if ($active) | |||
{ | |||
$query->getQuery(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should read $query = $dbo->getQuery(true);
. The next 4 lines shouldn't need to be changed afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I just tested that on my site and it works with only changing the one line. Do I need to change this pull request then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Just update the file again and push the change and the pull request
will automatically update.
On 1/24/12 6:37 PM, "Don Cranford"
<reply+p-380497-462b1bc4a0c192e2c9834bb809e9c307f2312f33-368545@reply.githu
b.com> wrote:
@@ -493,11 +493,11 @@ public function countMenuChildren()
$active = $menu->getActive();
if ($active)
{
$query->getQuery(true);
Thanks. I just tested that on my site and it works with only changing the
one line. Do I need to change this pull request then?
Reply to this email directly or view it on GitHub:
https://github.com/joomla/joomla-platform/pull/792/files#r380497
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the file. Thanks for your help.
Test log missing. Tests failed to execute. |
@joomla-jenkins ... I'm not sure what you're referring to. If I did something wrong, let me know. I'd like to learn how to work with this... The docs.joomla didn't say anything about a test log. |
That is an automated test account to run the unit tests and code style rules. The unit tests most likely failed because of the first change you made. It looks like the tests will still fail as you've forgotten the $ on the |
Ok. Thanks. I've corrected the line. I'm guessing the 165 warnings are from the rest of the file? |
The full repository. All warnings that are being worked on. On 1/24/12 8:55 PM, "Don Cranford"
|
Build triggered by changes to the head. Unit testing complete. There were 0 failures and 0 errors from 1985 tests and 11137 assertions. |
Fix bug in countMenuChildren
Good catch. Merged. |
Hey, this patch doesn't seem to be included in 2.5.6 . |
This is fixed in Joomla 3.0 alpha 1. If you need the fix in an older version please file a bug on the CMS tracker and link to this pull request. |
$query was generating an undefined variable error notice and then a fatal error notice because it is not defined previously in that method. After changing that on my site, which I had just upgraded to 2.5.0, it started working again.