Mantis - Quercus
Viewing Issue Advanced Details
1400 minor always 10-10-06 10:12 11-27-06 15:06
awatt  
ferg  
normal  
closed 3.1.0  
fixed  
none    
none 3.1.0  
0001400: MediaWiki install fails due to unimplemented function
Installing MediaWiki 1.7.1 fails on the 061006 snapshot of Resin 3.1. The config page works comes up fine, but after clicking Install, the next page loads partially and then abruptly cuts off. Here's how far it gets:

    * PHP 5.0.4 installed
    * Found database drivers for: MySQL PostgreSQL
    * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * PHP is configured with no memory_limit.
    * Have zlib support; enabling output compression.
    * APC installed
    * Found GNU diff3: /usr/bin/diff3.
    * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
    * Installation directory: /Users/andrew/Sites/mediawiki-1.7.1
    * Script URI path: /wiki
    * Environment checked. You can install MediaWiki.

      Generating configuration file...
    * Database type: MySQL


Turning the com.caucho.quercus logger up to 'all' revealed this exception occurring:

[11:49:24.899] com.caucho.quercus.QuercusExitException: Users/andrew/Sites/mediawiki-1.7.1/includes/Exception.php:162: Fatal Error: Users/andrew/Sites/mediawiki-1.7.1/includes/Exception.php:162: 'set_exception_handler' is an unknown function

So it appears to be failing because Exception.php calls set_exception_handler(), which is yet unimplemented in Quercus.

I should note that I'd really prefer to run MediaWiki in Resin 3.0, since it has a stable release, but bug 0001320 prevents that. So basically this means that there is currently no way to install MediaWiki in Quercus. Very unfortunate.
Full stack trace:

[11:49:24.349] com.caucho.quercus.QuercusException: string: cannot be read
[11:49:24.349] at com.caucho.quercus.env.Env.warning(Env.java:3399)
[11:49:24.349] at com.caucho.quercus.lib.file.FileModule.filemtime(FileModule.java:797)
[11:49:24.349] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11:49:24.349] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[11:49:24.349] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[11:49:24.349] at java.lang.reflect.Method.invoke(Method.java:585)
[11:49:24.349] at com.caucho.quercus.module.StaticFunction.invoke(StaticFunction.java:114)
[11:49:24.349] at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:536)
[11:49:24.349] at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:409)
[11:49:24.349] at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:395)
[11:49:24.349] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:181)
[11:49:24.349] at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:126)
[11:49:24.349] at com.caucho.quercus.expr.SuppressErrorExpr.eval(SuppressErrorExpr.java:94)
[11:49:24.349] at com.caucho.quercus.env.JavaInvoker.evalArguments(JavaInvoker.java:386)
[11:49:24.349] at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:170)
[11:49:24.349] at com.caucho.quercus.expr.FunctionExpr.evalCopy(FunctionExpr.java:150)
[11:49:24.349] at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:80)
[11:49:24.349] at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:76)
[11:49:24.349] at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:112)
[11:49:24.349] at com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:246)
[11:49:24.349] at com.caucho.quercus.lib.MiscModule.eval(MiscModule.java:176)
[11:49:24.349] at _quercus._config._index__php.execute(_index__php.java:485)
[11:49:24.349] at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:122)
[11:49:24.349] at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:241)
[11:49:24.349] at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[11:49:24.349] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
[11:49:24.349] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[11:49:24.349] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:49:24.349] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
[11:49:24.349] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:487)
[11:49:24.349] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:582)
[11:49:24.349] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:504)
[11:49:24.349] at java.lang.Thread.run(Thread.java:613)
[11:49:24.899] com.caucho.quercus.QuercusExitException: Users/andrew/Sites/mediawiki-1.7.1/includes/Exception.php:162: Fatal Error: Users/andrew/Sites/mediawiki-1.7.1/includes/Exception.php:162: 'set_exception_handler' is an unknown function
[11:49:24.899] at com.caucho.quercus.env.Env.error(Env.java:3653)
[11:49:24.899] at com.caucho.quercus.env.Env.errorException(Env.java:3388)
[11:49:24.899] at com.caucho.quercus.env.Env.getFunction(Env.java:2227)
[11:49:24.899] at _quercus._includes._Exception__php$fun_wfInstallExceptionHandler.call(_Exception__php.java:144)
[11:49:24.899] at com.caucho.quercus.program.CompiledFunction_0.call(CompiledFunction_0.java:72)
[11:49:24.899] at com.caucho.quercus.program.CompiledFunction.callRef(CompiledFunction.java:63)
[11:49:24.899] at com.caucho.quercus.program.AbstractFunction.callRef(AbstractFunction.java:319)
[11:49:24.899] at _quercus._includes._Setup__php.execute(_Setup__php.java:152)
[11:49:24.899] at com.caucho.quercus.env.Env.include(Env.java:3024)
[11:49:24.899] at _quercus._config._index__php.execute(_index__php.java:510)
[11:49:24.899] at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:122)
[11:49:24.899] at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:241)
[11:49:24.899] at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[11:49:24.899] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
[11:49:24.899] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[11:49:24.899] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:49:24.899] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
[11:49:24.899] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:487)
[11:49:24.899] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:582)
[11:49:24.899] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:504)
[11:49:24.899] at java.lang.Thread.run(Thread.java:613)

Notes
(0001606)
ferg   
11-27-06 15:06   
php/0g0c