Call to a member function addLink()

More
17 Dec 2019 10:31 #3555 by info@officinainformatica.click
When I install the VTENEXT CRM I have this error:

Fatal error: Uncaught Error: Call to a member function addLink() on bool in \modules\ModComments\ModComments.php:103 Stack trace: \modules\ModComments\ModComments.php(154): ModComments::addWidgetTo(Array) \install\CreateTables.php(77): ModComments->addWidgetToAll() \install.php(63): include('D:\home\h461888...') {main} thrown in \modules\ModComments\ModComments.php on line 103

I did some debug and saw that:
\modules\ModComments\ModComments.php at line 102
$modCommentsModule = Vtiger_Module::getInstance('ModComments');
$modCommentsModule is null รจ nullo and addLink is impossible to run

also in:
\modules\MyNotes\MyNotes.php at line 240
$currentModuleInstance = Vtecrm_Module::getInstance('MyNotes');
$currentModuleInstance is null and setRelatedList is impossible to run

getInstance go to search on db vte_tab ModComments and MyNotes but this 2 records not exists.

I added a "IF" before to verify the variable is not null and the installation was completed.

But when I make a login in one box I have error: ModComments module is not active

Thanks
The following user(s) said Thank You: tebby

Please Log in to join the conversation.

More
17 Dec 2019 15:33 #3556 by tebby
Hello,
did you try to uninstall and reinstall it again?
It seems that your installation of vtenext has not been completed at all.

Please Log in to join the conversation.

More
17 Dec 2019 19:54 #3561 by info@officinainformatica.click
yes a lot of times also removing the database and file config.inc.php

Please Log in to join the conversation.

More
18 Dec 2019 08:57 #3563 by dende
Well, you have to start again from the beginning so removing only config.inc.php is not enough

Please Log in to join the conversation.

More
18 Dec 2019 12:06 #3564 by info@officinainformatica.click

denis wrote: Well, you have to start again from the beginning so removing only config.inc.php is not enough


can you explain me how? I delete the database and removed config.inc.php and copying again the hash_version.txt on the root.

is it not sufficient?

Please Log in to join the conversation.

More
18 Dec 2019 12:13 #3565 by dende
No, you have to start from 0.
So you have to remove all the files of VTE and start as the first time

Please Log in to join the conversation.

Time to create page: 0.165 seconds