PHP errors/warnings
-
Hi there,
Using WP RSS Aggregator v4.23.13 (and earlier versions) we are seeing a few PHP errors/warnings/notices that need addressing.
The first one is present since WP 6.7:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wprss domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /path/to/wp-includes/functions.php on line 6114Similar issue solved with Yoast: https://github.com/Yoast/wordpress-seo/pull/21742
The other issue is this:
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 /path/to/wp-content/plugins/wp-rss-aggregator/vendor/twig/twig/src/Node/Node.php on line 213
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 /path/to/wp-content/plugins/wp-rss-aggregator/vendor/twig/twig/src/Node/Node.php on line 221I presume the issue here is that your Composer dependencies are not scoped/isolated into the plugin and are conflicting with something in our Composer-based project. So scoping/isolating your dependencies to stay within the plugin would solve it.
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘PHP errors/warnings’ is closed to new replies.