• Barry

    (@barrypersonalctonet)


    I have been using Error Log Monitor for years with no issues. Today I am setting up a new multisite installation running PHP 8.3. I am trying to activate either the free or pro version of Error log monitor and get a fatal error:

    [15-Jan-2026 21:44:51 UTC] PHP Warning: Attempt to read property “id” on null in /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php on line 11814
    [15-Jan-2026 21:44:51 UTC] PHP Fatal error: Uncaught TypeError: Freemius::get_api_user_scope_by_user(): Argument #1 ($user) must be of type FS_User, null given, called in /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php on line 23654 and defined in /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php:23668
    Stack trace: 0 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(23654): Freemius->get_api_user_scope_by_user(NULL) 1 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(20389): Freemius->get_api_user_scope() 2 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(11824): Freemius->_fetch_licenses(false, ‘1096763’, Array, NULL) 3 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(11947): Freemius->_sync_licenses(‘1096763’) 4 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(16706): Freemius->_get_license_by_id(‘1096763’) 5 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(559): Freemius->_load_account() 6 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php(2868): Freemius->__construct(‘2379’, ‘error-log-monit…’, true) 7 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/start.php(620): Freemius::instance(‘2379’, ‘error-log-monit…’, true) 8 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/plugin.php(33): fs_dynamic_init(Array) 9 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/plugin.php(53): wsh_elm_fs() 10 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-admin/includes/plugin.php(2400): include_once(‘/chroot/home/a6…’) 11 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-admin/includes/plugin.php(673): plugin_sandbox_scrape(‘error-log-monit…’) 12 /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-admin/plugins.php(60): activate_plugin(‘error-log-monit…’, ‘https://plengeg…’, false) 13 {main}

    thrown in /chroot/home/a61c4566/a87909b784.nxcli.io/html/wp-content/plugins/error-log-monitor/freemius/includes/class-freemius.php on line 23668

    This only happens on one of the sites in the multisite installation, and on others it activates fine. Is there a known issue with this that you are aware of that can help me avoid doing PHP version testing or plugin conflict testing?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Barry

    (@barrypersonalctonet)

    Ok, I did a little digging and it looks like Post SMTP has a different version of the freemius script, although even with that inactive Error Log Monitor triggers a fatal error when activating. Is there an issue with Error Log Monitor and PHP 8.3?

    Plugin Author Janis Elsts

    (@whiteshadow)

    This is probably not a PHP compatibility issue, for two reasons:

    • I use ELM on one of my own sites that runs PHP 8.3.29, and it doesn’t trigger errors like that there. I intentionally deactivated and reactivated the plugin just in case it was an error that only happens during activation, but it was still fine.
    • You mentioned that it only happens on one site in a Multisite network. Presumably, all sites in that Multisite use the same PHP version, right? So a problem that happens on only one site is probably not related to the PHP version.

    My guess would be that some of the Freemius SDK data in the database is somehow invalid or corrupted. One thing you could try is to manually delete the Freemius account data from the database for that site.

    1. Back up the database.
    2. Open the wp_X_options table where X is the site ID.
    3. Delete options like fs_accounts and fs_active_plugins. If that doesn’t help, consider deleting other options that start with fs_.
    4. Try activating the plugin again.

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

You must be logged in to reply to this topic.