Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.1, 5.2, 5.3, 2014.05
-
None
-
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