humanmade/network-media-library

PHP Notice given on sub-sites

Opened this issue · 2 comments

For some reason, the plugin gives the following PHP notice according to Query Monitor when visiting a page on the frontend like on this page:

Notice | Trying to get property 'id' of non-object | 1 |  wp-content/plugins/network-media-library-master/network-media-library.php:228

second this. it happens when the media site is set to 1, wich makes sense. is there a reason to have media by default on site with id 2 and not working correctly when set to the first site?

Also experiencing this issue. Is there any work around for this? It's a constant PHP error throughout the site.