invalid_argument on manually cancelling pro sites status from backend

Hey there! :slight_smile:

This is a little bug-report.
The title says is all. If i (superadmin) remove pro sites status from a site,
i get the following error message on top of the page.

Pro sites status is removed. Everything seems to work fine.

Just wanted to let you know.
Best,
David

  • Sajid
    • DEV MAN’s Sidekick

    Hi @David

    Hope you are doing good today :slight_smile:

    Thanks for bringing it into our attention. I am marking it as confirmed bug and notifying the developer of his issue. Hopefully it will be fixed in upcoming versions of this plugin.

    Sending some points for appreciation.

    Meanwhile you can hide these message by adding following define in wp-config.php file.

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    Take care and have a nice day :slight_smile:

    Cheers, Sajid

  • MapSteps
    • Site Builder, Child of Zeus

    Hey @Rheinard,

    i see the issue has been marked as solved in the changelog. Just wanted to let you know that if i cancel a pro-site from my backend, i still get this message:

    Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/mylocalsite/wp-content/plugins/pro-sites/pro-sites-files/modules/premium-plugins-manager.php on line 293

    Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/mylocalsite/wp-content/plugins/pro-sites/pro-sites-files/modules/premium-plugins-manager.php on line 293

    Best,
    David

  • Sajid
    • DEV MAN’s Sidekick

    Hi @David,

    Hope you are doing good today :slight_smile:

    Please try to delete Pro Sites plugin completely (your data will be safe) and then try installing the plugin again via WPMUDEV Dashboard plugin.

    If its still there then, let me know and I will mark it for the attention of developer.

    Take care and have a nice day :slight_smile:

    Kind Regards,
    Sajid J

  • Sajid
    • DEV MAN’s Sidekick

    Hi @David,

    Hope you are doing good today :slight_smile:

    Thanks for letting us know, I have flagged @Rheinard again to bring this into his attention, so it can be knock out in upcoming version of this plugin.

    Take care and have a nice day :slight_smile:

    Kind Regards,
    Sajid J

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.