Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter macrunner

    (@macrunner)

    I think that this anomaly is very serious.
    No support from iThemes?

    If you are looking for a response from iThemes chances are very slim you will actually get one here.
    For a chance to get it fixed by iThemes report this issue as a bug here:

    https://ithemes.com/security/bugs/

    It’s definately a bug. Actually there are 2 bugs …
    And I agree with you, yours is a serious bug.
    The other one is cosmetic.

    Start by fixing the cosmetic one and you’ll get a better understanding of what is happening with your bug.
    The fix for the cosmetic bug is recommended for anyone else reading this post and using the Away Mode feature.

    Search for the following line in the metabox_away_mode_settings() function of the class-itsec-away-mode-admin.php file:

    if ( isset( $this->settings['enabled'] ) && $this->settings['enabled'] === 1 && ( $this->settings['type'] === 1 || ( $this->settings['end'] > current_time( 'timestamp' ) ) ) ) {

    and change/fix it to:

    if ( isset( $this->settings['enabled'] ) && $this->settings['enabled'] === true && ( $this->settings['type'] === 1 || ( $this->settings['end'] > current_time( 'timestamp' ) ) ) ) {

    Doublecheck: change 1 to true. It is a very simple fix.

    @macrunner, after fixing the cosmetic bug retest your issue.
    (Please understand this is not a fix for your bug. However fixing the cosmetic bug will give you a better idea of what is happening when start and end time are reset …).

    Meanwhile I’m trying to think of a solution for your bug. No guarantees.

    dwinden

    Thread Starter macrunner

    (@macrunner)

    Hi dwinden, I tried your solution and it works great.
    I understand that this is a temporary solution.
    Thank you very much

    Thread Starter macrunner

    (@macrunner)

    With the new update 4.6.13 unfortunately the problem is back. The settings will auto reset.
    What should I do? I have to re-apply the fix on the file class-itsec-away-mode-admin.php ?
    This plugin should ensure safety, please find a definitive solution, thanks.

    As I explained in my earlier post the cosmetic fix does NOT fix your bug.
    It will only help to display some extra info about the actual status of the Away Mode feature. This way I was hoping you would get a better understanding of your bug and how to deal with it.

    The Away Mode time controls are still reset but as long as you don’t click on any “Save All Changes” button the start\end time stored in the database will remain unchanged. The extra info about the actual status of the Away Mode displayed will confirm this…

    If you need to change and save any other setting by clicking on any “Save All Changes” button you need to make sure to first set the Away Mode start\end time controls to the correct values.

    Otherwise the Away Mode start\end time saved in the database will most of the times be reset to 12:00am6:00am.

    So in short the iTSec plugin resets the Away Mode time controls but it is the administrator of the website that resets the saved start\end time in the database when saving settings.

    Oh and just to be sure there is no misunderstanding, I’m not an iThemes employee … just providing some help …

    dwinden

    Thread Starter macrunner

    (@macrunner)

    @dwinden I would greatly appreciate your help, but the question is very simple: the function Away Mode does not work.
    By iThemes no answer. This is very serious.

    Please read the beginning of my first post in this topic where I explained how to get these 2 Away Mode bugs permanently fixed by iThemes.
    iThemes does not consider this forum as their primary support channel.
    (Which I think is a big shame …)

    The Away Mode feature does work … but you need to understand how to work around the issue of the plugin automatically resetting the Start\End Time controls when “Type of Restriction” is set to Daily.

    It works just fine in my environment so I know it can work in yours.
    It’s just a matter of awareness.

    Anyway, to get the info about the actual status of the Away Mode feature back simply redo the cosmetic fix as explained earlier.
    It is the best you can do till iThemes fixes the issue(s) and provides a plugin update.

    I’ve provided you with all the info necessary to workaround the issue.
    It’s up to you to use that information.

    I’m still in the process of testing a fix for the plugin automatically resetting the (Daily) Start\End Time controls …
    Once I feel confident it fixes that specific issue I’ll update this topic.

    dwinden

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Away mode self-resets’ is closed to new replies.