Upgrade 8.4.2 to 9.0.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Stefan
    replied
    To give a quick update, I was able to fix the problem for myself by adding the following paths to $skipPathRegexList in BeforeUpgrade.php:
    Code:
    '^custom\/Tools',
    '^custom\/Espo\/Custom\/EntryPoints\/helper'

    Leave a comment:


  • Stefan
    commented on 's reply
    If I uninstall TCPDF extenion and try to upgrade, I get "Error: Class "TCPDF" not found".

  • Stefan
    replied
    Originally posted by yuri
    > It seems that the problem is caused by my custom entry points located in custom/Espo/Custom/EntryPoints/

    What exactly was in the problem file? It loaded the library code.
    HTML code that I include in several Entrypoints. There is no php code in the file, that is mentioned in the error message.

    To be more precise, I have a custom navigation bar for several EntryPoints in custom/Espo/Custom/EntryPoints/helper/navbar.php, which I load into the corresponding EntryPoints via include (<?php include('helper/navbar.php'); ?>) and this navbar.php was displayed in the error message.
    Last edited by Stefan; 02-03-2025, 12:20 PM.

    Leave a comment:


  • shalmaxb
    replied
    My experience with third party extensions:

    Sometimes the uninstall routine in Admin does not uninstall certain extensions completely. So after having uninstalled from the GUI go to the folders client/custom/modules and custom/modules to see if there is anything from one of the uninstalled extensions still present. Delete these files.
    Have a look in your database table "extensions" and delete as well all rests of those extensions.
    Rebuild your instance. In many cases this already solves such problems as described.

    After that, re-install your extensions one by one and see if all works well. If one extension starts to cause the problem again, it is likely a compatibility issue with the upgraded espoCRM version and the developer of that extension should take a look at that.

    Leave a comment:


  • yuri
    commented on 's reply
    I want to ask everybody (not for the first time) not to create duplicate issues on GitHub. Not to create issues that do not have explicit steps to reproduce that can be replicated on a random instance. Moreover, there's no need to split a discussion to several places.

  • yuri
    replied
    Try uninstalling TCPDF extension, upgrade and then install it back.

    Leave a comment:


  • yuri
    replied
    I don't think it's because of missing files. The v9.0 has breaking changes. Before upgrading, the script goes though custom files to check for incompatible usages. To avoid the system complete crash after upgrade, to prompt the user to fix incompatibilities first.

    It looks like some custom file includes the library code. Maybe though the "use" statement in the beginning of the file.

    Leave a comment:


  • DashingUno
    replied
    yuri

    As far as I understand, the issue is the mising required files as mentioned before?
    Should we just manually add them to the EspoCRM-upgrade-8.4.2-to-9.0.2.zip\vendorFiles\paragonie\random_compat\lib and be done with it
    Or will this be included in official version later down the line?

    Whats the correct course of action for us here?

    Leave a comment:


  • yuri
    replied
    > It seems that the problem is caused by my custom entry points located in custom/Espo/Custom/EntryPoints/

    What exactly was in the problem file? It loaded the library code.

    Leave a comment:


  • DashingUno
    replied
    I also think this could be directly related to this https://github.com/paragonie/random_...fe_strings.php
    And the requirment in psalm-autoload

    I have created an issue in github, please join the discussion https://github.com/espocrm/espocrm/issues/3261
    @Iphahla @Stefan

    Could you provide by any chance a screenshot of the error, currently i only have access to production espo, and rather not try a failed upgrade again
    Last edited by DashingUno; 02-03-2025, 05:29 AM.

    Leave a comment:


  • DashingUno
    replied
    Same here, cant upgrade to 9.0.2 from 8.4.2 through docker cli
    The extra extensions we have are:
    TCPDF and Dubas fonts - the error is the same as you described, and we don't have any manually created EntryPoints, to be precise that folder does not even exist

    Leave a comment:


  • Iphahla
    replied
    Hi Stefan, were you able to upgrade yet. I also have custom entities and also cannot upgrade to any of the V9 versions. I would like to know if you found a solution to your problem, please.

    Leave a comment:


  • Stefan
    replied
    So I have spent some more time investigating this issue in more detail.

    It seems that the problem is caused by my custom entry points located in custom/Espo/Custom/EntryPoints/

    I also have a vendor directory with a composer file inside this folder. When I modify BeforeUpgrade.php to skip this directory ('^custom\/Espo\/Custom\/EntryPoints\/vendor') in $skipPathRegexList, like other vendor directories, the upgrade process gets a step further.

    However, the next issue appears because other PHP files inside custom/Espo/Custom/EntryPoints/ are being loaded by the function loadFromDir().

    This results in the following error message:

    "Cannot modify header information - headers already sent by"
    I think the reason for this is that my custom entry points generate HTML output, which naturally includes headers.

    Could you confirm whether this is the intended behavior, or can the custom/Espo/Custom/EntryPoints/ directory also be excluded from being loaded during the upgrade?

    Leave a comment:


  • Stefan
    replied
    victor lazovic So I removed all extensions, except:

    Advanced Pack 3.6.3
    Tcpdf 0.1.1
    Google Integration 1.7.6
    Outlook Integration 1.3.6

    Same error, as I thought.

    Leave a comment:


  • victor
    commented on 's reply
    - First, remove all unofficial extensions from your instance.
    - Then try to update the instance via CLI.
    - Reinstall your extensions in EspoCRM 9.0.+.
Working...