SymptomsIn Parallels Panel the Samba module produces error when during adding or removing of a user from an existing share.
How to reproduce it:
1) Enable error logging of Panel administrative web-server by editing of the $PRODUCT_ROOT_D/admin/conf/php.ini file:
a. 'display_errors' should be 'On',
b. 'log_errors' should be 'On'
c. 'error_reporting' should be 'E_ALL'
d. Restart the Panel service as described in http://kb.sp.parallels.com/en/8085.
2) Go inside Parallels Panel, Modules, Samba Fileserver Configuration, then the 'Users' tab and create two users.
3) Go to the 'Shares' tab and create a new share. Then in the 'Access' section choose 'Selected only' radio button and add one user; press OK
4) Edit just created share and try to add the second user to the list of allowed users.
As a result, the Error message will be displayed:
Catchable fatal error: Object of class FileServerUser could not be converted to string in /usr/local/psa/admin/plib/modules/fileserver/FileServerShare.php on line 234
and no update of the share configuration will be done.
ResolutionReplace the $PRODUCT_ROOT_D/admin/plib/modules/fileserve/FileServerShare.php file with the attachment.
Read the http://kb.sp.parallels.com/en/8083 article about a hot-fix installation procedure.