oEmbed conflict after upgrade to 12.3.1

Posted in: Newspaper
Post count: 5

A WordPress “critical error” message takes place when displaying a post that contains in itself an automatically embedded post block, after upgrading to 12.3.1. The same post is displayed properly and without errors after reverting back to the previous version (12.3).

The apache error log:
[Thu Apr 13 00:19:49.404503 2023] [proxy_fcgi:error] [pid 3031902] [client XX.XX.XX.XX:50148] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class td_video_support does not have a method "embed_oembed_html_process_embed_html" in /home/user/public_html/wp-includes/class-wp-hook.php:308\nStack trace:\n#0 /home/user/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#1 /home/user/public_html/wp-includes/class-wp-embed.php(289): apply_filters()\n#2 /home/user/public_html/wp-includes/class-wp-embed.php(464): WP_Embed->shortcode()\n#3 [internal function]: WP_Embed->autoembed_callback()\n#4 /home/user/public_html/wp-includes/class-wp-embed.php(446): preg_replace_callback()\n#5 /home/user/public_html/wp-includes/class-wp-hook.php(308): WP_Embed->autoembed()\n#6 /home/user/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#7 /home/user/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(514): apply_filters()\n#8 /home/user/public_html/wp-conte...'

Post count: 27744

Hi,

Please do a test using only tagDiv plugins, clear all cache, and check the results.
Also, what version of PHP do you have and WordPress?

Thank you!

Post count: 5

I finally located the problem and it was a custom plugin. You can flag this as solved and thank you so much for your time and reply.

I’m going to describe our case for any other Newspaper users out there (or maybe as a nudge to the developers team to establish a more general solution in the theme for some use case scenarios like ours 😉 ) :

Since Newspaper has very limited support for featured videos only from a handful of established video providers (such as YouTube, Vimeo, Facebook and Twitter), we needed to be able to create posts with a featured video from our own PeerTube instance. For this, we used the td_video_support.php as a basis to create a custom plugin with functions that enable editors to add Featured Videos from our own PeerTube instance.

Since td_video_support.php was modified in the 12.3.1 version of Newspaper, we needed to review our custom plugin to include the newly added embed_oembed_html_process_embed_html function.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.