compiler exception in phpBB 3.0 beta 4

Discussion about the open-source Phalanger [?] project.

compiler exception in phpBB 3.0 beta 4

Postby Duracellko@codeplex » January 19th, 2007, 3:01 pm

At the moment I have some free time and so I decided to test some applications on Phalanger.

I tried phpBB 2.0.22 and it worked perfectly. I just had to correct usercp_avatar.php file, because there was a function with 2 parameters with the same name.
However, I tried slovak localization and some other styles and it worked perfectly ;) good work

Then I tried latest phpBB 3 beta 4 and when I started it, I got NullReferenceException.

index.php in root compiled correctly, because it redirects me to the install/index.php.

Details follow:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 113:include($phpbbrootpath . 'includes/cache.' . $phpEx);
Line 114:include($phpbbrootpath . 'includes/functions_admin.' . $phpEx);
Line 115:include($phpbbrootpath . 'includes/utf/utf_tools.' . $phpEx);
Line 116:
Line 117:// Try and load an appropriate language if required


Source File: D:\wwwroot\phpBB3\install\index.php Line: 115

Stack Trace:


NullReferenceException: Object reference not set to an instance of an object.
PHP.Core.Emit.ILEmitter..ctor(MethodInfo method) +57
PHP.Core.CodeGenerator.EnterFunctionDeclaration(PhpFunction function) +135
PHP.Core.AST.FunctionDecl.Emit(CodeGenerator codeGenerator) +170
PHP.Core.AST.BlockStmt.Emit(CodeGenerator codeGenerator) +71
PHP.Core.AST.BlockStmt.Emit(CodeGenerator codeGenerator) +71
PHP.Core.AST.IfStmt.Emit(CodeGenerator codeGenerator) +420
PHP.Core.AST.GlobalCode.Emit(CodeGenerator codeGenerator) +769
PHP.Core.Reflection.SourceUnit.Emit(CodeGenerator codeGen) +140
PHP.Core.Reflection.InclusionGraphBuilder.EmitAllUnits(CodeGenerator codeGenerator) +367
PHP.Core.Emit.ScriptAssemblyBuilder.CompileScripts(IEnumerable`1 sourceFiles, CompilationContext context) +299
PHP.Core.WebServerCompilerManager.CompileScript(String ns, PhpSourceFile sourceFile, RequestContext requestContext) +369
PHP.Core.WebServerCompilerManager.GetCompiledScript(PhpSourceFile sourceFile, RequestContext requestContext) +138
PHP.Core.ScriptContext.LoadDynamicScriptType(PhpSourceFile sourceFile) +59
PHP.Core.ScriptContext.DynamicInclude(String includedFilePath, String includerFileRelPath, Dictionary`2 variables, DObject self, DTypeDesc includer, InclusionTypes inclusionType) +380
<Script>.<Main>(ScriptContext <context>, Dictionary`2 <locals>, DObject , DTypeDesc , Boolean ) in D:\wwwroot\phpBB3\install\index.php:115

TargetInvocationException: Exception has been thrown by the target of an invocation.
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +358
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
PHP.Core.PhpFunctionUtils.Invoke(MethodInfo method, Object target, Object[] args) +128
PHP.Core.PhpScript.InvokeMainHelper(Type script, ScriptContext context, Dictionary`2 variables, DObject self, DTypeDesc includer, Boolean isMain) +145
PHP.Core.ScriptContext.<IncludeScript>b__0(Object scriptType) +51
PHP.Core.ScriptContext.GuardedCall(Action routine, Object data, Boolean allowUserExceptions) +273

PhpNetInternalException: Guarded call
PHP.Core.ScriptContext.GuardedCall(Action routine, Object data, Boolean allowUserExceptions) +419
PHP.Core.ScriptContext.IncludeScript(String relativeSourcePath, Type type) +343
PHP.Core.RequestContext.IncludeScript(String relativeSourcePath, Type type) +22
PHP.Core.RequestHandler.ProcessRequest(HttpContext context) +280
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Duracellko@codeplex
 
Posts: 11
Joined: January 7th, 2012, 8:37 pm

RE: compiler exception in phpBB 3.0 beta 4

Postby tomasp » February 17th, 2007, 4:25 am

Hi,
thanks for the error report, I'll investigate that.
What version of Phalanger did you use?

Thanks,
Tomas
tomasp
 
Posts: 46
Joined: January 7th, 2012, 8:37 pm

RE: compiler exception in phpBB 3.0 beta 4

Postby Duracellko@codeplex » February 17th, 2007, 8:43 pm

I used Phalanger 2.0 beta3 for windows.
Duracellko@codeplex
 
Posts: 11
Joined: January 7th, 2012, 8:37 pm

RE: compiler exception in phpBB 3.0 beta 4

Postby tomasp » March 3rd, 2007, 11:54 pm

Thanks again for reporting this issue!
I downloaded PhpBB 3 and found what was wrong. I checked-in the fix few minutes ago and it will be working in the next release (you can also build Phalanger from the source).

Tomas
tomasp
 
Posts: 46
Joined: January 7th, 2012, 8:37 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 17 guests

cron

User Control Panel

Login

Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 17 guests