Skip to content
This repository has been archived by the owner. It is now read-only.

[dev.icinga.com #2564] misleading 500 error exception on php xsl extension missing #764

Closed
icinga-migration opened this issue Apr 27, 2012 · 1 comment
Labels
bug

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Apr 27, 2012

This issue has been migrated from Redmine: https://dev.icinga.com/issues/2564

Created by mfriedrich on 2012-04-27 09:43:48 +00:00

Assignee: (none)
Status: Resolved (closed on 2012-04-27 10:53:57 +00:00)
Target Version: (none)
Last Update: 2012-04-27 10:53:57 +00:00 (in Redmine)


if you do not have php5-xsl installed (or whatever name there is in any distribution), icinga-web will fail with a 500. luckily apache tells in its error log, but the message is very irritating on the real error.

i would love to see that exception being caught, and tell the user about it like the rest happens - plain "make sure php xsl extension is installed".

[Fri Apr 27 11:35:12 2012] [error] [client x.x.x.x] PHP Fatal error:  Uncaught exception 'AgaviConfigurationException' with message 'The XSL extension for PHP is used by Agavi for performing transformations in the configuration system; this may be disabled by setting\nAgaviConfig::set('core.skip_config_transformations', true);\nbefore calling\nAgavi::bootstrap();\nin index.php (app/config.php is not the right place for this).\n\nAs a result, you *will* have to use the latest configuration file formats and namespaces as backwards compatibility is implemented through XSLT. Also, certain additional configuration file validations implemented via Schematron will not be performed.' in /usr/share/icinga-web/lib/agavi/src/config/AgaviConfigCache.class.php:408\nStack trace:\n#0 /usr/share/icinga-web/lib/agavi/src/config/AgaviConfigCache.class.php(109): AgaviConfigCache::loadConfigHandlers()\n#1 /usr/share/icinga-web/lib/agavi/src/config/AgaviConfigCache.class.php(80): AgaviConfigCache::setupHandlers()\n#2 /usr/share/icinga-web/lib/agavi/src/config/AgaviConfigCache.class.php(243): AgaviConfigCache in /usr/share/icinga-web/lib/agavi/src/config/AgaviConfigCache.class.php on line 408

Changesets

2012-04-27 09:54:38 +00:00 by jmosshammer 549c052

Added xls extension check before initializing agavi
fixes #2564
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 27, 2012

Updated by jmosshammer on 2012-04-27 10:53:57 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset 549c052.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant
You can’t perform that action at this time.