Articles in this section

ASP.NET Settings and Hosting Settings pages of a domain are not opening in Plesk: Argument #1 ($array) must be of type array, null given

kb: technical

Applicable to:

  • Plesk for Windows

Symptoms

  • When opening ASP.Net Settings or Hosting Settings of a domain, the page fails to load with one of the following error messages:

    PLESK_INFO: GraphQL Error
    Internal server error

    PLESK_INFO: Type GraphQL Error
    Message array_values(): Argument #1 ($array) must be of type array, null given

  • The following messages are logged in %plesk_dir%admin\logs\php_error:

    CONFIG_TEXT: PHP Warning: Undefined array key "version" in C:\Program Files (x86)\Plesk\admin\plib\AspDotNet\Settings.php on line 119
    PHP Warning: Trying to access array offset on value of type null; File: C:\Program Files (x86)\Plesk\admin\plib\AspDotNet\Settings.php, Line: 119

Cause

Domain's web.config file contains invalid configuration.

Resolution

Review the content of web.config. Use an online validator to check the syntax of the file. For example:

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.