• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Plesk backend can no longer be accessed due to PHP error in security-advisor

philippL

New Pleskian
Ubuntu 14.04.6 LTS
Plesk 12.5.30-ubuntu14.04.build1205150826.19

After login the backend shows:
ERROR: Undefined class constant 'PLACE_ADMIN_NAVIGATION' (CustomButtons.php:20)

Search for related Knowledge Base articles
That error can also be found in /var/log/plesk/panel.log

After searching for that file containing that constant I found it in /opt/psa/admin/plib/modules/security-advisor/hooks/CustomButtons.php
However, neither removing that file nor uninstalling the extension via "plesk bin extension --uninstall security-advisor" had any effect. It's almost like that error display or the PHP code behind it got cached and keeps getting executed. I tried restarting a bunch of Plesk services but without any effect:
Code:
/etc/init.d/psa restart
/etc/init.d/sw-cp-server restart
service sw-engine restart && service sw-cp-server restart
service apache2 restart
service nginx restart

I don't know what changed - it was working a week ago.
 
Same here, but we was able to fix.
We found related files with this command:
Code:
find /opt/psa/admin -name "CustomButtons.php" -ls
This give us the extension, which was updated recently. In our case "google-authenticator".

I uninstall from CLI and was able to access Plesk again.
A question would be, how this can happen. The system combination is, I'm sure, unsupported and shouldn't get updates anymore. Also when we shouldn't use this OS anymore, it works and we can use time to migrate.
 
Thank you @swarnat , that solved the problem. Curiously the google-authenticator extension does not contain "PLACE_ADMIN_NAVIGATION" in CustomButtons.php nor in any of its other files. But uninstalling google-authenticator did the trick.
 
Back
Top