Skip Navigation

[Resolved] New Toolset-related PHP error appearing Duplicator Pro log file

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 5 replies, has 3 voices.

Last updated by simonM-5 7 months, 3 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2690897

Dear Support

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.

Kind regards
Simon

#2690906

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Simon

Do you know the context for these errors?

You say they appear in your "Duplicator Pro logs".

Does that mean they only happen when creating a package with Duplicator Pro?

Or did you mean to say that they appear in your debug.log?

#2690962

HI Nigel

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.

Kind regards
Simon

#2691191

Christopher Amirian
Supporter

Languages: English (English )

Hi Simon,

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.

Thank you.

#2691512

Hi Christopher

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?

Kind regards
Simon

#2691547

Hi Christopher

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.

Thanks and kind regards
Simon

#2691554

Hi Christopher

The Duplicator Pro log file is not showing the Toolset error messages anymore when running PHP 8.0, so I think we can close this.

Thanks for your help.

Kind regards
Simon