• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Error 500 - IIS.php

SM-Netuy

New Pleskian
Server operating system version
Windows Server 2022
Plesk version and microupdate number
18.0.60 #0
When the login to the Plesk control panel succeed, the following is printed:

Server Error

500 TypeError​

count(): Argument #1 ($value) must be of type Countable|array, bool given
TypeTypeError
Messagecount(): Argument #1 ($value) must be of type Countable|array, bool given
FileIIS.php
Line1827

This happen all the time after the login and the repair utility is not working (same error), besides this, all the resources are enough (Disk, RAM, CPU).

Tried the repair and checks of the tool Plesk Reconfigurator, this is done without errors, but doesn't solve anything.

The logs that was find:

[2024-04-09 08:19:55] 1264:6615245b4d14a ERR [panel] count(): Argument #1 ($value) must be of type Countable|array, bool given: 0: C:\Program Files (x86)\Plesk\admin\plib\PHostingManager\IIS.php:1827 PHostingManager_IIS::hasHostingsWithoutIPV4Address() 1: C:\Program Files (x86)\Plesk\admin\plib\DefPackageMng.php:373 DefPackageMng->_parseXMLData(string '<?xml version="1.0" encoding="utf-8"?><packages updateTime="2024-03-27 13:28:42"><type name="appin...') 2: C:\Program Files (x86)\Plesk\admin\plib\DefPackageMng.php:43 DefPackageMng->__construct(string '<?xml version="1.0" encoding="utf-8"?><packages updateTime="2024-03-27 13:28:42"><type name="appin...') 3: C:\Program Files (x86)\Plesk\admin\plib\DefPackageMng.php:25 DefPackageMng::make() 4: C:\Program Files (x86)\Plesk\admin\plib\class.TrialDrWeb.php:41 TrialDrWebManager->__construct() 5: C:\Program Files (x86)\Plesk\admin\plib\class.TrialDrWeb.php:9 TrialDrWebManagerMaker() 6: C:\Program Files (x86)\Plesk\admin\htdocs\check-plesk.php:220
 
Back
Top