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

cannot generate autoloads/execute ezpublish:legacy:script if ezxFormToken class isn't found

    Details

    • Sprint:
      Castor Core S1

      Description

      If the formtoken extension/class is missing from var/autoload/ezp_extension.php, updating the autoloads using ezpublish/console will result in a fatal error:

      <ezroot> $ php ezpublish/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php
       
      PHP Fatal error: Class 'ezxFormToken' not found in <ezroot>/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php on line 162
      

      Trying to execute any other legacy script will fail with the same fatal error.

      The solution is to update the autoloads directly from ezpublish_legacy:

      <ezroot> $ cd ezpublish_legacy/
      <ezroot>/ezpublish_legacy $ php bin/php/ezpgenerateautoloads.php 
      

        Activity

        Show
        Joao Inacio (Inactive) added a comment - Suggested PR: https://github.com/ezsystems/ezpublish-kernel/pull/580
        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/85a066f
        Hide
        Paulo Nunes (Inactive) added a comment -

        QA Approved

        Tested on eZ Publish 5.2, 5.3 and master

        Show
        Paulo Nunes (Inactive) added a comment - QA Approved Tested on eZ Publish 5.2, 5.3 and master

          People

          • Assignee:
            Unassigned
            Reporter:
            Joao Inacio (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile