• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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