Skip Navigation

[Resuelto] Toolset Maps PHP Class Fatal error case error in autoload_classmap

This support ticket is created hace 4 años, 10 meses. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Luo Yang hace 4 años, 10 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1458155

Looks like there is a case error in Toolset Maps causing a fatal error accross a ton of our sites:
toolset-maps/application/autoload_classmap.php on line 13 is looking for the file MapBlock.php but is actually named mapBlock.php.

from Splunk Logs:
[14-Jan-2020 13:12:55 UTC] PHP Fatal error: Uncaught Error: Class 'OTGS\Toolset\Maps\Controller\Compatibility\Gutenberg\EditorBlocks\Blocks\Map\MapBlock' not found in /opt/local/apache/appdata/wp-content/plugins/toolset-maps/application/controllers/compatibility/gutenberg/editor-blocks/editor-blocks.php:34

#1458157

Also looks like this was introduced in v2.0

#1459169

Hello,

The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of WordPress core + Toolset plugins, you can download Toolset plugins here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1460107

No, it is abnormal. We're running the all the most recent plugins. We're running a multisite installation where the database is almost 40gigs. So Providing a dump will not happen. Our servers are case sensitive so your file MapBlock.php can not be found because it's case is different it's looking for mapBlock.php. This is a good example why you all might want to follow WordPress Code Standards, which recommends all lower case file names, and separated by underscores, it does not recommend camel case. Our logs shows the error pretty clearly.

You might want to look at a similar issue that we put in with the ticket titled: Command -> /command. Basically same thing here. This was eventually corrected.

I imagine you will see others with the same issue.

I appreciate your help.

#1461393

Thanks for the details, I have checked the Toolset Maps plugin version 2.0(and 2.0.1) source file, download from:
https://toolset.com/download/toolset-maps/#changelog

There isn't the problem you mentioned above, I can see the file name is correct: MapBlock.php

So there should be some problem in your website which has changed the file name.

And the latest version of Toolset Maps plugin is 2.0.1, I suggest you download the Maps plugin from your account page, install it manually:
https://toolset.com/account/downloads/