Title: Debug log PHP deprecated messages
Last modified: August 24, 2023

---

# Debug log PHP deprecated messages

 *  Resolved [oabrahim](https://wordpress.org/support/users/oabrahim/)
 * (@oabrahim)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/debug-log-php-deprecated-messages/)
 * Hi,
 * We’re seeing this in our debug log (dev environment) all plugins are up to to
   date, as well as wordpress. We just updated PHP to 8.1.22. Which may be related.
   The site is still up and running, but we wanted to make you aware of this, if
   you weren’t already. 
    Here are a few of the many lines we’re seeing in the debug:
 * [24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of Twig\Node\Node::count()
   should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\
   wp-content\plugins\wp-rss-aggregator\vendor\twig\twig\src\Node\Node.php on line
   213
   [24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of Twig\Node\Node::
   getIterator() should either be compatible with IteratorAggregate::getIterator():
   Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily
   suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\vendor\
   twig\twig\src\Node\Node.php on line 221[24-Aug-2023 14:14:38 UTC] PHP Deprecated:
   Return type of RebelCode\Wpra\Core\Database\WpdbTable::offsetExists($key) should
   either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or 
   the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Database\
   WpdbTable.php on line 124[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type
   of RebelCode\Wpra\Core\Database\WpdbTable::offsetGet($key) should either be compatible
   with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\
   wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 105[24-
   Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\
   WpdbTable::offsetSet($key, $value) should either be compatible with ArrayAccess::
   offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\
   wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 140[24-
   Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\
   WpdbTable::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(
   mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used
   to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-
   aggregator\src\Database\WpdbTable.php on line 159[24-Aug-2023 14:14:38 UTC] PHP
   Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::current() 
   should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\
   wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line
   124[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\
   Database\WpdbTable::next() should either be compatible with Iterator::next():
   void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily
   suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\
   Util\IteratorDelegateTrait.php on line 97[24-Aug-2023 14:14:38 UTC] PHP Deprecated:
   Return type of RebelCode\Wpra\Core\Database\WpdbTable::key() should either be
   compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute
   should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\
   plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 109[24-Aug-
   2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\
   WpdbTable::valid() should either be compatible with Iterator::valid(): bool, 
   or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.
   php on line 136[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\
   Wpra\Core\Database\WpdbTable::rewind() should either be compatible with Iterator::
   rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily
   suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\
   Util\IteratorDelegateTrait.php on line 83
 * Please advise. 
   (I did ask ChatGPT, but I’d like your professional opinion 🙂)
   Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdebug-log-php-deprecated-messages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mikeyboo](https://wordpress.org/support/users/mikeyboo/)
 * (@mikeyboo)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/debug-log-php-deprecated-messages/#post-17002067)
 * [@oabrahim](https://wordpress.org/support/users/oabrahim/) thanks for reaching
   out to us, and as you suspected the issue is most likely related to the PHP version.
   Please allow me to check with the technical team on this and get back to you.
 *  [mikeyboo](https://wordpress.org/support/users/mikeyboo/)
 * (@mikeyboo)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/debug-log-php-deprecated-messages/#post-17009120)
 * [@oabrahim](https://wordpress.org/support/users/oabrahim/) I checked with the
   technical team, and they confirmed that the warning is occurring due to some 
   of the code conflicting with PHP 8 standards. Some of these issues will be fixed
   in the upcoming update. However, since some of the problems originate from external
   libraries that are not being updated, they might continue to occur until the 
   next major release which will not be using these libraries. These log entries
   should not affect the plugin’s functionality and will only appear when the debug
   log is enabled. This should be fully resolved in the next major release.
 *  Thread Starter [oabrahim](https://wordpress.org/support/users/oabrahim/)
 * (@oabrahim)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/debug-log-php-deprecated-messages/#post-17009466)
 * [@mikeyboo](https://wordpress.org/support/users/mikeyboo/) Excellent. Thank you
   very much for your assistance and the fast response! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Debug log PHP deprecated messages’ is closed to new replies.

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [oabrahim](https://wordpress.org/support/users/oabrahim/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/debug-log-php-deprecated-messages/#post-17009466)
 * Status: resolved