• Resolved David Rychly

    (@redoper)


    Hello,

    I have disabled the notification emails in the settings page of the plugin and now I’m getting fatal error.

    Trace from the automatic WP email is:

    An error of type E_ERROR was caused in line 452 of the file /app/wp-content/plugins/website-file-changes-monitor/includes/admin/html-settings-markup.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /app/wp-content/plugins/website-file-changes-monitor/includes/admin/html-settings-markup.php:452
    Stack trace:
    #0 /app/wp-content/plugins/website-file-changes-monitor/includes/admin/html-settings-markup.php(452): in_array('added', 'no', true)
    #1 /app/wp-content/plugins/website-file-changes-monitor/classes/admin/class-admin-manager.php(382): require_once('/app/wp-content...')
    #2 /app/wp-includes/class-wp-hook.php(324): MFM\Admin\Admin_Manager::settings_admin('')
    #3 /app/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #4 /app/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /app/wp-admin/admin.php(259): do_action('file-monitoring...')
    #6 {main} thrown

    -----
    WordPress version 6.5.5
    Active theme: Twenty Twenty-Three (version 1.4)
    Current plugin: Melapress File Monitor (version 2.0.2)
    PHP version 8.3.4
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello David!

    I am really sorry to hear about this experience. This is clearly the first time we’re seeing this one, so I would have a few questions just to shed some light here.

    1. Can you tell me a bit about your site’s PHP and WP Core versions and what plugin versions you are using? Is everything up to date?

    2. Can you tell me precisely, step by step, what actions you took to cause this and what setting was disabled from our plugin more specifically?

    Also, is this a one-time error, or does it happen every time on certain occasions or after performing specific actions? Is the plugin still working properly now? Some screenshots and explanations to describe how this error affects the site/plugin will also be helpful.

    3. If you completely remove the plugin by first going to settings and checking these options here in order to ensure a complete removal – does the same happen after reinstalling the plugin?

    Looking forward and with great interest in hearing back from you.

    Thread Starter David Rychly

    (@redoper)

    Hello Lucian,

    versions are listed at the bottom of the error message in the first comment.

    I have unchecked these three checkboxes:

    Error causes that I can’t switch between plugin settings tabs and maybe even save doesn’t work (I’m not sure right now).

    Error stays even after plugin reinstall.

    Thanks for providing me with these details!

    Even this is quite an edge case, I was able to reproduce this one, and we will surely address it in one of the plugin next maintenance updates.

    For now, as a workaround, and since you do not want email notifications once scan is done, I suggest using the settings at the bottom o Settings page here

    Before being able to access the Settings page, make sure you remove all mfm_ prefixed entries from your WP_OPTIONS table of your site’s database (which will erase those faulty settings), and then remove and reinstall the plugin once again, then set up email notifications based on the bottom page settings as instructed above will do the trick for your use case.

    Let me know how this goes!

    Thank you

    Thread Starter David Rychly

    (@redoper)

    Ok, I will try to do so when I will be able to reach the PC after my vacation.
    But I think that the emails were sent even through I have disabled them during the setup, so I tried to disable them as you can see in the screenshot. But I’m not sure right now, if they were disabled in the settings after that initial setup or not.

    Thank you very much for looking into it.

    Thread Starter David Rychly

    (@redoper)

    Hello Lucian,

    sorry for not sending update sooner. Setting value of the “mfm_enabled-notifications” option to “a:0:{}” from “no” solved the issue.

    Thank you very much again for your help.

    Thank you for your confirmation, David! I am glad things are now working as expected!

    Should you have any other questions, feel free to reach out!

    Plugin Author robertabela

    (@robert681)

    @redoper please do not forget to spare a minute to rate our plugin. These ratings are really helpful.

    have a great day.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.