Fatal error during login on Plesk
-
I was experiencing a Fatal error during login on Plesk and investigated it.
The issue is into the dep vendor/siteground/siteground-data/src/Settings.phphttps://gist.github.com/mircobabini/0c985bf7a22f1e9d1262a02e80217b23#file-sg-settings-php-L344-L352
Check the docs for wp_remote_retrieve_header, the response can be an Array (and it is, on certain Plesk).So this would cause a fatal into the last row:
array_key_exists( $host_header, $host_headers )Because the array_key_exists does NOT accept an array as key.
To simulate the error, just force $host_header = array( ‘Plesk’, ‘18.0.17’ );
And you will see the fatal.
You must be logged in to reply to this topic.