• 3r1c

    (@3r1c)


    I’ve noticed when changing the status of a file to protected from within the Edit Media page, the following error is thrown after clicking the Update button. The status update is saved as desired, but clearly there’s a problem.

    Warning: Illegal string offset ‘sizes’ in /home/cf98136/public_html/wp-content/plugins/media-vault/includes/mgjp-functions.php on line 113

    Warning: Cannot modify header information – headers already sent by (output started at /home/cf98136/public_html/wp-content/plugins/media-vault/includes/mgjp-functions.php:113) in/home/cf98136/public_html/wp-includes/pluggable.php on line 1121

    The strangest thing about this is that it doesn’t happen all of the time. I even tested it on other installs (some with all other plugins deactivated) and still get similar results.

    https://ww.wp.xz.cn/plugins/media-vault/

Viewing 1 replies (of 1 total)
  • I ran into this issue as well, but it did not impact the protecting of my asset.

    It occurred after importing assets. My imported media did not have any meta data, so wp_get_attachment_metadata() returned null.

    Adding an if ( $meta ) around line 113 to 117 will check if the variable is valid and prevent this error.

Viewing 1 replies (of 1 total)

The topic ‘Error when changing status to protected’ is closed to new replies.