# 🎉 WP Discourse now has logs and tests

**URL:** https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747
**Category:** WordPress
**Created:** [May 18, 2021, 2:08am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747 "2021-05-18T02:08:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 18, 2021, 2:08am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747/1 "2021-05-18T02:08:10Z")

</div>

We’re very excited to announce a new feature in `v2.2.5` of [WP Discourse](https://github.com/discourse/wp-discourse) plugin: Logs! Logging may sound a bit boring, but I’ve been excited about this update for months 😅. You can check out the details here

> [@View logs for the WP Discourse plugin](https://meta.discourse.org/t/wp-discourse-logging/190745):
>
> The [WP Discourse](https://github.com/discourse/wp-discourse) plugin has its own logging system (since v2.2.5). This is an overview of how it works and how to use it. If you have any questions please respond below. What is logged All of the main [WP Discourse](https://github.com/discourse/wp-discourse) feature-sets log errors (since v2.3.5). To log every action, including successful ones, you can turn on verbose logging for the relevant feature-set you want more information on. Look for a setting starting with “Verbose..” in the relevant settings tab. How logs are stored The plugin…

As part of `v2.2.5` we’ve also released a number other integrity-focused changes, including unit tests, production composer packages, CI updates and code formatting changes. The specifics of these are more for developers, but the benefits of which will be seen by end users over time. If you’re a developer wanting to learn more, please check out the new developer-focused documentation in the plugin:

- [composer packages](https://github.com/discourse/wp-discourse/blob/master/docs/COMPOSER.md)
- [code formatting](https://github.com/discourse/wp-discourse/blob/master/docs/FORMATTING.md); and
- [unit tests](https://github.com/discourse/wp-discourse/blob/master/docs/TESTS.md)

---

<div class="post-metadata">

### Author: ![TimeDoctor](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@TimeDoctor](https://meta.discourse.org/u/TimeDoctor)
#### Post date: [May 18, 2021, 3:10am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747/2 "2021-05-18T03:10:26Z")

</div>

this update took my site offline, looks like it is requesting vendor/autoload.php which doesn’t exist at least in the updated zip on [wordpress.org](http://wordpress.org)

**Update** : removed the wordpress plugin and [ioquake3.org](http://ioquake3.org) is back online.

Particulars of my deployment: I’m using a [demyx](https://demyx.sh) deploy of wordpress so it’s possible something there isn’t behaving right. Error log:

```plaintext
Warning: require_once(/demyx/wp-content/plugins/wp-discourse/vendor/autoload.php): failed to open stream: No such file or directory in /demyx/wp-content/plugins/wp-discourse/wp-discourse.php on line 60
    Fatal error: require_once(): Failed opening required '/demyx/wp-content/plugins/wp-discourse/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /demyx/wp-content/plugins/wp-discourse/wp-discourse.php on line 60
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

```

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 18, 2021, 3:11am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747/3 "2021-05-18T03:11:39Z")

</div>

Thanks for the report, we’ll take a look straight away.

**edit** @TimeDoctor Thanks for those further details. We’ve identified the issue and will be submitting an update shortly. Sorry for any inconvenience caused and thank you for your prompt report.

---

<div class="post-metadata">

### Author: ![josue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/josue/32/97474_2.png) [@josue](https://meta.discourse.org/u/josue)
#### Post date: [May 18, 2021, 4:23am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747/4 "2021-05-18T04:23:49Z")

</div>

17 of my sites went down over the last few hours. 😩

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 18, 2021, 4:39am UTC](https://meta.discourse.org/t/wp-discourse-now-has-logs-and-tests/190747/5 "2021-05-18T04:39:18Z")

</div>

[WP Discourse](https://github.com/discourse/wp-discourse) version 2.2.5 fixes the issue: [WP Discourse – WordPress plugin | WordPress.org](https://wordpress.org/plugins/wp-discourse/). It’s available in the WordPress repo now.

Edit: The issue was caused by the plugin’s auto-load files not getting pushed to the WordPress repo. Angus has found a good workaround for the problem. I’ve tested the latest version on my own WordPress site and it loads without errors.
