How to fix error: Installation of the Plesk Updates file: Call to a member function toArray () is null (Config.php)

Creation of hosting on subscription fails with error: Call to a member function getRootPath () on a non-object (Abstract.php: 141)

 

This error is usually seen in the following cases in the Plesk panel:

1. You can not create a new account or the Domains menu will not open. In both cases, you will encounter the following error:

ERROR: Call to a member function toArray () is null (Config.php: 85)

2. When you want to log in to the WordPress menu in Domains> example.com> Log in or want to edit the Service Plan, you will encounter the following error:

ERROR: Call to a member function toArray () is null (Config.php: 119)
3. When creating a Sub-Domain, encounter the following error:

Internal error ;-P <script> </ script> <p> ERROR: Call to a member function toArray () is null (Config.php: 85)
4. You do not have access to Hosting Settings and PHP Settings in the host and you encounter the following error:

ERROR: Call to a member function toArray () is null (Config.php: 142)
5- When installing SSL, you will encounter the following error by visiting the Domain> example.com> SSL / TLS Certificates section:

ERROR: Undefined class constant ‘TMP_PREFIX_ZEND_FILE_TRANSFER’ (FileTransferAdapterHttp.php: 10)

6. While browsing the Service Plan section and selecting a package for editing, the following error message is displayed:

ERROR: Call to a member function toArray () is null (Config.php: 142)

7- Pleschek encounters one of two errors during the update process:

% plesk_dir% admin \ logs \ php_error.log:

“C: \ Program Files (x86) \ Parallels \ Plesk \ /admin/bin/ai.exe” –select-product-id panel –select-release-current –upgrade-installed-components failed with message: ERROR : can not apply patch panel-17.5.3 ~ patch33

Unable to set the object (C: \ Program Files (x86) \ Parallels \ Plesk \ admin \ htdocs \ javascript \ .aiupd_5447 \ jsw.min.js.old) owner: (5) Access is denied.

PHP Fatal error: Call to a member function toArray () is null in C: \ Program Files (x86) \ Parallels \ Plesk \ admin \ plib \ PhpSettings \ Config.php on line 119
Or

The process can not access the file because it is being used by another process.

(Error code 32) at rename file C: \ Program Files (x86) \ Plesk \ admin \ plib \ CommonPanel \ Config \ Defaults.php to C: \ Program Files (x86) \ Plesk \ admin \ plib \ CommonPanel \ Config \ .aiupd_13030 \ Defaults.php.old
8. Click the View the update logs button to see the following message:

Details: ERROR: can not apply patch panel-17.5.3 ~ patch42

The process can not access the file because it is being used by another process.

(Error code 32) at rename file C: \ Program Files (x86) \ Plesk \ admin \ plib \ functions.php to C: \ Program Files (x86) \ Plesk \ admin \ plib.aiupd_8046 \ functions.php.old

Warning! Not all packages were installed.

The reason for the above errors

The reason for all the above errors is just one factor, and that is one of the Plesk bugs numbered PPPM-7691 that was fixed in the new autoinstaller.

 

The solution to the above errors

Connect to the server via the Remote Desktop (RDP). Open CMD on the server and run the following command:

Its all done! After successful execution of the above command, all errors are resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *