Enabling Stack Trace Errors on V8.3.0 and 8.2.4 crashes server

I thought it was my server but this is consistent on a bunch of different scenarios and php versions. Enabling the

$sugar_config[‘stack_trace_errors’] = true;

causes suitecrm to fail with apache error 500. It is not recoverable unless you modify the config_override.php and set the flag to false. The types of errors generated seem to be something that should be fixed and not left to migrate further.

[Unknown Error (16384)] Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in /var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php on line 25 [2023-05-19 21:23:51] display_stack_trace caller, file: /var/www/html/suitecrm/public/legacy/include/utils.php line#: 3964
[L:](:StackTraceErrorHandler)
/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php[L:25](:trigger_error)
/var/www/html/suitecrm/vendor/api-platform/core/src/Core/JsonSchema/SchemaFactory.php[L:70](:trigger_deprecation)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:1388](ApiPlatform\Core\JsonSchema\SchemaFactory:__construct)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:1476](ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Hydra_JsonSchema_SchemaFactoryService)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:1382](ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_JsonSchema_TypeFactoryService)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:588](ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Hydra_JsonSchema_SchemaFactoryService)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:1510](ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)
/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php[L:777](ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)
/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php[L:267](ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})
/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php[L:230](Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})
/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php[L:59](Symfony\Component\EventDispatcher\EventDispatcher:callListeners)
/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php[L:133](Symfony\Component\EventDispatcher\EventDispatcher:dispatch)
/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php[L:79](Symfony\Component\HttpKernel\HttpKernel:handleRaw)
/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php[L:195](Symfony\Component\HttpKernel\HttpKernel:handle)
/var/www/html/suitecrm/public/index.php[L:62](Symfony\Component\HttpKernel\Kernel:handle)
[Unknown Error (16384)] Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in /var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php on line 25 [2023-05-19 21:23:51] display_stack_trace caller, file: /var/www/html/suitecrm/public/legacy/include/utils.php line#: 3964
[L:](:StackTraceErrorHandler)
...continues for a long number of similar errors

:thinking:

config.php and config_override.php are essentially the same thing. The second is loaded afterwards and overrides whatever is in the first with new values, if present.

What exactly is the 500 error? Do you see a corresponding FATAL in the php_errors.log? Apart from the one you posted before.

Are you sure you didn’t just miss an apostrophe or a semicolon somewhere?

Go ahead and check the box in the Settings in the admin section for stack trace errors. That will set the flag in the config_override.php file. The config file will remain unchanged. Tell us what happens. I believe this is one of the reasons nobody can show you stack traces and that’s why I can’t do stack traces since early on in v8.

Ubuntu 20.04 dedicated test server, php 7.4. v8.3.0.

I had to implement your hotfix to stop the fatal from the config.deleted problem that is not yet fixed.

Fix #154 - [Legacy] MySQL Error 1054: missing config.deleted columns by pgorod · Pull Request #239 · salesagility/SuiteCRM-Core · GitHub

If you wish, we can spin up a new server and only test this on a v8.3.0 out of the box. We could create a complete test script from zero to v8.3.0 running and test any errors or problems. Then, you have full control over the results and we can submit them back to the developers.

