PHP Notice: Undefined property: ProSites::$plugin_file in /pro-sites/pro-sites.php on line 115

Hi,

Recently moved the multisite to new server.

1) In one of the themes its giving error
************************************
PHP Notice: Undefined property: ProSites::$plugin_file in /public_html/wp-content/plugins/pro-sites/pro-sites.php on line 115
*********************************
Other themes are working fine.
This link is not much of help.

Where can it go wrong?. Please Help.

Thanks

  • Vaughan
    • Support/SLS MockingJay

    Hi @sid,

    That's just a notice and is nothing to worry about other than it's displaying on the site. It's probably just appeared because the PHP version is a different between your old server & the new server.

    The easiest way to remove it is to disable error_reporting.

    In your wp-content/mu-plugins folder (if it doesn't exist, then create it)

    Create a file called error-reporting.php

    Inside this file add the following:

    <?php
    //Turns off notices
    error_reporting(E_ALL ^ E_NOTICE);

    Then upload it to your mu-plugins folder.

    That should remove the notice.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.