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

Error while trying to run Upgrade Scripts with eZ Oracle

    Details

      Description

      While trying to upgrade from eZ Publish 4.7 to 5.0, if I execute the scripts described on Step 4: Run scripts I get the following errors:

      php update/common/scripts/5.0/deduplicatecontentstategrouplanguage.php
      PHP Warning: Invalid argument supplied for foreach() in /var/www/apache2php53/ezp5/ezpublish_legacy/kernel/private/classes/ezcontentobjectstategroup.php on line 122
      Changing the primary key in table ezcobj_state_group_language Done
      [vl@oracle:/var/www/apache2php53/ezp5/ezpublish_legacy ] $ php update/common/scripts/5.0/restorexmlrelations.php
      This upgrade script is only required for installations that have more than one language
      [vl@oracle:/var/www/apache2php53/ezp5/ezpublish_legacy ] $ php update/common/scripts/5.0/disablesuspicioususers.php --disable
      Script found 1 user accounts with suspicious login.
      Login list
      PHP Warning: Invalid argument supplied for foreach() in /var/www/apache2php53/ezp5/ezpublish_legacy/update/common/scripts/5.0/disablesuspicioususers.php on line 43
      Done.

        Activity

        Hide
        Damien Pobel (Inactive) added a comment -

        Could you run the scripts with the -dALL parameter:

        php update/common/scripts/5.0/deduplicatecontentstategrouplanguage.php -dALL
        php update/common/scripts/5.0/disablesuspicioususers.php -dALL

        Show
        Damien Pobel (Inactive) added a comment - Could you run the scripts with the -dALL parameter: php update/common/scripts/5.0/deduplicatecontentstategrouplanguage.php -dALL php update/common/scripts/5.0/disablesuspicioususers.php -dALL
        Hide
        Pedro Resende (Inactive) added a comment -

        I've used the latest oracle version database, the one you've committed on EZP-20035, and the output of the scripts was:

        php update/common/scripts/5.0/deduplicatecontentstategrouplanguage.php -dALL
        Fixing translations for group ez_lock Done
        Changing the primary key in table ezcobj_state_group_language Done
         
         
        #################################### DEBUG ####################################
        Total runtime: 2.5224 sec
        Peak memory usage: 6,656.0000 KB
        Database Queries: 7
        [vl@oracle:/var/www/apache2php53/ezp5/ezpublish_legacy ] $ php update/common/scripts/5.0/disablesuspicioususers.php -dALL
        Script found 0 user accounts with suspicious login.
        Login list
        Done.
         
         
        #################################### DEBUG ####################################
        Total runtime: 0.0989 sec
        Peak memory usage: 5,888.0000 KB
        Database Queries: 2

        Show
        Pedro Resende (Inactive) added a comment - I've used the latest oracle version database, the one you've committed on EZP-20035 , and the output of the scripts was: php update/common/scripts/5.0/deduplicatecontentstategrouplanguage.php -dALL Fixing translations for group ez_lock Done Changing the primary key in table ezcobj_state_group_language Done     #################################### DEBUG #################################### Total runtime: 2.5224 sec Peak memory usage: 6,656.0000 KB Database Queries: 7 [vl@oracle:/var/www/apache2php53/ezp5/ezpublish_legacy ] $ php update/common/scripts/5.0/disablesuspicioususers.php -dALL Script found 0 user accounts with suspicious login. Login list Done.     #################################### DEBUG #################################### Total runtime: 0.0989 sec Peak memory usage: 5,888.0000 KB Database Queries: 2
        Hide
        Damien Pobel (Inactive) added a comment -

        probably a configuration problem (not really related to EZP-20035)

        Show
        Damien Pobel (Inactive) added a comment - probably a configuration problem (not really related to EZP-20035 )

          People

          • Assignee:
            Unassigned
            Reporter:
            Pedro Resende (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour
              1h