Custom module broke the Reports module

Hi,

So yesterday I created a custom Module with the ModuleBuilder, and I the same evening I deleted it because it was actually not necessary.

Then something strange happend with the Report Module (as you can see here: 01.05.2016-11.45.47 - SolidTerre's library )

When I took a look at the PHP log files it was showing this error:

[05-Jan-2016 12:48:17 Europe/Brussels] PHP Fatal error:  Class 'Visit_Visits' not found in /var/www/sugar_prod/modules/Reports/templates/templates_modules_def_js.php on line 57

So for some reason that template file is still calling the inexistant module. Can someone help me fix that by saying me how I can manually remove this call?

I tried the "Quick repair and rebuild" function, still nothing works btw.

Thank you very much.

Kindly,

SolidTerre

  • Hello,

    It could be an issue of cache. Try something... Take a back up of cache/modules/Reports  and delete it. It will be regenerated. If still it won't work. You might need to remove cache/modules. But before delete take backup first.

    Thanks & Regards,

    Team Urdhva Tech

    Web : http://www.urdhva-tech.com

  • Did what you told. Still nothing

    Thank you for your help tho. Waiting for an other solution.

  • Sometimes modules are not completely removed.

    My guess is you still have a reference to that module in custom/application/Ext/Include/

    If that's the case, you can create a Disabled dir in custom/application/Ext/Include/ and move the contents of Include to Disabled. (Note that any directory called "Disabled" is ignored by SugarCRM, so you can move files to Disabled and keep them as a backup). A QRR should repopulate the Include directory with clean files and no references to your deleted module.

    You can also see if this helps:

    http://support.sugarcrm.com/Knowledge_Base/Administration/Module_Loader/Manually_Removing_Module_Loader_Packages/

    HTH

    FrancescaS

  • It was resolved, until the file came back, and it keeps rebuilding itself with the same include. How can I prevent those lines to auto generate themselves?

    "

    <?php

    // WARNING: The contents of this file are auto-generated.

    //Merged from custom/Extension/application/Ext/Include/Visits.php

    //WARNING: The contents of this file are auto-generated

    $beanList['Visit_Visits'] = 'Visit_Visits';

    $beanFiles['Visit_Visits'] = 'modules/Visit_Visits/Visit_Visits.php';

    $moduleList[] = 'Visit_Visits';

    //Merged from custom/Extension/application/Ext/Include/MeetingReports.php

    //WARNING: The contents of this file are auto-generated

    $beanList['Visit_MeetingReports'] = 'Visit_MeetingReports';

    $beanFiles['Visit_MeetingReports'] = 'modules/Visit_MeetingReports/Visit_MeetingReports.php';

    $moduleList[] = 'Visit_MeetingReports';

    "

  • Look at the files referenced in the code you copied.

    custom/Extension/application/Ext/Include/Visits.php

    and

    custom/Extension/application/Ext/Include/MeetingReports.php

    If the code is there it will be re-included when you do a QRR (Quick Repair Rebuild). You will need to remove those files if you don't want them to come back.

    Any changes you make, should be made in custom/Extension/application/Ext and not in application/Ext as the latter is rebuilt with every QRR

    HTH
    Francescas