[Resuelto] Updating to PHP 8.2 Bricks Toolset Settings & Blocks Editor for Cont. Templates
This support ticket is created hace 1 año, 1 mes. There's a good chance that you are reading advice that it now obsolete.
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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
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.