• Resolved ivancza

    (@ivancza)


    Hello!

    I would like to know why when I change the plugin settings in the WordPress admin interface and try to save it, I get the following errors:

    PHP Warning: Undefined array key “scan-hour-am” in /wp-content/plugins/website-file-changes-monitor/classes/admin/class-admin-manager.php on line 487

    PHP Fatal error: Uncaught TypeError: strtoupper(): Argument #1 ($string) must be of type string, null given in /wp-content/plugins/website-file-changes-monitor/classes/admin/class-admin-manager.php:487
    Stack trace:
    0 /wp-content/plugins/website-file-changes-monitor/classes/admin/class-admin-manager.php(487): strtoupper()
    1 /wp-includes/class-wp-hook.php(324): MFM\Admin\Admin_Manager::save_options()
    2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    3 /wp-includes/plugin.php(517): WP_Hook->do_action()
    4 /wp-admin/admin.php(237): do_action()
    5 {main}
    thrown in /wp-content/plugins/website-file-changes-monitor/classes/admin/class-admin-manager.php on line 487

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @shamrock82,

    I’m really sorry to hear about your experience with the plugin!

    This is the first time someone reports this, and I wasn’t able to reproduce the issue based on the steps described, so I’ll need a few more details to investigate further.

    1. Can you confirm if you are using the latest 2.2.1 version of the plugin when this occurs? Also, what PHP version and WordPress Core version is your site running?
    2. Could you provide a more detailed breakdown of the steps required to reproduce this? Specifically, what settings were applied before saving the page? If possible, a screenshot of the settings would be very helpful.
    3. As a troubleshooting step, can you try removing the plugin completely and reinstalling it? Before doing so, please ensure that all MFM_ prefixed entries in your wp_options table are removed so that no old settings persist. After that, reinstall the plugin and see if the issue persists.
    4. Last but not least, is this error causing a complete site crash, or maybe it’s just a one-time error causing some malfunctions of the plugin? A few more details on how this affects the plugin/site will also be useful to know.

    Let me know how it goes, and I’ll be happy to assist further!

    Thread Starter ivancza

    (@ivancza)

    I just installed the plugin to test it on another site where it wasn’t installed before. Unfortunately, the same problem occurs.

    The scan runs fine: https://prnt.sc/2i4qUYfVheyH (I also receive an email about it)

    However, even without making any changes, if I want to save the settings, it immediately throws the errors, both the frontend and the debug.log file that I copied:

    Versions used by us:

    PHP: 8.1.31

    WordPress: 6.7.2

    Melapress File Monitor: 2.2.1

    Thanks!

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello again @ivancza!

    Great news! After running a few more tests, we were able to pinpoint the exact cause of the issue, and we’ve created a patched build that should resolve this for you.

    You can download the patch here: (scroll to the bottom of the page).

    Installation Steps:

    1. Head to the Plugins page in your WordPress dashboard.
    2. Click “Upload Plugin.”
    3. Upload and install the patched version (if File Monitor is already installed, simply replace the existing installation).

    Everything should work as expected after applying the patch! This fix will also be included in the upcoming plugin update, so once it’s available, you can update as usual.

    Looking forward to your feedback—let me know how it goes!

    Thread Starter ivancza

    (@ivancza)

    It works fine 🙂

    Thanks for the quick help!

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Thank you for confirming this for me Ivan! I am glad it all worked out!

    Should you have any other questions, please do not hesitate to ask. May I ask you for a small favour? Can you please spare a minute to rate our plugin and service? These ratings are really helpful!

    Thank you in advance for your time!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @lucianwpwhite Are you part of the developer’s team to support this plugin? If yes then please ask them to add you as a plugin support role.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Errors during saving’ is closed to new replies.