Page 1 of 1

PHP Notice Error

Posted: Fri Nov 17, 2017 5:55 pm
by prostar190fan
Script URL: behind firewall
Version of script: 2.7.3
Hosting company: Self
URL of phpinfo.php: behind firewall
URL of session_test.php: behind firewall
What terms did you try when SEARCHING for a solution: php, php error, php7

Write your message below:

I am getting a php notice error: PHP Notice: Only variables should be passed by reference in C:\inetpub\wwwroot\eservicedesk\admin\manage_knowledgebase.php on line 213.

I cannot seem to figure out what is not being passed as a variable. I am using php 7.0.25.

Code: Select all

{
	            $node[$my] = $node[$up]->addItem(new HTML_TreeNode(array('hesk_selected' => $selected, 'text' => $text, 'text_short' => $text_short, 'menu_icons' => $menu_icons, 'hesk_catid' => $cat['id'], 'hesk_select' => 'option'.$j, 'icon' => $icon, 'expandedIcon' => $expandedIcon, 'expanded' => true)));
            }

Re: PHP Notice Error

Posted: Fri Nov 17, 2017 6:38 pm
by prostar190fan
This error relates to debug mode, not sure if that makes a difference.

Re: PHP Notice Error

Posted: Fri Nov 17, 2017 6:56 pm
by Klemen
This has been fixed so long ago I don't even remember when.

So, the reason is you have a very old Hesk version (one not fully compatible with PHP 7) or at least some outstanding files from that version.

If you really are on 2.7.3 I recommend:
1. backup files and database
2. upload ALL Hesk 2.7.3 files again to your server EXCEPT hesk_settings.inc.php one

Re: PHP Notice Error

Posted: Fri Nov 17, 2017 10:36 pm
by prostar190fan
Thanks Klemen, I will try to do an update and report back. It is an updated installation from 2.2 I believe never seeing a fresh install since the first use.