Edit: Here is the log when it went FATAL. There are about 10 FATAL items as soon as I turned on the trace debug, all related to the api calls. I apologize for the html coding, it did appear as HTML on the display with color and helped show what happened. But, the log still has the html tags. Hope this helps, it is reproduceable by turning on trace. You can fix this by going to the config and disabling trace. This was enabled by clicking the checkbox on the Suitecrm admin page (System) v8.3.0 and same with 8.2.4. This is partial log because of limits on characters but there are many more fatal sections all basically similar.

Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Core/JsonSchema/SchemaFactory.php</b></font><font color="blue">[L:70]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1388]</font><font color="red">(ApiPlatform\Core\JsonSchema\SchemaFactory:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1476]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Hydra_JsonSchema_SchemaFactoryService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1382]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_JsonSchema_TypeFactoryService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:588]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Hydra_JsonSchema_SchemaFactoryService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Core/Swagger/Serializer/DocumentationNormalizer.php</b></font><font color="blue">[L:170]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:588]</font><font color="red">(ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: The service "ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" is deprecated, use ApiPlatform\Symfony\Routing\IriConverter instead. occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Core/Bridge/Symfony/Routing/IriConverter.php</b></font><font color="blue">[L:67]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1436]</font><font color="red">(ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:592]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_IriConverter_LegacyService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/JsonLd/ContextBuilder.php</b></font><font color="blue">[L:76]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1490]</font><font color="red">(ApiPlatform\JsonLd\ContextBuilder:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:593]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Jsonld_ContextBuilderService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Hydra/Serializer/DocumentationNormalizer.php</b></font><font color="blue">[L:77]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:599]</font><font color="red">(ApiPlatform\Hydra\Serializer\DocumentationNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use an implementation of "ApiPlatform\Api\IriConverterInterface" instead of "ApiPlatform\Core\Api\IriConverterInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Hydra/Serializer/EntrypointNormalizer.php</b></font><font color="blue">[L:46]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:599]</font><font color="red">(ApiPlatform\Hydra\Serializer\EntrypointNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Hydra/Serializer/EntrypointNormalizer.php</b></font><font color="blue">[L:51]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:599]</font><font color="red">(ApiPlatform\Hydra\Serializer\EntrypointNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use an implementation of "ApiPlatform\Api\IriConverterInterface" instead of "ApiPlatform\Core\Api\IriConverterInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b></font><font color="blue">[L:25]</font><font color="red">(:trigger_error)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php</b></font><font color="blue">[L:105]</font><font color="red">(:trigger_deprecation)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/api-platform/core/src/JsonLd/Serializer/ItemNormalizer.php</b></font><font color="blue">[L:52]</font><font color="red">(ApiPlatform\Serializer\AbstractItemNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:599]</font><font color="red">(ApiPlatform\JsonLd\Serializer\ItemNormalizer:__construct)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:1510]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:get_Container_Private_SerializerService)</font><br><font color="black"><b>/var/www/html/suitecrm/cache/prod/ContainerVPjx8Vo/App_KernelProdContainer.php</b></font><font color="blue">[L:777]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:getApiPlatform_Listener_Request_DeserializeService)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:267]</font><font color="red">(ContainerVPjx8Vo\App_KernelProdContainer:ContainerVPjx8Vo\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:230]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:Symfony\Component\EventDispatcher\{closure})</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/event-dispatcher/EventDispatcher.php</b></font><font color="blue">[L:59]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:callListeners)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:133]</font><font color="red">(Symfony\Component\EventDispatcher\EventDispatcher:dispatch)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/HttpKernel.php</b></font><font color="blue">[L:79]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handleRaw)</font><br><font color="black"><b>/var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php</b></font><font color="blue">[L:195]</font><font color="red">(Symfony\Component\HttpKernel\HttpKernel:handle)</font><br><font color="black"><b>/var/www/html/suitecrm/public/index.php</b></font><font color="blue">[L:62]</font><font color="red">(Symfony\Component\HttpKernel\Kernel:handle)</font><br>
Sat May 20 07:33:46 2023 [65900][-none-][FATAL] Catch an error: <b>[Unknown Error (16384)]</b>  Since api-platform/core 2.7: Use "ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface" instead of "ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface". occurred in <b>/var/www/html/suitecrm/vendor/symfony/deprecation-contracts/function.php</b> on line 25 [2023-05-20 07:33:46]

Has anybody confirmed you can check this box and continue without fatal errors? If you do crash, edit config_override.php and reset the trace debug to false. If you can stack trace v8.3 or 8.2.4 that would be really helpful.

Those are deprecation errors, and they are Symfony code… strange.

I suggest backing up your vendor directory (just in case - so you can go back in time) and attempting a

composer install --no-dev

I tried and it said composer not installed try apt install composer. I thought Suitecrm installed Composer but not found.

I did

apt install composer

that after backing up the site.

I then tried composer install --no-dev as you suggested and it tries to run cli php8.2 and is missing all the modules. It is a mess. Plus, the php session is getting errors in the logs for session errors which is not Suitecrm’s fault but anyone following vanilla ubuntu 20.02 will be in the same boat.

It would truly benefit if we had a script to run that was collectively working. I can show what I did and it is mostly working but still has lots of errors when logging in with tons of

equest.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: "Invalid CSRF token"

the whole experience is difficult and I can’t really see how anyone new is going to be able to use v8 without a clean installation mechanism. Sorry for being a downer on this. I’m willing to try more vanilla test servers but the php session issue is causing login issues.

It has to be composer v1, not v2, and your PHP CLI configuration needs to be within the Compatibility Matrix too.

In general terms - I can install a SuiteCRM v8 without any major hassles in around 20-30m. Most of these things are Linux admin issues, and many of them (though not all) cannot be handled by SuiteCRM itself, it’s just impossible. People expect clean installations but sometimes that is just not realistic if your server, your stack, is blocking things.

My view on improving this is to improve Diagnostics to make help here on the forums 900% more effective, currently it is very frustrating.

Is there anything we can do as a user group to promote those changes you made years ago? I don’t understand how other developers are using this v8.3 when there are so many issues outstanding. I am not a dev like you are but in my other world phpbb.com those folks run hard tests every night on every piece of code and publish the results. There is no way v8.3 would be released using a similar testing regimen. I wish there was a way to promote and use SuiteCRM effectively. thank you for all that time. I know it is frustrating.

So, nobody else has been able to enable stack trace on any V8 version?

Nobody has replied they can enable stack tracing. Maybe the maintainers could check this stack trace box and see if the next version will enable stack traces as expected. What good is trying to debug with stack tracing if the feature doesn’t work?

On my side, I am not going to spend one more minute in issues regarding logging or diagnostics in SuiteCRM until my PR’s get merged: Improved Diagnostics and Improved logging.

I haven’t tried this last one on SuiteCRM v8, but if you have some sort of test server you can try it, it might work. It’s different code than the one currently giving you problems; and you get stack traces that are a lot better, as you can see by the documentation preview that I link to in that PR.

1 Like

I can copy my existing test v8.4.0-beta and create a separate test and apply that PR using all my real data. I’ll try that this weekend…

1 Like