I suspect your custom module has some custom code trying a redirect, and this redirect is failing because it is for v7, and not aware of the changes in v8. You must update it.
Check php_errors.log, it should have helpful messages there - and if you can get a stack trace, you will easily reach the problematic file.
the module in question is known on the forum (advanced report) created by a forum user.
Yes, it was not created for suitecrm8, I was hoping that it would work anyway or that maybe I could modify it to make it work, but I canāt even understand where the error is.
[Mon Mar 11 15:10:35.786960 2024] [lsapi:warn] [pid 2608521:tid 22862032799488] [client 95.230.109.30:57782] [host pntest.biz] Backend log: PHP Deprecated: Return type of Symfony\\Component\\HttpFoundation\\Session\\Session::count() should either be compatible with Countable::count(): int, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/suitecrm8/vendor/symfony/http-foundation/Session/Session.php on line 141\n, referer: localhost://suitecrm8/public/index.php
[Mon Mar 11 15:10:35.786952 2024] [lsapi:warn] [host localhost] Backend log: PHP Deprecated: Return type of Symfony\\Component\\HttpFoundation\\Session\\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/suitecrm8/vendor/symfony/http-foundation/Session/Session.php on line 131\n, referer: localhost://suitecrm8/public/index.php
Deprecated messages are not errors, they are messages for the developers of the future.
If you have a 500 error, most often there will be a PHP FATAL error in the back-end. If you can get that one, and get a stack trace for it, then we can determine where it is being called from.
But maybe you canāt get it, if itās not there, or you donāt know how to.
I suggest that you remove the new metadata file you created, and get back to your original error; it might be easier to find good feedback in the logs.
ok, done, deleted the metadata folder and did a Q&A. Now the original error is back:
Mon Mar 11 16:44:26 2024 [2808256][1][FATAL] Error: File [modules/Home/metadata/editviewdefs.php] is missing. Unable to create because no corresponding HTML file was found.
Mon Mar 11 16:44:26 2024 [2808256][1][FATAL] Exception handling in /suitecrm8/public/legacy/include/MVC/Controller/SugarController.php:397
Mon Mar 11 16:44:26 2024 [2808256][1][FATAL] Exception in Controller: Error: File [modules/Home/metadata/editviewdefs.php] is missing. Unable to create because no corresponding HTML file was found.
adding those two lines, I canāt access the site:
Oops! An Error Occurred
The server returned a ā500 Internal Server Errorā.
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
Youāre mixing v8-style URLs with v7. The add-on is probably doing a redirect somewhere with the old style, but that wonāt work with v8. It needs to be fixed in the PHP code, but that will require someone who can use a debugger and understand the code. Have you tried reaching ou to the add-on author?
Yes, I contacted him, but he no longer deals with suites and cannot help me. I realize that this is a component created for version 7, but Iām trying to modify it to make it work with 8, the starting point is the creation and understanding at least where this redirection is done, for this I need help. Version 7 I know how it worked, but suitecrm8 is a little different and I still donāt know how it works.
so both module and record are missing, as for $module I replaced it with the module name, but I canāt recover the record ID. Maybe the $_REQUEST statement has changed in suitecrm8, I tried to use $_SESSION, but I canāt recover it either.