I'm trying to update our sites to PHP 8.2, and I found a conflict with Toolset that results in a fatal error when trying to access Toolset Settings and the Blocks Editor in Content Templates. We've discovered that it's conflicting with a plugin we wrote called Extra File Types that doesn't exist in PHP 7.4.
We've reviewed our code, and it doesn't appear that anything we wrote is inherently incompatible with PHP 8.2, and the fatal errors only appear to affect Toolset related components, nothing else, as our plugin's functionality is completely operational in the latest version of PHP.
The plugin in question, is also very simple, as all it's doing is allowing us to upload files, such as SVG, that aren't normally permitted by WordPress by identifying the MIME types and pass them through an array. When wrote in compatibility fixes for PHP 7.0 and up when we had to make that transition, too.
Any help in this matter would be greatly appreciated. Thanks in advance!
Note: you'll need to connect to port 2222 in order to connect to our sFTP file server with the credentials provided.
Thank you. We actually found what was causing the issue, though, just don't understand why it was specifically conflicting with Toolset. Either way, it came down to how we were calling our MIME types. A simple modification to the MIME type array and everything appears to be functioning as it should.