? Success

User tests: Successful: Unsuccessful:

avatar 810
810
13 May 2016

Notice: Only variables should be passed by reference in C:\wamp\www\develop\administrator\modules\mod_menu\tmpl\default_enabled.php on line 23

and many more notices.
Discovered by the new PHP7.0.7 RC1 version

Before that version the notices where never showed.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
4.00

avatar 810 810 - open - 13 May 2016
avatar 810 810 - change - 13 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 13 May 2016
Category Administration Modules
avatar brianteeman
brianteeman - comment - 13 May 2016

Testers please note this is the Administrator module not the site module


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

avatar brianteeman
brianteeman - comment - 13 May 2016

&$node

This is used in 13 places in the codebase

avatar andrepereiradasilva
andrepereiradasilva - comment - 13 May 2016
FILE: .../travis/build/joomla/joomla-cms/administrator/modules/mod_menu/menu.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 52 | ERROR | Doc comment for var &$node does not match actual variable name
    |       | $node at position 1
--------------------------------------------------------------------------------
avatar Kubik-Rubik Kubik-Rubik - change - 13 May 2016
Milestone Added:
avatar sovainfo
sovainfo - comment - 13 May 2016

What about JMenuNode &$child and JMenuNode &$parent in the same file?

avatar 810
810 - comment - 13 May 2016

I don't get any other notices. Just this function

avatar mahagr
mahagr - comment - 13 May 2016

Here is the bug report for PHP; It looks like there was edge case which allowed new object to be passed as reference, but which was fixed for PHP 7.0.7.

https://bugs.php.net/bug.php?id=72214

I recommend you to participate to the discussion if the fix should be postponed until 7.1 or if its fine to be fixed now.

avatar andrepereiradasilva andrepereiradasilva - test_item - 14 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 14 May 2016

I have tested this item :white_check_mark: successfully on f2fb7c4

Don't have php 7.0.7 RC but backend menu still works after patch in PHP 7.0.6.
So test is a success.


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

avatar Klipper
Klipper - comment - 24 May 2016

This is not only an issue of php 7.0.7 RC.

I'm running php 7.0.6 (Siteground). On every site where I set Error Reporting in Global Configuration to Maximum I get these notice messages and my administrator gets crippled. I only get administrator functionality back after setting Error Reporting to Default again manually using FTP.

Files:
/administrator/modules/mod_menu/menu.php (line 94)
/administrator/modules/mod_menu/tmpl/default_enabled.php (lots of lines)


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

avatar Klipper
Klipper - comment - 24 May 2016

I've tested fix c2c80d3 successfully on Joomla 3.5.1 running 7.0.6


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

avatar zero-24 zero-24 - alter_testresult - 24 May 2016 - Klipper: Tested successfully
avatar zero-24 zero-24 - change - 24 May 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 24 May 2016

RTC. Thanks for fixing and testing!


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 May 2016
Labels Added: ?
avatar roland-d roland-d - change - 25 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-25 20:02:57
Closed_By roland-d
avatar roland-d roland-d - close - 25 May 2016
avatar roland-d roland-d - merge - 25 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 25 May 2016
avatar roland-d roland-d - reference | 06d7a14 - 25 May 16
avatar roland-d roland-d - merge - 25 May 2016
avatar roland-d roland-d - close - 25 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2016
Labels Removed: ?
avatar roland-d
roland-d - comment - 25 May 2016

Thanks everybody

avatar bram96 bram96 - test_item - 3 Jun 2016 - Tested successfully
avatar bram96
bram96 - comment - 3 Jun 2016

I have tested this item successfully on f2fb7c4


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

avatar ghazal ghazal - test_item - 3 Jun 2016 - Tested successfully
avatar ghazal
ghazal - comment - 3 Jun 2016

I have tested this item successfully on f2fb7c4

Glad to have found this issue and its fix.
And tks to matias who gave the reference to this pull request in https://bugs.php.net/bug.php?id=72214&edit=3


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

Add a Comment

Login with GitHub to post a comment