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

Error installing package with ezpm.php with manual db settings

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 5.4.2
    • Fix Version/s: QA tracked issues
    • Component/s: Legacy stack
    • Labels:
      None
    • Environment:

      CentOS7
      SQL: Ver 15.1 Distrib 5.5.37-MariaDB
      PHP: 5.4.16

      Description

      On a 5.4.2, when trying to use ezpm.php install command form ezpublish installation root, by manually defining my db connection settings:

      sudo php ezpublish/console ezpublish:legacy:script --siteaccess=ezdemo_site_admin ezpm.php --debug=all --db-user=ezp --db-password=ezp --db-host=localhost --db-type=mysql --db-name=ezp54 install test_package
      

      I get this error:

      Running script 'ezpm.php' in eZ Publish legacy context
      Version '5.4.0' in database 'ezp54' is different from the running version 5.4.2
      

      It appears the problem might somewhat be related to the fact that in ezpublish_legacy/ezpm.php, line 722, I have:

      "SELECT * FROM ezsite_data WHERE name = 'ezpublish-version'"
      

      and on my database I have:

      select * from ezsite_data;
      

      +-------------------+-------+
      | name              | value |
      +-------------------+-------+
      | ezdemo            | 2.0   |
      | ezpublish-release | 1     |
      | ezpublish-version | 5.4.0 |
      +-------------------+-------+
      3 rows in set (0.00 sec)
      

      I have 5.4.0 in the DB and my ezpublish version is 5.4.2.
      I have a package ezpublish/ezpublish_legacy/tmp/package test_package-1.0-1.ezpkg for the test.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rui Silva (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: