• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Ajax request in plesk plugin

Muneeb

New Pleskian
I was developing a plesk plugin which infact using zend framework . In that i am making an ajax request as follows :

new Ajax.Request('<?php echo $this->checkStatusAction; ?>', {
method: 'post',
parameters: {param1: value1, param2: value2},
onSuccess: function (transport) {
try {
var response = JSON.parse(transport.responseText);
$('#model_filledRB').html(transport);
} catch (e) {
failedRequest(domain);
return;
}
},
onFailure: function () {
failedRequest(domain);
}
});
But it giving me error as follows :

ERROR: Zend_Controller_Exception: Permission denied.#0 /usr/local/psa/admin/externals/Zend/Controller/Plugin/Broker.php(309): Plesk\Application\Controller\Plugin\ForgeryProtection-&gt;preDispatch(Object(Zend_Controller_Request_Http))<br />
#1 /usr/local/psa/admin/externals/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker-&gt;preDispatch(Object(Zend_Controller_Request_Http))<br />
#2 /usr/local/psa/admin/plib/pm/Application.php(99): Zend_Controller_Front-&gt;dispatch()<br />
#3 /usr/local/psa/admin/htdocs/modules/rblcheckmaster/index.php(6): pm_Application-&gt;run()<br />
#4 &#123;main&#125; (Broker.php:312)<br />
<br><a href='Plesk Help Center' target='_blank'>Search for related Knowledge Base articles</a>
Is this a zend issue ? Or how could i resolve this ? Thanks .
 
Back
Top