These instructions take advantage of the Composer powered update systems in 5.4 for maintenance updates, so make sure:
For Upgrading from versions prior to 5.3 look at the Installation and Upgrade Guides.
You will also find, at the end of this document, a list of new, optional packages that were made available during the maintenance phase of this version.
Follow all* instructions below that applies to the version you're updating from: when updating from 5.4.0 everything applies.
* The version you update to will always be the latests, hence the importance of following all steps.
Newer versions of Composer sometimes updates it's API's and as such we need to make sure our composer plugin ezpublish-legacy-installer is up-to-date before we do anything else, so if you don't already have ezsystems/ezpublish-legacy-installer
v2.0.3 and Composer 1.1, do the following:
# First install Composer v1.0 that works with old version of ezpublish-legacy-installer php -r "copy('https://getcomposer.org/download/1.0.3/composer.phar', 'composer.phar');" # Then install newer version php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist --no-scripts ezsystems/ezpublish-legacy-installer # Then make sure composer is updated to latests php -d memory_limit=-1 composer.phar selfupdate |
Perform the following command to make sure you you are not affected by conflicts caused by this package:
php -d memory_limit=-1 composer.phar remove --no-update --dev behat/mink-selenium-driver |
This release fixes a vulnerability in the eZ Publish password recovery function. You need to have the PHP OpenSSL extension (ext-openssl) installed to take full advantage of the improved security, but even without it security is improved. See Security Advisory for further information. |
php -d memory_limit=-1 composer.phar require --no-update symfony/symfony:~2.7.0 sensio/distribution-bundle:~3.0 |
The XmlText fix for EZP-23513 (see https://github.com/ezsystems/ezpublish-kernel/pull/1087) deprecates/removes the CustomTags pre-converter in favor of a new Expanding converter. While they're not part of the public API, if you rely on this file in any way, you might want to check and update your code.
The legacy, v1 REST API, is now integrated to the Symfony Kernel. This allows interaction between this channel and new stack caches (persistence and HTTP). It mainly affects the Content Staging legacy extension. Remove the following line from your rewrite rules and restart your web server:
RewriteRule ^/api/[^/]+/v1/ /index_rest.php [L] |
rewrite "^/api/[^/]+/v1" "/index_rest.php" last; |
Edit ezpublish/EzPublishKernel.php
, and instantiate eZ\Bundle
\
EzPublishLegacySearchEngineBundle
\
EzPublishLegacySearchEngineBundle
in the list of enabled bundles in the $bundles
array in the registerBundles()
method, right before EzPublishLegacyBundle
.
Make sure you are using Symfony 2.7, as Symfony 2.8 is currently not supported (both are LTS releases, but 2.8 introduced a few breaks that causes problems). So check version using command below, and if 2.8 follow instuctions above to correct it:
php -d memory_limit=-1 composer.phar show --installed |
|
With this command you'll update all packages that have received updates:
# First delete the Symfony container cache to avoid error, on Windows use something like: DEL /F /Q /S ezpublish/cache/*/*ProjectContainer.php rm ezpublish/cache/*/*ProjectContainer.php php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist |
Legacy extensions autoload must be regenerated when new classes are added. To make sure to avoid any issues always run this command after composer update:
|
Follow all instructions below that applies to the version you've updated from, i.e. if you are updating from 5.4.0 everything applies.
An eZ Find user needs to update their solr schema.xml
file.
For each solr core (located in ezfind/java/solr
), you need to edit <my-core-name>/conf/schema.xml
Around line 566, right after:
<field name="meta_priority_si" type="sint" indexed="true" stored="true" multiValued="true"/> |
Add the following lines:
<!-- denormalised fields for hidden and visible path elements --> <field name="meta_visible_path_si" type="sint" indexed="true" stored="true" multiValued="true"/> <!-- Visible Location path IDs --> <field name="meta_visible_path_string_ms" type="mstring" indexed="true" stored="true" multiValued="true"/> <!-- Visible Location path string --> <field name="meta_hidden_path_si" type="sint" indexed="true" stored="true" multiValued="true"/> <!-- Hidden Location path IDs --> <field name="meta_hidden_path_string_ms" type="mstring" indexed="true" stored="true" multiValued="true"/> <!-- Hidden Location path string --> |
Now restart Solr, and re-index your content to be able to take advantage of this improvement.
New features are sometimes backported from the development version as external packages. They can be installed on top of your existing installation.
You may also install the ezsystems/ezplatform-solr-search-engine
package, compatible with eZ Publish Platform kernel 5.4.5 and higher. You can read more about that on the 5.4.5 release notes.
Follow install instructions on the dedicated Solr Search Engine Bundle page.