• Resolved oabrahim

    (@oabrahim)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @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.

    @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

    (@oabrahim)

    @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.