APS application installation fails with "PHP Warning: Invalid argument supplied for foreach()"

Created:

2016-11-16 13:02:10 UTC

Modified:

2017-08-16 16:06:59 UTC

0

Was this article helpful?


Have more questions?

Submit a request

APS application installation fails with "PHP Warning: Invalid argument supplied for foreach()"

Applicable to:

  • Plesk 11.x for Windows

Symptoms

An APS application installation (e.g. Wordpress) fails with an error in the Parallels Plesk user interface:

PHP Warning: Invalid argument supplied for foreach()
Line: 180
File: D:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Driver\Aps\Windows.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(2, Invalid argument supplied for foreach(), D:\Program Files (x86)\Parallels\Plesk\admin\plib\Service\Driver\Aps\Windows.php, 180

Cause

This is an internal issue with ID #PPPM-1448 . The fix is included in Parallels Plesk 12.

Resolution

Disable the display_errors option in " %plesk_dir% " \admin\php.ini by setting the Off value:

findstr display_errors "%plesk_dir%\admin\php.ini"
display_errors=Off

Unzip and replace " %plesk_dir%\admin\plib\Service\Driver\Aps\Windows.php" with this file.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.