Plesk is not accessible after upgrade from 11.0.9 to 11.5. PHP Runtime Notice: Only variables should be passed by reference

Created:

2016-11-16 13:15:33 UTC

Modified:

2017-04-24 11:41:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk is not accessible after upgrade from 11.0.9 to 11.5. PHP Runtime Notice: Only variables should be passed by reference

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

Plesk is not accessible after upgrade from 11.0.9 to 11.5. The error in the browser:

PHP Runtime Notice: Only variables should be passed by reference
Line: 243
File: /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(2048, Only variables should be passed by reference, /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php, 243, Array ([process] => Resource id #177,[pipes] => Array ([1] => Resource id #174,[2] => Resource id #175,[0] => Resource id #176),[stdin] => ,[stdout] => ,[stderr] => ,[rx] => Array ([0] => Resource id #174,[1] => Resource id #175),[tx] => Array ([0] => Resource id #176),[txOffset] => 0,[txTotal] => 0,[isPipeValid] => Array ([0] => 1,[1] => 1,[2] => 1),[isPipeWarning] => Array ([0] => ,[1] => ,[2] => ),[errorsOccured] => ,[chunkSz] => 4096,[ex] => )) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Util.php:243]
#1 Service_Agent_Transport_Util::_unixCommunicateAndClose(Resource id #177, Array ([1] => Resource id #174,[2] => Resource id #175,[0] => Resource id #176), , , ) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Util.php:65]

The same output when trying to run any Plesk CLI utility like admin , nginxmng , httpdmng :

# /usr/local/psa/bin/admin --show-password

HP Runtime Notice: Only variables should be passed by reference; File: /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php, Line: 243

PHP Runtime Notice: Only variables should be passed by reference
Line: 243
File: /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(2048, Only variables should be passed by reference, /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php, 243, Array ([process] => Resource id #162,[pipes] => Array ([1] => Resource id #159,[2] => Resource id #160,[0] => Resource id #161),[stdin] => ,[stdout] => ,[stderr] => ,[rx] => Array ([0] => Resource id #159,[1] => Resource id #160),[tx] => Array ([0] => Resource id #161),[txOffset] => 0,[txTotal] => 0,[isPipeValid] => Array ([0] => 1,[1] => 1,[2] => 1),[isPipeWarning] => Array ([0] => ,[1] => ,[2] => ),[errorsOccured] => ,[chunkSz] => 4096,[ex] => )) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Util.php:243]
#1 Service_Agent_Transport_Util::_unixCommunicateAndClose(Resource id #162, Array ([1] => Resource id #159,[2] => Resource id #160,[0] => Resource id #161), , , ) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Util.php:65]
#2 Service_Agent_Transport_Util::executeShellCmd('/usr/local/psa/admin/bin/packagemng' '--list', /usr/local/psa/tmp/agented642070faaa415c476b735fff7a1ec0, , Array (), , , ) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Util.php:21]

Cause

Incomplete upgrade. Not all reqired packages were properly installed.

Resolution

The issue can be fixed by reinstalling psa-core package. The package can be downloaded from http://autoinstall.plesk.com/ .

Example for Centos 6 x64:

# wget http://autoinstall.plesk.com/PSA_11.5.30/dist-rpm-CentOS-6-x86_64/base/plesk-core-11.5.30-cos6.build115130819.13.x86_64.rpm
# rpm -Uvh plesk-core-11.5.30-cos6.build115130819.13.x86_64.rpm --force
...
===> Cumulative upgrade of Plesk (final stage) has been completed.

After reinstallation sw-cp-server should be restarted:

/etc/init.d/sw-cp-server restart
Stopping sw-cp-serverd: [ OK ]
Starting sw-cp-serverd: [ OK ]
Have more questions? Submit a request
Please sign in to leave a comment.