Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19449

Upgrading ezp 4.4 to 4.5 issue if ezstarrating is installed

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0, 4.5.0
    • Fix Version/s: QA tracked issues
    • Component/s: Upgrading
    • Labels:
      None
    • Environment:

      Operating System: RHEL 6.2
      PHP Version: 5.3.3
      Database and version: mysql 5.1.61
      Browser (and version): FF 12

      Description

      After the upgrade process, but before upgrading the ezflow packages its not possible to clear caches ...
      The following error is present if ezstarrating 1.1.0 is present on extension folder if you run:

      $php bin/php/ezcache.php --clear-all --purge

      PHP Fatal error: Call to undefined function ezi18n() in /var/www/apache2php53/ezp/upgraded/ezpublish-4.7.0/extension/ezstarrating/datatypes/ezsrrating/ezsrratingtype.php on line 36

      This is due to the change of the ezi18n function that after this version is now ezpI18n

      Steps to reproduce

      1. Create a ezp 4.4 installation (ezflow with demo content)
      2. Upgrade the installation to 4.5 using the on-line documentation
      3. Verify that if you try to run the clear caches command the error is present

        Activity

        Hide
        Vidar Langseid added a comment -

        Hi

        I think this is a pure documentation issue.

        It should be mentioned in the ezp44->ezp45 upgrade doc that if you have ezstarrating installed too, you must upgrade ezstarrating as well ( procedures for how to do this is documented in the ezflow/ezwebin upgrade doc... )

        Show
        Vidar Langseid added a comment - Hi I think this is a pure documentation issue. It should be mentioned in the ezp44->ezp45 upgrade doc that if you have ezstarrating installed too, you must upgrade ezstarrating as well ( procedures for how to do this is documented in the ezflow/ezwebin upgrade doc... )
        Hide
        Jérôme Vieilledent added a comment -

        In reply to comment #024887
        @Vidar: you're right. Workaround is to include the old ezi18n() function in config.php.

        // config.php (if not already present, create it)
        include 'kernel/common/i18n.php';
        

        Show
        Jérôme Vieilledent added a comment - In reply to comment #024887 @Vidar: you're right. Workaround is to include the old ezi18n() function in config.php. // config.php (if not already present, create it) include 'kernel/common/i18n.php';
        Hide
        João Pingo added a comment -

        This error message is only present if you do a direct upgrade from 4.4 to 4.7
        The function name is change from 4.4 to 4.5

        Show
        João Pingo added a comment - This error message is only present if you do a direct upgrade from 4.4 to 4.7 The function name is change from 4.4 to 4.5

          People

          • Assignee:
            unknown
            Reporter:
            João Pingo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: