• Resolved nickk40

    (@nickk40)


    I have an ACF Form where users can also upload files. As a user submits the form (even when not adding any files) there are the warnings below. Visually it looks like I am in debug mode, which I’m not.

    Deprecated: Creation of dynamic property MGMediaLibraryFolders::$capability is deprecated in /home/***.cloudwaysapps.com/***/public_html/wp-content/plugins/media-library-plus/media-library-plus.php on line 276

    Deprecated: Creation of dynamic property MGMediaLibraryFolders::$display_fe_protected_images is deprecated in /home/***.cloudwaysapps.com/***/public_html/wp-content/plugins/media-library-plus/media-library-plus.php on line 59

    Deprecated: Creation of dynamic property MGMediaLibraryFolders::$prevent_right_click is deprecated in /home/***.cloudwaysapps.com/***/public_html/wp-content/plugins/media-library-plus/media-library-plus.php on line 60

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AlanP57

    (@alanp57)

    Yes, these may occur as more sites are switching to PHP 8.2 but it should be easy to fix. Till I can get a new version released, I found some code you can use to hide the PHP warnings. Add these lines to your wp-config.php file:

    ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);

    Thread Starter nickk40

    (@nickk40)

    Thank Alan, unfortunately, it didn’t seem to help though. I’ve tried placing it at multiple locations in wp-config.php but it kept displaying the PHP warnings (purged the cache).
    But I’ll just wait for the plugin update to fix it.

    Plugin Author AlanP57

    (@alanp57)

    We have released version 8.1.1 that addresses this issue.

    Thread Starter nickk40

    (@nickk40)

    Thanks Alan! I can confirm the update fixed it on my side.

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

The topic ‘Media Library deprecated warnings’ is closed to new replies.