Hi,
After migrating to 8.6.1, I am stuck on a blank home page. Any clues appreciated
Best,
Stéphane.
Description
I migrated from 7.14.4 to 8.6.1.
After login, I get the home page but nothing on it.
In the public/legacy/suitecrm.log
, the only error is this:
[103][1][FATAL] Exception handling in /app/suitecrm/public/legacy/include/MVC/Controller/SugarController.php:397
[103][1][FATAL] Exception in Controller: No module defined
Environment
VPS
SuiteCRM in custom docker, based on php8.2-apache
PHP 8.2
MariaDB in docker, version: 10.11
SuiteCRM version: 8.6.1
Operating System: Linux
Other info
I did the migration by following the steps here: migration instructions
Migration was successful, but I could not login → In the database, I changed the id of the admin user to 1 (from this post )
It worked immediately after this.
Maybe it solves the login problem but messes things up in other ways? Permissions?
1 Like
I have the exact same error when accessing an Email record.
For some reason the URL query has the correct parameters in a previous call to the function, but then it’s empty:
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=Emails&action=DetailView&record=a5453b14-6bdf-3576-18eb-66c85a85c24c
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=Emails&action=EditView&return_module=Emails&return_action=DetailView
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=&action=DetailView&record=
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] Exception handling in /var/www/crm/public/legacy/include/MVC/Controller/SugarController.php:397
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] Exception in Controller: No module defined
See the three calls to convertUri
.
This seems to be the incorrect one:
RouteConverter::convertUri: index.php?module=&action=DetailView&record=
The only “fix” I found so far was disabling the exception in RouteConverter.php::69
:
public function convert(?string $module, ?string $action, ?string $record, ?array $queryParams): string
{
if (empty($module)) {
// throw new InvalidArgumentException('No module defined');
}
And this also started happening after upgrading to SuiteCRM 8.6.2 (from 8.5.1).
rsp
26 August 2024 15:14
3
If you think it is an issue and not yet reported here, you can raise one.
pjdm
21 September 2024 18:50
5
I updated from 8.61 to 8.7-beta and had same problem. disabled the line as you indicated and it works now and I can see the emails in my Timeline with Contacts. Previously, the email page was blank. Good sleuthing and repair suggestion on Github.
2 Likes
Hey man,
Have you fixed your issue ?
I got exactly the same, from same file & line.
Permissions could be the issue but I have the default one from the documentation.
rsp
9 October 2024 19:43
7
Checkout the GitHUb link mentioned here. They are suggesting to comment that line.
1 Like
No, still running with the commented line that throws the error. Haven’t noticed any adverse effects so far though.
1 Like
Update: They released a fix for this for 8.8.0:
opened 03:21PM - 26 Aug 24 UTC
closed 11:08AM - 30 Jan 25 UTC
Type: Bug
Priority:Important
Area: Emails
Area: Legacy
Severity: Major
### Issue
I have this error when accessing an Email record:
```
Mon Aug 2… 6 16:54:23 2024 [12690][1][FATAL] Exception handling in /var/www/crm/public/legacy/include/MVC/Controller/SugarController.php:397
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] Exception in Controller: No module defined
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] backtrace:
#0 /var/www/crm/public/legacy/include/portability/RouteConverter.php(120): RouteConverter->convert('', 'DetailView', '', Array)
#1 /var/www/crm/public/legacy/include/portability/RouteConverter.php(91): RouteConverter->convertUri('index.php?modul...')
#2 /var/www/crm/public/legacy/include/Smarty/plugins/function.convert_link.php(34): RouteConverter->generateUiLink('index.php?modul...')
#3 /var/www/crm/public/legacy/cache/smarty/templates_c/b58b1d5c6daa9ee2c39c4f35d132ca137ad81d21_0.file.EmailsDetailView.tpl.php(713): smarty_function_convert_link(Array, Object(Smarty_Internal_Template))
#4 /var/www/crm/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66cc954b87fd34_89982787(Object(Smarty_Internal_Template))
#5 /var/www/crm/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#6 /var/www/crm/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#7 /var/www/crm/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#8 /var/www/crm/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#9 /var/www/crm/public/legacy/include/Sugar_Smarty.php(150): Smarty_Internal_TemplateBase->fetch('cache/themes/ps...', NULL, NULL, NULL)
#10 /var/www/crm/public/legacy/include/TemplateHandler/TemplateHandler.php(362): Sugar_Smarty->fetch('cache/themes/ps...')
#11 /var/www/crm/public/legacy/include/EditView/EditView2.php(934): TemplateHandler->displayTemplate('Emails', 'EmailsDetailVie...', 'include/DetailV...', false, Array)
#12 /var/www/crm/public/legacy/modules/Emails/include/DetailView/EmailsDetailView.php(115): EditView->display(true, false)
#13 /var/www/crm/public/legacy/include/MVC/View/views/view.detail.php(81): EmailsDetailView->display()
#14 /var/www/crm/public/legacy/modules/Emails/views/view.detail.php(85): ViewDetail->display()
#15 /var/www/crm/public/legacy/include/MVC/View/SugarView.php(210): EmailsViewDetail->display()
#16 /var/www/crm/public/legacy/include/MVC/Controller/SugarController.php(432): SugarView->process()
#17 /var/www/crm/public/legacy/include/MVC/Controller/SugarController.php(363): SugarController->processView()
#18 /var/www/crm/public/legacy/include/MVC/SugarApplication.php(101): SugarController->execute()
#19 /var/www/crm/public/legacy/index.php(52): SugarApplication->execute()
#20 {main}
```
For some reason the URL query has the correct parameters in a previous call to the function, but then it's empty:
```
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=Emails&action=DetailView&record=a5453b14-6bdf-3576-18eb-66c85a85c24c
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=Emails&action=EditView&return_module=Emails&return_action=DetailView
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] RouteConverter::convertUri: index.php?module=&action=DetailView&record=
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] Exception handling in /var/www/crm/public/legacy/include/MVC/Controller/SugarController.php:397
Mon Aug 26 16:54:23 2024 [12690][1][FATAL] Exception in Controller: No module defined
```
See the three calls to `convertUri`.
This seems to be the incorrect one:
```
RouteConverter::convertUri: index.php?module=&action=DetailView&record=
```
The only "fix" I found so far was disabling the exception in `RouteConverter.php::69`:
```php
public function convert(?string $module, ?string $action, ?string $record, ?array $queryParams): string
{
if (empty($module)) {
// throw new InvalidArgumentException('No module defined');
}
```
This started happening after upgrading to SuiteCRM **8.6.2** (from 8.5.1).
### Possible Fix
The only "fix" I found so far was disabling the exception in `RouteConverter.php::69`:
```php
public function convert(?string $module, ?string $action, ?string $record, ?array $queryParams): string
{
if (empty($module)) {
// throw new InvalidArgumentException('No module defined');
}
```
### Steps to Reproduce the Issue
```bash
1. Upgrade SuiteCRM from 8.5.1 to 8.6.2.
2. Open the Email detail view, e.g. `/#/emails/record/a5453b14-6bdf-3576-18eb-66c85a85c24c`.
3. Observe a blank space in the UI where the usual detail view would be.
4. See the error logged in `suitecrm.log`.
```
### Context
- Upgrade SuiteCRM from 8.5.1 to 8.6.2.
- Only thread I've found with the same error, albeit happening somewhere else: https://community.suitecrm.com/t/migrating-from-7-14-4-to-8-6-1-exception-in-controller-no-module-defined-nothing-on-home-screen-after-login/93199
### Version
8.6.2
### What browser are you currently using?
Firefox
### Browser Version
129.0.2
### Environment Information
MariaDB, PHP 8.0.3
### Operating System and Version
php:8.0-apache-buster
1 Like