With reference to ImpressPages - Unable to add plugin / themes ( version 4.2.7 - abt 2 years ago ) the problem still seems to be persistent ?
The relevant code from /Ip/Internal/Plugins/PluginDownloader.php is;
$fileMd5 = md5_file($archivePath);
$rsa = new \Crypt_RSA();
$rsa->loadKey($this->publicKey);
$rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
$verified = $rsa->verify($fileMd5, base64_decode($signature));
if (!$verified) {
throw new \Ip\Exception('Plugin signature verification failed.');
}
RSA.php is available at ;
`require_once IP_PHPSECLIB_DIR . 'Crypt/RSA.php'`
Commands md5_file, base64_decode run properly ( tested via simple test scripts ).
I tried to echo values of $rsa and $verified;
echo'<pre>';var_dump($rsa);
echo'<pre>';var_dump($verified);
but got "Unknown error. Please see logs."
Tried ;
trigger_error("///////// RSA Obj Is /////////// :- ".$rsa, E_USER_WARNING );
trigger_error("///////// Verified Is /////////// :- ".$verified, E_USER_WARNING );
but got the same "Unknown error. Please see logs."
As for the Logs ( hidden under Admin-> Menu -> System -> Log ), well they showed nothing.
Next, i tried https://www.impresspages.org/docs/log - ipLog() function but it doesnt say how we can use ipLog() to see values of variables such as $rsa , $verified to troubleshoot further.
So my question to any ImpressPages guru here is;
- How do we inspect the values of $rsa, $verified ?
- How to get impresspages to install plugins via the admin interface ? or is this feature broken for the past 2 years ?