XF 2.0 'ERROR_INVALID_PROVIDER' (oEmbed)

Tom

Active member
Seem to be getting this error being logged quite regularly, presumably from when we upgraded from XF1, leaving old media tags behind in posts:
Code:
Error: Undefined class constant 'ERROR_INVALID_PROVIDER' src/XF/Oembed/Controller.php:169

#0 src/XF/Oembed/Controller.php(71): XF\Oembed\Controller->validateOembedRequest('soundcloud', 'https://soundcl...', NULL)
#1 oembed.php(26): XF\Oembed\Controller->outputJson('soundcloud', 'https://soundcl...')
#2 {main}

array(4) {
  ["url"] => string(126) "/oembed.php?provider=soundcloud&id=https%3A%2F%2Fsoundcloud.com%2Fhjalmar-4%2Flondon-citybus-gemini-3-b5lh-v150-sounds-preview"
  ["referrer"] => string(87) "https://www.fellowsfilm.co.uk/threads/official-dlc-london-no-release-date-yet.56/page-6"
  ["_GET"] => array(2) {
    ["provider"] => string(10) "soundcloud"
    ["id"] => string(81) "https://soundcloud.com/hjalmar-4/london-citybus-gemini-3-b5lh-v150-sounds-preview"
  }
  ["_POST"] => array(0) {
  }
}

Any ideas how I can resolve this? Is there a way of easily batch updating posts which contain the invalid media tags?
 
Back
Top Bottom