New Build: 0.0.0master1002152141

4 views
Skip to first unread message

Christoph Dorn

unread,
Feb 16, 2010, 2:07:30 AM2/16/10
to FireConsole
http://www.fireconsole.org/Alpha/

Changes:

* Fix for local template packs on windows
* Various changes

There is a new page on Server Libraries:

http://groups.google.com/group/fireconsole/web/server-libraries

There is also a new page on Template Packs:

http://groups.google.com/group/fireconsole/web/template-packs

If you are on OSX or Windows (XP was tested) you should be able to get
a local template pack working. On windows you may need to click twice
on the "Install" button on the authorization pop-up. (There is still a
minor issue)

Please send feedback if you can get it working or if you run into
problems.

Thanks!
Christoph

Christoph Dorn

unread,
Feb 16, 2010, 2:10:27 AM2/16/10
to FireConsole
There is also a new server library releaser for PHP (0.1.0alpha3):
http://groups.google.com/group/fireconsole/web/server-libraries

T.N.T.

unread,
Feb 21, 2010, 7:38:16 AM2/21/10
to FireConsole
> If you are on OSX or Windows (XP was tested) you should be able to get
> a local template pack working. On windows you may need to click twice
> on the "Install" button on the authorization pop-up. (There is still a
> minor issue)
>
> Please send feedback if you can get it working or if you run into
> problems.


I tried to run the examples from the PHP server libraries
(0.1.0alpha3, all with FF 3.5.8 and Firebug 1.5.0). On Windows XP SP2
and Mac Os 10.5.8 there is no output at all! On Unbuntu 9.04 the
MessageFeatures.php shows some output but the CustomTemplates.php asks
for trusting/installing the templates and then fails. The console
shows this:

[FireConsole] Error while logging buffered template TypeError:
context.getPanel("console") is null
{ message="context.getPanel("console") is null", more...}

And the Develpoer Sidebar this:

