• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

11.5.30 #6: PHP Runtime Notice: Only variables should be passed by reference

timber

Basic Pleskian
Hi!

Whenever I start/stop/restart a service via Server Tools & Settings -> Service Management, I get the following PHP error:

PHP Runtime Notice: Only variables should be passed by reference
Line: 393
File: /opt/psa/admin/plib/common_func.php3
Stack Trace:
#0 Smb_Exception_Syntax::handleError(2048, Only variables should be passed by reference, /opt/psa/admin/plib/common_func.php3, 393, Array ([pipes] => Array ([1] => Resource id #369,[2] => Resource id #370),[stdout] => ,[stderr] => ,[read] => Array ([0] => Resource id #369,[1] => Resource id #370),[isPipeValid] => Array ([0] => 1,[1] => 1,[2] => 1),[chunkSize] => 4096,[selectRc] => ,[write] => ,[exclude] => )) called at [/opt/psa/admin/plib/common_func.php3:393]
#1 _processPipes(Array ([1] => Resource id #369,[2] => Resource id #370), , ) called at [/opt/psa/admin/plib/common_func.php3:313]
#2 lst_exec(exec /opt/psa/admin/bin/apache_control_adapter '--status') called at [/opt/psa/admin/plib/common_func.php3:186]
#3 util_exec(apache_control_adapter, Array ([0] => --status), Array (), lst) called at [/opt/psa/admin/plib/class.ServiceControl.php:326]
#4 ServiceControl->getServiceStatus(web) called at [/opt/psa/admin/plib/class.RestartServForm.php:132]
#5 RestartServForm->assign(ServiceControl Object ([entity_list_] => Array ([pop3] => restart),[services_list_] => Array ([pop3] => Array ([name] => Courier-IMAP,[package] => courier-imap,[utility] => mailmng-service),[web] => Array ([name] => Apache,[package] => httpd,[utility] => apache_control_adapter),[smtp] => Array ([name] => Postfix,[package] => postfix,[utility] => mailmng-service),[pop3s] => Array ([name] => Courier-IMAP,[package] => courier-imap,[utility] => mailmng-service),[imap] => Array ([name] => Courier-IMAP,[package] => courier-imap,[utility] => mailmng-service),[imaps] => Array ([name] => Courier-IMAP,[package] => courier-imap,[utility] => mailmng-service),[authdaemon] => Array ([name] => Courier-IMAP,[package] => courier-imap,[utility] => mailmng-service),[dns] => Array ([name] => BIND,[package] => bind,[utility] => dnsmng),[coldfusion] => Array ([name] => Not configured,[package] => Not configured,[utility] => cfmng),[spamassassin] => Array ([name] => Spam Filter,[package] => psa-spamassassin,[utility] => spammng),[kav] => Array ([name] => Kaspersky Antivirus,[package] => psa-kav8,[utility] => kavmng),[milter] => Array ([name] => Postfix,[package] => postfix,[utility] => mailmng-service),[nginx] => Array ([name] => Nginx,[package] => nginx,[utility] => nginxmng),[php-fpm] => Array ([name] => php-fpm,[package] => php-fpm,[utility] => phpinimng)),[timeout_] => Array ([sec] => 3,[usec] => 0),[] => ,[error_] => ,[errorMsg_] => )) called at [/opt/psa/admin/htdocs/server/restart_services.php:34]
#6 require(/opt/psa/admin/htdocs/server/restart_services.php) called at [/opt/psa/admin/htdocs/plesk.php:44]

I've had this problem with 11.5.30 #3 and possibly before that. I can't figure it's a general problem? But I don't know what might cause it on my system. Any help is appreciated. Thanks.
 
Looks like that upgrade was not completed successfully. Have you tried to fix it with bootstrapper repair procedure at least?
 
Hi Igor,

Thanks for suggesting this. I ran the bootstrapper script but it did not fix my problem. Log below:

root@hosting:/opt/psa/bootstrapper/pp11.5.30-bootstrapper# ./bootstrapper.sh repair
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade and repair of Plesk database (revertable stage) has been completed.
===> Cumulative Plesk upgrade and repair (final stage) has been started.
===> Preparing Plesk upgrade (final stage).
===> Cumulative upgrade and repair of Plesk (final stage) has been completed.
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
===> Upgrade and repair of APS controller database has been completed.
Reconfiguring mail subsystem...
Reconfiguring Apache web server...
Reconfiguring ProFTPD FTP server...
Reconfiguring AWStats web statistics...
Reconfiguring WatchDog...
Restoring SELinux contexts...
Regenerating web servers' configuration files...
Cleaning active Panel sessions...

Bootstrapper repair finished.
If problems persist, please check installer logs ('/tmp/plesk_11.5.30_repair.log' and '/tmp/plesk_11.5.30_repair_problems.log') for errors.
If you can't resolve the issue on your own, please address Parallels support.
 
Back
Top