• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Clicking on Custom View Settings in Tools throws exception

Amin Taheri

Golden Pleskian
Plesk Certified Professional
Repro Steps
Under Server Management left nav item, click on the Tools and Settings
Under Panel, click on the first item -> Custom View Settings

Immediately an exception is thrown

PHP Catchable Fatal Error: Argument 1 passed to CommonPanel_Controller_Helper_Subscription::getPermissions() must implement interface Plan_Interface, null given, called in /usr/local/psa/admin/panel/application/library/AdminPanel/Form/Final/ServicePlan/AdminPlanHostingPermissions.php on line 45 and defined
Line: 167
File: /usr/local/psa/admin/plib/CommonPanel/Controller/Helper/Subscription.php
Stack Trace:

[ The stack trace is too large to post here, it is at http://pastebin.com/rXaSypcp ]


my Interface Views are set to Service Provider view, but even if that is the cause it should not throw an exception, it should either hide this area from being accessed, or provide a friendly error message.
 
HI Igor,

Thanks for your reply but that didnt work.

First of all, I dont have a /usr/local/psa/sw-engine-pleskrun as that post mentions. I do have that in /usr/local/psa/bin/sw-engine-pleskrun however, but it doesnt work nonetheless.

]# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/upgrade_admin_simple_plan_permissions_1013.php

Fatal error: Call to a member function properties() on a non-object in /usr/local/psa/admin/plib/scripts/upgrade_admin_simple_plan_permissions_1013.php on line 27
 
Update:

Actually it looks like I missed a step, there are 2 commands to run - after running both of them it seems to fix the problem.

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/create_default_simple_template.php
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/upgrade_admin_simple_plan_permissions_1013.php
#
 
Back
Top