eZ Publish / Releases / eZ Publish Community Project 2013 / ez-publish-community-project-2013-06

ez-publish-community-project-2013-06

eZ Publish Community Project 2013.06

You are using the innovative and cutting-edge version of eZ Publish, built by eZ Systems and the eZ Community.

Requirements

Version : Release date : Requirements :
Community Project 2013.06 (7th "eZ Publish 5 build") June. 14th, 2013

PHP >= 5.3.3 (5.3.7 known to be bugged)
MySQL >= 5.0.51a
PostgreSQL >= 8

If using eZ Find : Java <= 1.6 or >= 1.7.1

Release Notes - ez-publish-community-project-2013-06

Important Information Before You Start Installing

  • This is the 7th "eZ Publish 5" build, that comprises an eZ Publish 4.x build, under the 'ezpublish_legacy' folder, at the root of your eZ Publish 5 installation. We highly recommend, however, to get acquainted with the brand new eZ Publish 5 stack :)

 

Installation

Requirements

Make sure to check the eZ Publish 2013.06 system requirements before proceeding.

Proceeding: One Major Tip

When installing on a linux/UNIX system or Windows-based system, make sure to create a Virtual Host, before starting the installation wizard (this step is highly recommended).

 

Resources

The main entry point of knowledge for you is the eZ Publish 5 Cookbook. 

Have a look at Nicolas' slides presented at the first stage of the eZ+SensioLabs roadshow in Cologne, presenting eZ Publish 5.

Do not miss Joe Kepley's blog containing loads of great tutorials on eZ Publish 5. Also, read Damien's story of the upgrade of planet-ezpublish.fr to eZ Publish 5. Also, take a look at thistutorial by Granite Horizon, to take a safe start in creating controllers for eZ Publish 2013.05. You may want tell what you would like to see in an eZ Publish 5 tutorial here:  What's Needed in an eZ 5 Tutorial?

 

Feedback/reports are key, more than ever

Our community is at a turning point, where feedback is more important than ever. Should you encounter issues installing eZ Publish 5, using it, stumbling upon missing functionality, or be willing to take an active part in eZ Publish 5 development, like some already did, use the following resources:

 

Stats

  • 19 bug-fixes for registered issues
  • 39 pull-requests merged
  • 3 enhancements

See the changelog for details

 

Still up-to-date

Our core-team has blogged on the fly when developing eZ Publish 5, here is a short overview:

We discussed the topic extensively at the first eZ Community UnConference, and got our first hands-on experience on Symfony 2.

We have also been speaking at:

Last, but not least: the eZ Publish 5 documentation still is under construction, but improvements were made since 2012.11. You can find it here: https://confluence.ez.no/display/EZP/eZ+Publish+Documentation, notably the Cookbook for developers. Feedback appreciated on this too.

Upgrade Notes

Upgrading from eZ Publish Community Project 2013.05 to 2013.06

Important Information Before You Start

  • This is the 7th "eZ Publish 5" build, that comprises an eZ Publish 4.x build, under the 'ezpublish_legacy' folder, at the root of your eZ Publish 5 installation,
  • The upgrade procedure below must be applied to the latter, then the normal installation procedure for the eZ Publish 5 stack must be followed, 
  • Make sure to follow the Virtual Host based installation procedure in the latter to initiate the setup wizard.

 

Upgrading from 2013.05 to 2013.06

 

This section describes how to upgrade your existing eZ Publish Community Project 2013.05 installation to build 2013.06. Make sure that you have a working backup of the site before you do the actual upgrade, and make sure the installation you are performing the upgrade on is offline.

Important upgrade notes:

The procedure for upgrading from eZ Publish Community Project build 2013.05 to build 2013.06 consists of the following steps:

  • Backing up the website
  • Putting the website offline (optional)
  • Upgrading the database
  • Upgrading the distribution files to 2013.06
  • Upgrading custom extensions
  • Regenerate the autoload array for extensions
  • Clearing the caches
  • Putting the website online (optional)

 

Check for requirements

It is recommended to always verify the requirements for the new version of eZ Publish before attempting an upgrade. eZ Publish Community Project 2013.4 is compatible with PHP version 5.3.3 and above. So is eZ Publish Community Project 2013.06. For more information regarding system requirements check out "Requirements for doing a normal installation".

 

Step 1: Backing up the website

  • Filesystem set: the extension and settings folders, plus any other folder where you have put your custom developments in (e.g. design/mydesign)
  • Content set: the var/storage, var/<vardir>/storage folders, and a dump of the database (nb: for ezdb cluster mode, a dump of the storage database is needed instead of the storage folders; for ezdfs cluster mode both a dump of the storage database and a backup of the shared var folder on nfs)
  • Optional: the complete installation directory of eZ Publish, except for the var directory and for the eZFind index directory. This is mandatory if you have customized the .htaccess or config.php files

