Jump to content

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


hellomoto
 Share

Recommended Posts

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/ ?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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