Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Incorrect request parameters submitted #56

Open
eLviiis95 opened this issue Oct 9, 2017 · 1 comment
Open

Error: Incorrect request parameters submitted #56

eLviiis95 opened this issue Oct 9, 2017 · 1 comment

Comments

@eLviiis95
Copy link

I get this error by trying to test the example from php-plesk: ListEmailAddresses

Fatal error: Uncaught pmill\Plesk\ApiRequestException: Error: Incorrect request parameters submitted in C:\wamp64\www\src\pmill\Plesk\BaseRequest.php:87 Stack trace: #0 C:\wamp64\www\src\pmill\Plesk\ListEmailAddresses.php(44): pmill\Plesk\BaseRequest->__construct(Array, Array) #1 C:\wamp64\www\config.php(37): pmill\Plesk\ListEmailAddresses->__construct(Array, Array) #2 {main} thrown in C:\wamp64\www\src\pmill\Plesk\BaseRequest.php on line 87

here is the code:

$config = array(
    'host'=>'MYDOMAIN.DOM',
    'username'=>'USER',
    'password'=>'PASSWORD',
);

$params = array(
	'domain'=>'mydomain.dom',
);
$request = new \pmill\Plesk\ListEmailAddresses($config, $params);
$info = $request->process();
var_dump($info);

can any help me?
Plesk version is: 17.5.3

@bedrijfsportaal
Copy link

There is no parameter 'domain', only 'site-id' as known in Plesk to retreive the list of Email addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants