Jump to content

Console displays error from different site in multisite (multi-db) install?


Recommended Posts

Posted
Error: Undefined array key "host" on line: 896 in /website/wire/core/WireHttp.phpError: Undefined array key "scheme" on line: 900 in /website/wire/core/WireHttp.phpError: Undefined variable $var on line: 21 in /website/site/ready.phpSuccessful response: {"error":"Unauthorized"} 

While in /site-sub/ on subdomain of /site/ while testing WireHttp request from /site/ ?

Posted

Hi @hellomoto - that doesn't seem like an error that is caused by Tracy, but rather one that being presented by Tracy. Have you looked at the issue of the undefined $var error on line 21 of ready.php?

Posted
6 minutes ago, hellomoto said:

Anything echo'd in ready.php or finished.php shows in the console, not init.php

Sorry, I don't think I am understanding what you are seeing. Can you please post the code that is causing the problem and a screenshot showing the echo'd code in the console?

Posted

`echo "hello";` in ready.php or finished.php

`hello` in console output (running nothing)

sorry if I understand it better I'll explain rather than posting intermittently

Posted

I tried that before, but I don't see anything being output in the console which is why I was hoping for a screenshot in case I wasn't understanding where you were seeing the echo'd output.

Posted

That said, I am not running on a multi-site setup so maybe that's the issue. Maybe it's due to a WireHttp call from one site to another? If you share that code, maybe I can test?

Posted

I removed the code but it wasn't fancy (wasn't version controlled), it's just how I noticed the issue in the first place. It doesn't happen if I echo something on ready.php in the same /site-sub/ I'm using the console on, only outputs from /site/ files.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...