Hi, the problem is with the execution of entrypoints.
I moved from SuiteCRM version 7.14 to version 8.4.2 (I can’t go any further at the moment), but I noticed that entrypoints no longer work. In version 7.14 I had created my entrypoints normally, first defining them in custom\Extension\application\Ext\EntryPointRegistry:
and then creating the getHint.php file inside the path above.
Now, however, it seems that the getHint.php file is not accessed at all (I tried to write a simple print_r, but I can also see it through the browser’s development tool, where the entrypoint loading was previously highlighted).
There are no error reports, neither in php_error.log nor suitecrm.log nor in the apache log (it’s as if it was not taken into account).
I tried everything:
I changed the file path in the entrypoint: 'file' => 'public/legacy/custom/modules/<MY_MODULE>/getHint.php',
or 'file' => 'legacy/custom/modules/<MY_MODULE>/getHint.php',
permissions are set to maximum
I repeatedly ran Quick and repair
I deleted the browser history several times
I deleted the cache
but nothing, all useless. Does anyone have any ideas that I haven’t tried?
The SuiteCRM version is 8.4.2, I’m in localhost on a Windows machine.
@rsp
yes, it already works in compatibility mode, so I had already modified the module_routing
@pgr
the problem is exactly this, I think that the request is not even generated, it is ignored, there is no reference in the network card of the call to the entrypoint
Ok, so you don’t have an entry-point issue, you have a front-end issue, which is quite understandable since the front-end changes are extensive and often the customizations have to be re-done.
I call the entry points through the method used up to version 7.14 (as mentioned above), I define them in entrypointregistry, where there is the call to the file created inside my module.
I don’t know any other methods, I haven’t seen anything else in the Suite 8 documentation, every reference to entrypoints refers to version 7, so I think they are managed in the same way.
If there is something different to do, how do I do it? Where can I find adequate documentation? Where do I start? Are you saying that entrypoints managed in this way don’t work in Suite 8? I haven’t found anything about it.
I think I didn’t quite understand what you mean, the request is automatic within suite, but I noticed the call through the browser’s development tools, in “Network” the entrypoint loading appeared.
This is just a symptom, I just wish the entrypoint call worked, maybe there is something different to do with suite 8, in any case currently the entrypoints do not work.
Is it the time of day? At 4AM the entry point is called from a scheduler?
Or is it when saving a record?
Or when the user presses some button?
This would help me understand how the call is generated, in v8 there might be a better/different way of generating such a call when that event happens.
And then, if you saw the request in the Network tab, what is the URL? Because that would help understand how it is handled in the back-end.
Thanks pgr, while I was answering your question, I viewed the path that the code should take to activate the entrypoint and I found the problem.
inside the verdef of a variable of my module
that no longer exists (perhaps deleted following a Quick & Repair, I don’t know).
Once that part was restored, the call to the entrypoint was successful.