[studs-user] This is frustrating!
Status: Beta
Brought to you by:
mojavelinux
|
From: Earnie B. <ea...@us...> - 2006-05-14 13:47:20
|
By making these changes
<diff path="src/horizon/xml/digester">
Index: ObjectCreateRule.php
===================================================================
--- ObjectCreateRule.php (revision 344)
+++ ObjectCreateRule.php (working copy)
@@ -57,8 +57,11 @@
}
$clazz =& Clazz::forName($realClassName);
- $instance =& $clazz->newInstance();
- $this->digester->push($instance);
+ if (!is_null($clazz))
+ {
+ $instance =& $clazz->newInstance();
+ $this->digester->push($instance);
+ }
}
function end($namespace, $name)
Index: SetNextRule.php
===================================================================
--- SetNextRule.php (revision 344)
+++ SetNextRule.php (working copy)
@@ -60,7 +60,10 @@
// @todo use MethodUtils here
$methodName = $this->methodName;
- $parent->$methodName($child);
+ if (!is_null($parent))
+ {
+ $parent->$methodName($child);
+ }
}
}
?>
</diff>
I now get something that is a little prettier; but I still don't know
what is causing the issue. WEB-INF/work is still empty even though I
have it set to 777.
<screen_snip>
HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
exception
horizon.lang.RootException: Only variables should be assigned by reference
at horizon.util.logging.LogManager.getlogger(LogManager.php:60)
at horizon.util.logging.Logger.getlogger(Logger.php:149)
at horizon.xml.digester.Digester.getlog(Digester.php:160)
at horizon.xml.digester.Digester.parse(Digester.php:565)
at stratus.config.ContextConfig.applicationconfig(ContextConfig.php:143)
at stratus.config.ContextConfig.start(ContextConfig.php:108)
at stratus.config.ContextConfig.contextconfig(ContextConfig.php:93)
at [PHP].main(index.php:16)
Apache/2.0.51 (Fedora) PHP/4.4.1
</screen_snip>
Earnie Boyd
P.S.: Are the above changes worth submitting to the patch tracker.
Although a bit hackish the changes cause a decent error page to present
itself.
http://shop.siebunlimited.com
|