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

    XMLWordPrintable

    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 
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: