I have recently seen this PHP error turn up in our Duplicator Pro logs:
"[PHP ERR][ISSUE] MSG:Return type of OTGS\Toolset\Common\CodeSnippets\SnippetOption::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CODE:8192|FILE:/<redacted server info>/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/autoloaded/code_snippets/SnippetOption.php|LINE:168]"
I was wondering if it is a known issue? I recently upgraded from PHP 8.0 to PHP 8.1, so that could be a possible reason why it is turning up. PHP version 8.1 should be supported, right? Alternatively, it may have started appearing as a result of upgrading to WordPress 6.5 on Tuesday. In any case, these errors didn't appear beforehand.
We're currently facing a lot of issues with the latest version of the Duplicator Pro plugin (it hasn't worked on the previous 4 updates of the plugin!!), so I was having to monitor its logs every day. I do mean the log from Duplicator Pro, not the debug.log.
I suspect the error is new for us because of either WP 6.5 upgrade on Tuesday evening, or the PHP 8.0 to 8.1 upgrade (also Tues evening).
Up to what version of PHP are Toolset plugins currently certified?
I don't think the Toolset related error is related to the failing of the Duplicator Pro, however I wanted to find out if this was a known issue and what we can do about it.
I am forwarding you the Dup Pro log here: hidden link
It seems to hiccup during the chunking session and writing to OneDrive Storage. As we've been having a lot of issues with Duplicator Pro lately, I need to eliminate this error from our Duplicator Support enquiries.
I checked our issue tracker and also our forum and could not find an error like the one you have mentioned.
As the context of the error report was when the Duplicator Pro was used I do not have enough information to go forward with this.
Toolset is tested with PHP 8.0 but has some deprecation notices for the versions above 8.0.
Having said that, there are no breaking errors reported.
So if you encounter the error in context of using Toolset and preventing the normal operation of the plugin please get back to us with the steps and we will act accordingly.
If it was just a warning, I wouldn't have reported it, but it did say it was an error [PHP ERR].
Unfortunately at this point we are using a patched Duplicator Pro plugin provided by SnapCreek, because the latest official version didn't work for us, so I suspect they will bring out a plugin update including the fixes in the coming days/weeks. I can let you know if the official plugin when it comes out has the same issues.
Are you saying Toolset is only officially certified up to PHP 8.0? Are there any new plugins pending due to the WordPress 6.5 release?
I have downgraded to 8.0 again and am running a manual Duplicator Package. I will report back to you if the messages still appear running PHP 8.0. If not, then I think we can close this ticket.