Tip: if you have many user sessions, and the session data is stored in the database, it might be a good idea to remove all data from the session table before backing it up
Tip: in ezdb and ezdfs cluster modes, it is a good idea to clear all caches before dumping the storage database, as it is not easy to only backup storage and not caches

 

Step 2: Putting the website offline (optional)

This step is recommended but not mandatory

  • Put the public website offline and set up a courtesy page to prevent end users from accessing the website while you upgrade. This involves generally modifying the webserver configuration. Make sure you have a different vhost available to access the public website using a private IP address or hostname during the upgrade process
  • Disable execution of eZ Publish cronjobs

 

Step 3: Upgrading the distribution files

The easiest way to upgrade the distribution files is to unpack eZ Publish 2013.06 to a separate directory and then copy into it the directories that contain site-specific files from the existing installation. Make sure that you copy the following directories:

  • design/<mydesign>
  • design/<mydesign_admin>
  • var
  • settings/siteaccess
  • settings/override

Replace "mydesign" and "mydesign_admin" with the actual names of your designs.

Important note: Because the new directory has replaced the original directory, the directory permissions need to be fixed. Use the following commands to do this.

(You have the choice between Shell commands or Alternative shell commands):

  • Shell commands

These shell commands will give proper permission to the web server:

cd </path/to/your/eZ/Publish/directory>chmod -R a+rwx design extension settings var 
  • Alternative shell commands

 These commands will setup the permission more correctly, but require knowledge about the user account used for running the web server process.cd </path/to/your/eZ/Publish/directory>

cd </path/to/your/eZ/Publish/directory>chmod -R og+rwx design extension settings varchown -R <webuser>:<webusergroup> design extension settings var 

 

Step 4: Custom extensions

If you are using custom extensions, the sub-directories inside the "extension" directory will also have to be copied. However, make sure that you do not overwrite any extensions that are included in the eZ Publish 2013.06 tarball, which are currently:

Bundled and enabled

  • ezoe-5.1.0
  • eztags-1.3.0-dev
  • ezodf-5.1.0 (ezpublish-5.1.0)
  • ezmultiupload-5.1.0
  • ezcomments-5.1.0 (ezpublish-5.1.0)
  • ezautosave-5.1.0
  • ezjscore-5.1.0
  • ezie-5.1.0
  • ezformtoken-5.1.0
  • ezprestapiprovider-5.1.0

Bundled but not enabled

  • ezfind-5.1.0
  • ezscriptmonitor-5.1.0 (ezpublish-5.1.0)

Optional installation (depending on the package chosen during the installation wizard)

  • ezdemo-5.1.0 (ezpublish-5.1.0)
  • ezdemodesign-5.1.0 (ezpublish-5.1.0)
  • ezflow-5.1.0 (ezpublish-5.1.0)
  • ezgmaplocation-5.1.0 (ezpublish-5.1.0)
  • ezstarrating-5.1.0 (ezpublish-5.1.0)
  • ezwebin-5.1.0 (ezpublish-5.1.0)
  • ezwt-5.1.0 (ezpublish-5.1.0)

 

 

Step 5: Regenerate the autoload array for extensions

To regenerate the autoload array, execute the following script from the root of your eZ Publish installation:

php bin/php/ezpgenerateautoloads.php --extension

 

Step 6: Clearing the caches

Whenever an eZ Publish website is upgraded, all caches must be cleared in a proper way. This should be done from the root directory of your eZ Publish installation:

php bin/php/ezcache.php --clear-all --purge 

Tip : Purging ensures that the caches are physically removed. When the "--purge" parameter is not specified, the caches will be expired but not removed.

Sometimes the script is unable to clear all cache files because of restrictive file/directory permission settings. Make sure that all cache files have been cleared by inspecting the contents of the various cache sub-directories within the "var" directory (typically the "var/cache/" and "var/<name_of_siteaccess>/cache/" directories). If there are any cache files left, you need to remove them manually.

 

Step 7: Putting the website back online

This step is optional, and is only needed if you put the website offline at step 2

  • warm up the template cache by pre-compiling template files. This should be done from the root directory of your eZ Publish installation:
php bin/php/eztc.php --wwwdir=<value> --index-file=<value> 
  • re-enable the cronjobs
  • warm up the content cache: use a tool such as curl or wget that will navigate the website to force eZPublish to generate the view cache for all content
  • change the webserver / firewall configuration to allow public access to your website again
  • Backing up the website
  • Putting the website offline (optional)
  • Upgrading the database
  • Upgrading the distribution files to 2013.06
  • Upgrading custom extensions
  • Regenerate the autoload array for extensions
  • Clearing the caches
  • Putting the website online (optional)

Changelog

Changelog from Community Project 2013.05 to Community Project 2013.06

Bugfixes

