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.
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.