1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Event not firing - "Hosting settings updated"

Discussion in 'Plesk 11.x for Linux' started by ReibcoU, Dec 11, 2012.

  1. ReibcoU

    ReibcoU New Pleskian

    10
    35%
    Joined:
    Dec 11, 2012
    Messages:
    5
    Likes Received:
    0
    All,

    I would like to run a script when the "Access to the server over SSH" dropdown value is changed. To this end, I created an event handler for the "Hosting settings updated" event, as it is the only event that I can see that is handles this data (parameters OLD_SYSTEM_SHELL and NEW_SYSTEM_SHELL).

    However, my event is not firing when I change the value and save it. Through Googling, I found that this issue also occurred in Plesk Panel 10.2, but they had a patch. Unfortunately (but not unexpectedly), applying the patch broke Plesk Panel 11.x, so I reverted.

    So, main questions are:
    1. Has anyone gotten an event to trigger when the "Access to the server over SSH" value is changed?
    2. Is this a bug or am I not using the correct event handler?
    3. If this is a bug, is there a fix or workaround?

    Thank you for your time.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    What patch do you mean? Is it third-party patch or patch from Parallels?
     
  3. ReibcoU

    ReibcoU New Pleskian

    10
    35%
    Joined:
    Dec 11, 2012
    Messages:
    5
    Likes Received:
    0
    The "patch" I refer to is from the knowledgebase:
    http://kb.parallels.com/en/112144

    The article is titled "'Hosting settings updated' is not triggered on SSH access settings update", and the resolution was to replace two files with the ones attached in the article. However, this was for Plesk Panel 10.2, and the files do not work with Plesk Panel 11.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Thank you for details. Actually this issue looks like was not fixed in Plesk 11. We have patch only for 10.2 version.
    I have notified responsible developers about this problem. I hope we will implement fix to 11 version soon.
    I will keep this thread updated with results.
     
  5. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  6. ReibcoU

    ReibcoU New Pleskian

    10
    35%
    Joined:
    Dec 11, 2012
    Messages:
    5
    Likes Received:
    0
    Thank you for such a quick response and fix for this! I have replaced the files with the files provided in the updated KB article, and the trigger is now working correctly. Excellent.
     
    Last edited: Dec 13, 2012
Loading...