Forums / Install & configuration / How to stop content publishing during an upgrade process?

How to stop content publishing during an upgrade process?

Author Message

Andrey Astakhov

Tuesday 10 June 2008 2:27:08 am

I'm going to upgrade my eZ Publish website from 3.8.4 to 4.0.
Unforunately this process is not very easy: many database and php scripts.

Users of my sites generate a lot of content: comments, forum messages, new users.

How to prevent any content publishing on frontend during an upgrade process?

It would be great to show some friendly message "Please wait until upgrade process finished" in every place where user can post message or comment.

Is the best way to achieve it to override edit and register templates?

Kristof Coomans

Tuesday 10 June 2008 5:55:45 am

Hi Andrey

One thing is showing a warning in the templates and hiding any buttons, another thing is really disabling the related views. Some hints that might get you started: http://ezpedia.org/wiki/en/ez/read_only_site. Instead of disabling module views that allow for changes to be made, you can also remove all policies that allow a user to make any changes from any assigned roles.

If you want to be completely sure that there are no modifications made to the database, I also recommend you to remove certain privileges from the database user (like INSERT, UPDATE, DELETE).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Gaetano Giunta

Tuesday 10 June 2008 2:03:32 pm

If you have got access to your webserver config (a plain .htaccess is enough), you could simply redirect all user requests to a courtesy.html page while the upgrade is in process

Principal Consultant International Business
Member of the Community Project Board