Error after uninstalling extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • boris
    replied
    Just to close this topic. After several other tries to find the issue (of cause as first the one in the last post), I installed a new empty version of ESPO and copied all content of the old one to the new installation. Now it works again.

    Leave a comment:


  • lazovic
    replied
    boris,

    Could you please restore the working backup again and perform the following steps?
    1. Enable debug mode for EspoCRM logs.
    2. Uninstall extensions via UI.
    3. Make a rebuild.
    4. Delete extension folders from the application/Espo/Modules directory.
    5. Make a rebuild.
    6. Remove extensions via UI.
    7. Make a rebuild.
    If the problem persists, please send a fresh error log.

    Leave a comment:


  • boris
    replied
    Recovered a working backup

    Deinstalled Advanced pack --> Errormessage "failed to rebuilld database", After that error 500 in the browser

    Deleted application/Espo/Modules/Advanced --> Only error 500 and a blank page is shown afterwards

    Log says: [2025-11-24 16:05:54] ERROR: (500) There is a same module in both `custom` and `internal` directories. Should be only in one location. :: POST /Admin/rebuild :: /home/www/crmtmp/application/Espo/Core/DataManager.php(251)
    [2025-11-24 23:20:21] ERROR: Failed to rebuild database schema. Details: Incomplete or invalid index definition `primary` on table preferences at /home/www/crmtmp/vendor/doctrine/dbal/src/Platforms/AbstractPlatform.php:2473
    [2025-11-24 23:20:21] ERROR: Database rebuild failure, details: Error while rebuilding database. See log file for details..
    [2025-11-24 23:20:22] ERROR: Database rebuild failure, details: There is a same module in both `custom` and `internal` directories. Should be only in one location..
    [2025-11-24 23:20:22] ERROR: (500) Error occurred while EspoCRM rebuild. Please see the log for more detail. :: POST /Extension/action/uninstall :: /home/www/crmtmp/application/Espo/Core/Upgrades/Actions/Base.php(176)
    [2025-11-24 23:25:03] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /I18n :: /home/www/crmtmp/application/Espo/Core/InjectableFactory.php(165)
    [2025-11-24 23:25:32] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /I18n :: /home/www/crmtmp/application/Espo/Core/InjectableFactory.php(165)

    Any other ideas?

    Leave a comment:


  • yuri
    replied
    Uninstalling the extension should be enough. Maybe there's some delay, I'll need to check it to say for sure.

    Try uninstalling the advanced pack. Then, delete 'application/Espo/Modules/Advanced' (important: not one in 'custom'). Then, install the advanced pack again. No data will be lost.

    The problem was caused by the old files of advanced pack that could not be removed due non-suffice file permissions. After you remove it manually, there's no need to fix file permissions, as we don't write into that directory anymore for years.

    Leave a comment:


  • boris
    replied
    One addition:
    I reinstalled everything (files and database) from a backup to have a working espo again. On a second copy of the backup I deactivated the sales pack --> everything fine. When I click on "delete sales pack" in the backend it crashes espo. So something with the scripts deleting the sales pack causes this issue.

    Regarding Sales Pack: I bought it, because I thought it would be helpful, but found out later that the configuration options didn't match my needs. I never used it practically, but after expiration of my license it showed a nag-screen of which I want to get rid of. Deactivating the extension isn't enough. Thats the reason why I want to uninstall and delete the sales pack extension.

    Leave a comment:


  • boris
    replied
    Hi lazovic,
    it is Advanced Pack 3.11.7 and the content of the folder is this:

    Leave a comment:


  • lazovic
    replied
    Hi boris,

    Could you please tell me which version of Advanced Pack extension you're using? Please also provide information about the contents of the {ESPO_DIR}/custom/Espo/Modules directory.

    Leave a comment:


  • boris
    replied
    Now espo doesn't load anything anymore at the login prompt I get an error 500 and I receive the following errormessage:

    [2025-11-24 12:02:27] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /Stream :: /home/www/crm/application/Espo/Core/InjectableFactory.php(165)
    [2025-11-24 12:02:27] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /Notification/action/notReadCount :: /home/www/crm/application/Espo/Core/InjectableFactory.php(165)
    [2025-11-24 12:02:54] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /Notification/action/notReadCount :: /home/www/crm/application/Espo/Core/InjectableFactory.php(165)
    [2025-11-24 12:02:58] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /I18n :: /home/www/crm/application/Espo/Core/InjectableFactory.php(165)
    [2025-11-24 12:03:01] WARNING: Cron is not run because it's disabled with 'cronDisabled' param.
    [2025-11-24 12:03:01] WARNING: Cron is not run because it's disabled with 'cronDisabled' param.
    [2025-11-24 12:03:05] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Advanced\Acl\BpmnProcess' does not exist. :: GET /I18n :: /home/www/crm/application/Espo/Core/InjectableFactory.php(165)

    Leave a comment:


  • yuri
    replied
    You need to delete the 'Advanced' folder.

    Leave a comment:


  • boris
    replied
    Hi Yuri,
    many thanks for the fast response.Unfortunately there is no folder named sales.

    Leave a comment:


  • yuri
    replied
    Because of a file permissions issue the old package could not remove its folder. It seems you had a quite old version of the extension that was installed in the internal directory. Now all extensions are installed in the custom directory.

    You need to remove application/Espo/Modules/Sales/ manually. There were also other topics on this problem before.

    Leave a comment:


  • boris
    started a topic Error after uninstalling extension

    Error after uninstalling extension

    I have uninstalled the sales pack. After that every page of Espo shows an Bad server response message. I can't reinstall the extension, when clicking on Extensions in the admin-area the attached message is shown. Also via SSH it says "rebuild failed".

    The log says:
    ERROR: (500) There is a same module in both `custom` and `internal` directories. Should be only in one location. :: POST /Admin/rebuild :: /home/www/crm/application/Espo/Core/DataManager.php(251)

    It seems to me the uninstall script did the mess. Any idea how I can fix this?

    Many thanks
    Boris
    Attached Files
Working...