eZ Publish Legacy Stack (LS)
  • EZP-20311: Query parameters get lost when being redirected after login
  • EZP-20482: In IE8, "Enter" key does not work when creating a custom tag
  • EZP-20676: JS error inserting embed-inline tag on empty XML block in ezoe
  • EZP-20802: auto-login after account activation does not increase the login count
  • EZP-20874: ezsys() operator bad behavior with the "querystring" parameter
  • EZP-20888: session is created regardless of ForceStart value
  • EZP-20895: Small Typo in eZContentOperationCollection::updatePriority phpdoc

eZ Publish 5
  • EZP-20575: Setup wizard fails to generate yml config when using kickstart.ini
  • EZP-20576: add use case when there is a custom pagelayout defined in legacy
  • EZP-20860: Improve unit test code coverage of EzPublishRestBundle
  • EZP-20877: Improve unit test code coverage of eZ\Publish\Core\SignalSlot
  • EZP-20929: XML Field Type - Error 500 when passing a default value
  • EZP-20969: REST v2 "Update location" request is not working as intended
  • EZP-20982: UrlAlias matcher not working correctly
  • EZP-20985: excluded_uri_prefixes throwing 503
  • EZP-20987: Notice preventing the completion of creating a FieldType draft with null fieldSettings
  • EZP-21016: REST: 500 error using an incorrect FieldDefinition element
  • EZP-20831: Properly handle path to images variants in REST responses
  • EZP-20642: Legacy_mode:true ignored inside a siteaccess configuration group

Enhancements

eZ Publish Legacy Stack (LS)
  • EZP-19411: Avoid file_exists and include calls for registering datatypes and workflows

eZ Publish 5
  • EZP-19120: 5.x expose isEmptyValue() in API for template needs
  • EZP-20039: Automate install steps in composer post install/update cmd

Pull requests

eZ Publish Kernel & APIs
  • 59: from gggeek/EZP-19760
  • 61: from Plopix/fix-doc-getting-started

eZ Publish Legacy Stack (LS)
  • 344: from crevillo/avoid-fileexists-include-calls-for-registering-datatypes-workflows
  • 593: from ezsystems/5.2-dev
  • 624: from joaoinacio/EZP-20802
  • 631: from ezsystems/leftmenu_enabled_tweaks
  • 640: from crevillo/EZP_20895
  • 642: from jeromegamez/ezcontentobject_fixes
  • 643: from jeromegamez/phpdoc_ezcontentobjecttreenode
  • 644: from alafon/add-download-listener
  • 650: from ezsystems/fix-EZP-20943-op_code-removal-regression
  • 654: from ezsystems/ezp_20311
  • 655: from ezsystems/ezp_20874
  • 659: from harmstyler/add_section_override_to_edit_draft
  • 661: from gggeek/EZP-19760
  • 663: from jeromegamez/EZP-21006_engine_check

eZ Publish 5
  • 351: from ezsystems/fix-20822-service-phpdoc-input-validation
  • 372: from ezsystems/fix-EZP-20223-integration-tests-repository
  • 373: from patrickallaert/AuthorizeFailurePHP-5.3.3
  • 374: from masev/39be2e36e26a4d1fd92bc65552f0d0da1497f62e
  • 375: from ezsystems/fix-EZP-20530-incomplete-tests
  • 376: from ezsystems/fix-EZP-20530-incomplete-tests-2
  • 377: from patrickallaert/EZP-20575
  • 379: from ezsystems/fix-EZP-20530-incomplete-tests-3
  • 380: from ezsystems/composer_script_handlers
  • 381: from MLoureiro/master
  • 383: from ezsystems/xslindent
  • 386: from ezsystems/embed_align2
  • 387: from patrickallaert/EZP-20642
  • 388: from ezsystems/fix-20978-content-service-tests
  • 389: from ezsystems/ezp_20982
  • 390: from ezsystems/ezp_20985
  • 392: from ezsystems/EZP-19120
  • 393: from patrickallaert/EZP-20987
  • 398: from patrickallaert/EZP-20929
  • 400: from patrickallaert/EZP-21016
  • 401: from patrickallaert/EZP-20969
  • 402: from MLoureiro/Updated
  • 406: from ezsystems/fix-EZP-20970-rest-create-view
  • 407: from masev/Fix-EZP-21048-anchor

Miscellaneous

eZ Publish Kernel & APIs
  • Update GETTING_STARTED.md
  • Removed ezsystems/ezpublish-legacy from composer.json and updated dependencies
  • Add dependency on ezpublish legacy, now that we have an installer
  • Update versions in composer.json
  • Fix eZP CP mistake, format & missing note on SetupWizard+upgrade
  • Update assetic-bundle to version 2.3.* to fix "Assetic\AssetWriter::getCombinations() does not exist"

eZ Publish 5
  • EZP-20657: Fixed missing wrapper around embed in XMLText XSL
  • Re-indented XSL stylesheets for XMLText field type
  • Updated: internal services are now injected through constructors of the API services requiring them
  • Fixed: delete trash item after recover
  • Changed: small refactoring of the LegacySetupController

Tags

eZ Publish 2013