WordPress 'E_Error" with News Feed plugin

10 views
Skip to first unread message

Neville Hobson

unread,
Sep 6, 2024, 3:11:48 PMSep 6
to Guardian Open Platform API Forum
Hi all, I experienced a major error in WordPress today when saving a Guardian story as a draft post. Instead of seeing the draft post itself, WordPress produced an error page. I then received an auto notification from WordPress that told me this:

"WordPress caught an error with one of your plugins, Guardian News Feed.

Error Details
=============
An error of type E_ERROR was caused in line 317 of the file /home/customer/www/[site]/public_html/wp-content/plugins/the-guardian-news-feed/gu-open-platform-article-importer.php. Error message: Uncaught Error: Undefined constant "fields" in /home/customer/www/[site]/public_html/wp-content/plugins/the-guardian-news-feed/gu-open-platform-article-importer.php:317
Stack trace:
#0 /home/customer/www/[site]/public_html/wp-content/plugins/the-guardian-news-feed/gu-open-platform-article-importer.php(171): Guardian_ContentAPI_add_item('uk-news/article...')
#1 /home/customer/www/[site]/public_html/wp-includes/class-wp-hook.php(324): Guardian_ContentAPI_admin_page('')
#2 /home/customer/www/[site]/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#3 /home/customer/www/[site]/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/customer/www/[site]/public_html/wp-admin/admin.php(259): do_action('posts_page_the-...')
#5 /home/customer/www/[site]/public_html/wp-admin/edit.php(10): require_once('/home/customer/...')
#6 {main}
thrown"

I see no ill effects on my site, everything seems to be fine in front and back ends. But what would cause this? Any insights appreciated.

My site is running WordPress 6.6.1, PHP version 8.2.23, and Guardian News Feed version 1.2.

Thanks!

Reply all
Reply to author
Forward
0 new messages