{* * $Revision: 1.3 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{if isset($ErrorPage.code.obsoleteData)} {g->text text="Edit Conflict!"} {elseif isset($ErrorPage.code.securityViolation)} {g->text text="Security Violation"} {elseif isset($ErrorPage.code.storageFailure)} {g->text text="Database Error"} {elseif isset($ErrorPage.code.platformFailure)} {g->text text="Platform Error"} {else} {g->text text="Error"} {/if}

{if isset($ErrorPage.code.obsoleteData)}

{g->text text="Your change cannot be completed because somebody else has made a conflicting change to the same item. Use the back button in your browser to go back to the page you were on, then reload that page and try your change again."}

{g->text text="Go back and try again"}

{g->text text="Alternatively, you can return to the main Gallery page and resume browsing."}

{elseif isset($ErrorPage.code.securityViolation)}

{g->text text="The action you attempted is not permitted."}

{elseif isset($ErrorPage.code.storageFailure)}

{g->text text="An error has occurred while interacting with the database."}

{if $ErrorPage.isAdmin && !isset($ErrorPage.debug)} {g->text text="The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details."} {/if} {elseif isset($ErrorPage.code.platformFailure)}

{g->text text="An error has occurred while interacting with the platform."}

{if $ErrorPage.isAdmin && !isset($ErrorPage.debug)} {g->text text="The exact nature of the platform error is unknown. A common cause are insufficient file system permissions. This can happen if you or your webhost changed something in the file system, e.g. by restoring data from a backup."} {/if} {else}

{g->text text="An error has occurred."}

{/if}

{g->text text="Back to the Gallery"}

{if !empty($ErrorPage.stackTrace)}

{g->text text="Error Detail"} {if $ErrorPage.isAdmin}-{else}+{/if}

{$ErrorPage.stackTrace}
{/if} {if $ErrorPage.isAdmin}

{g->text text="System Information"}

{if isset($ErrorPage.dbType)} {/if} {if isset($ErrorPage.toolkits)} {/if}
{g->text text="Gallery version"} {$ErrorPage.version}
{g->text text="PHP version"} {$ErrorPage.phpversion} {$ErrorPage.php_sapi_name}
{g->text text="Webserver"} {$ErrorPage.webserver}
{g->text text="Database"} {$ErrorPage.dbType} {$ErrorPage.dbVersion}
{g->text text="Toolkits"} {$ErrorPage.toolkits}
{g->text text="Operating system"} {$ErrorPage.php_uname}
{g->text text="Browser"} {$ErrorPage.browser}
{/if} {if isset($ErrorPage.debug)}
{include file="gallery:templates/debug.tpl"}
{/if} {if isset($ErrorPage.profile)}
{include file="gallery:templates/profile.tpl"}
{/if}