{
"type": "error",
"data": {
"message": "context.getPanel(\"console\") is null",
"file": "/home/thelonius/.mozilla/firefox/eizz0wmw.fireconsole/
extensions/firec...@id.cadorn.org/using/registry.pinf.org/
cadorn.org/github/fireconsole/packages/firefox-extension/packages/
firebug/0.0.0rev-e69c53827ab59d1efe53dda7c04835301fa8e9ff/lib/
console.js",
"line": 114,
"stackString": "([object Object],[object Object],[object Object])@/
home/thelonius/.mozilla/firefox/eizz0wmw.fireconsole/extensions/
firec...@id.cadorn.org/using/registry.pinf.org/cadorn.org/github/
fireconsole/packages/firefox-extension/packages/firebug/0.0.0rev-
e69c53827ab59d1efe53dda7c04835301fa8e9ff/lib/console.js:
114\nlogMessage([object Object],[object Object])@/home/
thelonius/.mozilla/firefox/eizz0wmw.fireconsole/extensions/
firec...@id.cadorn.org/packages/firefox-extension/lib/main.js:
277\n(\"banza.net\",[object Object])@/home/thelonius/.mozilla/firefox/
eizz0wmw.fireconsole/extensions/firec...@id.cadorn.org/packages/
firefox-extension/lib/main.js:208\n()@/home/thelonius/.mozilla/firefox/
eizz0wmw.fireconsole/extensions/firec...@id.cadorn.org/packages/
firefox-extension/lib/Security.js:103\n([object ChromeWindow],
(function () {try {exports.addDomainForTemplatePack(domain,
descriptor);templatePackAuthorizationPanel.hide();templatePackAuthorizationListener.onAccept(domain,
descriptor);} catch (e) {system.log.error(e);}}))@/home/
thelonius/.mozilla/firefox/eizz0wmw.fireconsole/extensions/
firec...@id.cadorn.org/packages/firefox-extension/lib/
TemplatePack.js:196\n()@/home/thelonius/.mozilla/firefox/
eizz0wmw.fireconsole/extensions/firec...@id.cadorn.org/packages/
firefox-extension/lib/Security.js:99\nconfirmInstall()@narwhalrunner://
fireconsole/281687B4FC1991337C555C4EC2FBF35B/content/
TemplatePackAuthorizationPanel.htm:99\nonclick([object
MouseEvent])@narwhalrunner://fireconsole/
281687B4FC1991337C555C4EC2FBF35B/content/
TemplatePackAuthorizationPanel.htm:1\n"
}
}

Regards, T.

Christoph Dorn

unread,
Feb 21, 2010, 4:52:25 PM2/21/10
to firec...@googlegroups.com
T.N.T. wrote:
> I tried to run the examples from the PHP server libraries
> (0.1.0alpha3, all with FF 3.5.8 and Firebug 1.5.0). On Windows XP SP2
> and Mac Os 10.5.8 there is no output at all! On Unbuntu 9.04 the

Did you make sure you have the "console" and "net" panels enabled (I
have to enable those automatically I think).

Did you see any response headers.

This feedback is very much appreciated. Thanks!


> MessageFeatures.php shows some output but the CustomTemplates.php asks
> for trusting/installing the templates and then fails. The console
> shows this:
>
> [FireConsole] Error while logging buffered template TypeError:
> context.getPanel("console") is null
> { message="context.getPanel("console") is null", more...}

When does it fail? After clicking "Install"? If the install dialog
closes try refreshing the page afterwards to see if it works (now that
the template pack is approved).

Thanks!

Christoph

T.N.T.

unread,
Feb 23, 2010, 5:58:46 AM2/23/10
to FireConsole

On 21 Feb., 22:52, Christoph Dorn <christoph...@christophdorn.com>
wrote:


> T.N.T. wrote:
> > I tried to run the examples from the PHP server libraries
> > (0.1.0alpha3, all with FF 3.5.8 and Firebug 1.5.0). On Windows XP SP2
> > and Mac Os 10.5.8 there is no output at all! On Unbuntu 9.04 the
>
> Did you make sure you have the "console" and "net" panels enabled (I
> have to enable those automatically I think).

Yes.

> Did you see any response headers.

Yes, they looked the same as on Ubuntu on both systems - I always make
this sure because my Ruby-lib failed first with Fireconsole in this
way because of the unexpected version string.

Of course I tried to reload the page several times. What I didn't try
was to completly restart FF. Today I get the messages and the install
dialog in Windows. After clicking 'Install' the following error is
shown in the console (Developer Sidebar remains empty):

uncaught exception: [Exception... "Component returned failure code:
0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]"
nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS
frame :: resource:\narwhal-xulrunner\lib\file-engine.js ::
anonymous :: line 246" data: no]

The dialog shows an interesting path in the 'Templatee Pack
Information' box: file:///web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/examples/CustomTemplates
- This is the local path on the server, what probably explains the
NS_ERROR_FILE_NOT_FOUND.

> > MessageFeatures.php shows some output but the CustomTemplates.php asks
> > for trusting/installing the templates and then fails. The console
> > shows this:
>
> > [FireConsole] Error while logging buffered template TypeError:
> > context.getPanel("console") is null
> > { message="context.getPanel("console") is null",  more...}
>
> When does it fail? After clicking "Install"? If the install dialog
> closes try refreshing the page afterwards to see if it works (now that
> the template pack is approved).

Refreshing and even restarting FF doesn't help anything. I will later
try again if it works on Mac Os just to make sure that I didn't forget
anything.

I don't know wether this is interesting: on all three systems I
created a new FF-profile on which I only installed Firebug and
Fireconsole. On Linux I additionally installed the HTTP-Fox addon.

Regards, T.

Christoph Dorn

unread,
Feb 23, 2010, 2:33:11 PM2/23/10
to firec...@googlegroups.com
T.N.T. wrote:
> uncaught exception: [Exception... "Component returned failure code:
> 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]"
> nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS
> frame :: resource:\narwhal-xulrunner\lib\file-engine.js ::
> anonymous :: line 246" data: no]
>
> The dialog shows an interesting path in the 'Templatee Pack
> Information' box: file:///web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/examples/CustomTemplates
> - This is the local path on the server, what probably explains the
> NS_ERROR_FILE_NOT_FOUND.

That is the problem I think. Only *local* template pack loading works at
this point. The template pack needs to reside on the *same* system
running fireconsole.

I have made this more clear here:

http://groups.google.com/group/fireconsole/web/template-packs

You can use a local template pack with logging from a remote server.
Place the template pack on your local system and on the remote server
register the template pack and use the corresponding template ID based
on where the template pack is on your local system.

FYI, remote loading is working but I need to tweak a few things before I
will document and make this available. There is a bundling and
publishing step involved for the template pack.

Let me know if this solved the problem!

Christoph

T.N.T.

unread,
Feb 24, 2010, 4:55:36 PM2/24/10
to FireConsole

On 23 Feb., 20:33, Christoph Dorn <christoph...@christophdorn.com>
wrote:


> T.N.T. wrote:
> > The dialog shows an interesting path in the 'Templatee Pack
> > Information' box: file:///web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/e xamples/CustomTemplates
> > - This is the local path on the server, what probably explains the
> > NS_ERROR_FILE_NOT_FOUND.
>
> That is the problem I think. Only *local* template pack loading works at
> this point. The template pack needs to reside on the *same* system
> running fireconsole.

Sorry, now I got it. At least in Ubuntu - I didn't turn on my Mac yet.
I'm more curious for writing some templates and hope to find time for
that on weekend.

T.

Christoph Dorn

unread,
Feb 24, 2010, 6:23:06 PM2/24/10
to firec...@googlegroups.com

Great! Get your feet wet. Send your feedback!

Christoph

P.S. Make sure you try OSX or win if Ubuntu does not work properly.


T.N.T.

unread,
Feb 25, 2010, 2:21:22 PM2/25/10
to FireConsole
Now I checked the Mac Os version again. As I said: I didn't forget to
activate the console/net tab and headers are sent. But there is
definiteley no output in the console and nothing happens with
CustomTemplates.php. (How is the Developer Toolbar activated on the
Mac?)

Here the headers from CustomTemplates.php that don't yield any result
on Mac Os:

Date: Thu, 25 Feb 2010 19:02:36 GMT
Server: Apache/2.0.63
X-Powered-By: PHP/5.2.12
x-wf-protocol-1: http://registry.pinf.org/cadorn.org/github/wildfire/@meta/protocol/component/0.1.0
x-wf-1-1-receiver: http://registry.pinf.org/cadorn.org/github/fireconsole/@meta/receiver/template-pack/0.1.0
x-wf-1-1-1-sender: http://registry.pinf.org/cadorn.org/github/fireconsole/packages/lib-php/
x-wf-1-1-1-1: 182||{"action":"require","locator":{"catalog":"http:\/\/
registry.pinf.org\/cadorn.org\/github\/fireconsole-template-packs\/
packages\/catalog.json","name":"lang-php","revision":"master"}}|
x-wf-1-1-1-2: 159||{"action":"require","locator":{"location":"file:\/\/
\/web\/1\/000\/030\/505\/88723\/htdocs\/firephruby\/php\/
phpcore_0.1.0alpha3\/examples\/CustomTemplates"}}|
x-wf-1-2-receiver: http://registry.pinf.org/cadorn.org/github/fireconsole/@meta/receiver/console/0.1.0
x-wf-1-2-1-sender: http://registry.pinf.org/cadorn.org/github/fireconsole/packages/lib-php/
x-wf-1-2-1-3: 351|{"fc.tpl.id":"web\/1\/000\/030\/505\/88723\/htdocs\/
firephruby\/php\/phpcore_0.1.0alpha3\/examples\/
CustomTemplates#console","fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"text","text":"This text is being rendered by the
\"console\" template!","fc.lang.type":"string"}}|
x-wf-1-2-1-4: 491|{"fc.tpl.id":"web\/1\/000\/030\/505\/88723\/htdocs\/
firephruby\/php\/phpcore_0.1.0alpha3\/examples\/
CustomTemplates#console","fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"array","array":
[{"type":"text","text":"Hello","fc.lang.type":"string"},
{"type":"text","text":"World","fc.lang.type":"string"},
{"type":"text","text":"number","fc.lang.type":"string"},
{"type":"text","text":"10","fc.lang.type":"integer"}]}}|
x-wf-1-index: 5
x-wf-1-2-1-5: 721|{"fc.tpl.id":"web\/1\/000\/030\/505\/88723\/htdocs\/
firephruby\/php\/phpcore_0.1.0alpha3\/examples\/
CustomTemplates#console","fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"reference","reference":0},"instances":
[{"type":"dictionary","fc.lang.class":"TestObject","fc.lang.file":"\/
web\/1\/000\/030\/505\/88723\/htdocs\/firephruby\/php\/
phpcore_0.1.0alpha3\/examples\/CustomTemplates.php","fc.tpl.id":"web\/
1\/000\/030\/505\/88723\/htdocs\/firephruby\/php\/phpcore_0.1.0alpha3\/
examples\/CustomTemplates#object","dictionary":{"say":
{"type":"text","text":"This is the test
object!","fc.lang.type":"string","fc.lang.visibility":"protected"}}}]}|
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

And from MessageFeatures.php:

Date: Thu, 25 Feb 2010 19:17:49 GMT
Server: Apache/2.0.63
X-Powered-By: PHP/5.2.12
x-wf-protocol-1: http://registry.pinf.org/cadorn.org/github/wildfire/@meta/protocol/component/0.1.0
x-wf-1-1-receiver: http://registry.pinf.org/cadorn.org/github/fireconsole/@meta/receiver/template-pack/0.1.0
x-wf-1-1-1-sender: http://registry.pinf.org/cadorn.org/github/fireconsole/packages/lib-php/
x-wf-1-1-1-1: 182||{"action":"require","locator":{"catalog":"http:\/\/
registry.pinf.org\/cadorn.org\/github\/fireconsole-template-packs\/
packages\/catalog.json","name":"lang-php","revision":"master"}}|
x-wf-1-2-receiver: http://registry.pinf.org/cadorn.org/github/fireconsole/@meta/receiver/console/0.1.0
x-wf-1-2-1-sender: http://registry.pinf.org/cadorn.org/github/fireconsole/packages/lib-php/
x-wf-1-2-1-2: 240|{"fc.msg.file":"...\/
MessageFeatures.php","fc.msg.line":16,"fc.lang.id":"registry.pinf.org\/
cadorn.org\/github\/fireconsole-template-packs\/packages\/lang-php\/
master"}|{"origin":{"type":"text","text":"Hello
World","fc.lang.type":"string"}}|
x-wf-1-2-1-3: 203|{"fc.msg.label":"Say","fc.lang.id":"registry.pinf.org
\/cadorn.org\/github\/fireconsole-template-packs\/packages\/lang-php\/
master"}|{"origin":{"type":"text","text":"Hello
World","fc.lang.type":"string"}}|
x-wf-1-2-1-4: 208|
{"fc.msg.priority":"info","fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"text","text":"Info
Message","fc.lang.type":"string"}}|
x-wf-1-2-1-5: 211|
{"fc.msg.priority":"warn","fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"text","text":"Warning
Message","fc.lang.type":"string"}}|
x-wf-1-2-1-6: 210|
{"fc.msg.priority":"error","fc.lang.id":"registry.pinf.org\/cadorn.org
\/github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"text","text":"Error
Message","fc.lang.type":"string"}}|
x-wf-1-2-1-7: 206|
{"fc.group.start":true,"fc.lang.id":"registry.pinf.org\/cadorn.org\/
github\/fireconsole-template-packs\/packages\/lang-php\/master"}|
{"origin":{"type":"text","text":"Group 1
Label","fc.lang.type":"string"}}|
x-wf-1-2-1-8: 182|{"fc.lang.id":"registry.pinf.org\/cadorn.org\/github
\/fireconsole-template-packs\/packages\/lang-php\/master"}|{"origin":
{"type":"text","text":"Hello World","fc.lang.type":"string"}}|
x-wf-1-2-1-9: 259|
{"fc.group.start":true,"fc.group.collapsed":true,"fc.group.color":"magenta","fc.lang.id":"registry.pinf.org
\/cadorn.org\/github\/fireconsole-template-packs\/packages\/lang-php\/
master"}|{"origin":{"type":"text","text":"Group 2
Label","fc.lang.type":"string"}}|
x-wf-1-2-1-10: 182|{"fc.lang.id":"registry.pinf.org\/cadorn.org\/github
\/fireconsole-template-packs\/packages\/lang-php\/master"}|{"origin":
{"type":"text","text":"Hello World","fc.lang.type":"string"}}|
x-wf-1-2-1-11: 191|{"fc.group.end":true,"fc.lang.id":"registry.pinf.org
\/cadorn.org\/github\/fireconsole-template-packs\/packages\/lang-php\/
master"}|{"origin":{"type":"text","text":"","fc.lang.type":"string"}}|
x-wf-1-index: 12
x-wf-1-2-1-12: 191|{"fc.group.end":true,"fc.lang.id":"registry.pinf.org
\/cadorn.org\/github\/fireconsole-template-packs\/packages\/lang-php\/
master"}|{"origin":{"type":"text","text":"","fc.lang.type":"string"}}|
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

Christoph Dorn

unread,
Feb 25, 2010, 5:26:32 PM2/25/10
to firec...@googlegroups.com

So the template pack is located at the following path on your mac?

/web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/examples/CustomTemplates

If you look at the headers you can see the registration message for the
template pack:

> x-wf-1-1-1-2: 159||{"action":"require","locator":{"location":"file:\/\/
> \/web\/1\/000\/030\/505\/88723\/htdocs\/firephruby\/php\/
> phpcore_0.1.0alpha3\/examples\/CustomTemplates"}}|

Which translates to a template ID of:

web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/examples/CustomTemplates

as seen in:

> x-wf-1-2-1-3: 351|{"fc.tpl.id":"web\/1\/000\/030\/505\/88723\/htdocs\/
> firephruby\/php\/phpcore_0.1.0alpha3\/examples\/
> CustomTemplates#console","fc.lang.id":"registry.pinf.org\/cadorn.org\/

You can use a local template pack with remote logging as long as the
template registration path and ID matches with where the pack is located
on your local system.

For example:

Template pack location on your mac: /Users/cadorn/CustomTemplates

In your PHP code (no matter where it runs) you need to register the pack
(this is used by FireConsole to locate the pack which will work because
FireConsole and the template pack are on your local mac):

$dispatcher->registerTemplatePack(array(
"location" => "file:///Users/cadorn/CustomTemplates"
));


The corresponding template ID you can use for messages or objects is:

Users/cadorn/CustomTemplates#<tplname>

Christoph

T.N.T.

unread,
Feb 26, 2010, 5:48:26 AM2/26/10
to FireConsole
On 25 Feb., 23:26, Christoph Dorn <christoph...@christophdorn.com>
wrote:

> So the template pack is located at the following path on your mac?
>
> /web/1/000/030/505/88723/htdocs/firephruby/php/phpcore_0.1.0alpha3/examples/CustomTemplates

No; as long as I see no output at all, I will not set up a local
server for testing. But thank you for the additional informations.

T.N.T.

unread,
Feb 26, 2010, 8:58:28 AM2/26/10
to FireConsole

I tested now to install local templates on my windows box: works
without problems. (I've updated Firebug to 1.5.2)

Christoph Dorn

unread,
Feb 26, 2010, 3:30:16 PM2/26/10
to firec...@googlegroups.com

Keep in mind that the template pack code is completely independent from
the server logging code. They just happen to be in the same directory in
the example.

Christoph

Christoph Dorn

unread,
Feb 26, 2010, 3:31:51 PM2/26/10
to firec...@googlegroups.com
T.N.T. wrote:
> I tested now to install local templates on my windows box: works
> without problems. (I've updated Firebug to 1.5.2)

Great! Keep in mind to edit the template pack in the installed location
in the Firefox profile under FireConsole/TemplatePacks/ (it is only
linked from the source location on UNIX at this time).

Christoph

Reply all
Reply to author
Forward
0 new messages