Possible bug in umbumedia.php?
-
I was getting a 500 error in Chrome on the backend of my site that prevented me from clicking some admin links.
Investigating the server logs I found:
Fatal error: Uncaught Error: Using $this when not in object context in …/wp-content/plugins/upload-media-by-url/inc/umbumedia.php:97
Stack trace:
#0 …/wp-includes/class-wp-hook.php(287): umbu_CustomMediaUI::umbu_mediaButton(”)
#1 …/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#2 …/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 …/wp-includes/media-template.php(279): do_action(‘post-plupload-u…’)
etcLooking at umbumedia.php:97 there’s a static function that’s calling another static function but using $this->umbu_mediaButtonScript()
I think that needs to be changed to self::umbu_mediaButtonScript();
When I changed that my error went away and I could click on my admin actions again.
(Thank you for this plugin – major timesaver when moving content between sites)
- The topic ‘Possible bug in umbumedia.php?’ is closed to new replies.