Skip to content
Permalink
Browse files

Updated testing.md

  • Loading branch information
seb86 committed Apr 1, 2019
1 parent 9199793 commit a949a7584d5ce8b1531206ef86ebc63961353a2e
Showing with 20 additions and 6 deletions.
  1. +20 −6 en_US/testing.md
@@ -8,7 +8,7 @@ Testing or debugging is a common thing for developers but users may have very li

First and foremost, I want to say thank you if you are beta testing or interested in beta testing future releases. Your feedback is important to making Auto Load Next Post better.

You can download the beta tester [here](https://github.com/AutoLoadNextPost/alnp-beta-tester/releases). I would always recommend beta testing in a staging environment.
You can [download the beta tester](https://github.com/AutoLoadNextPost/alnp-beta-tester/releases). I would always recommend beta testing in a staging environment.

### Debugging a White Screen or Error 500

@@ -17,22 +17,36 @@ If you find a white screen or error 500 that usually means something has trigger
1. Look at your server error logs and find the latest ‘fatal error’.
2. Enable [WP_DEBUG](http://codex.wordpress.org/WP_DEBUG) mode and view the page again.

Enabling `WP_DEBUG` involves editing your wp-config.php file and changing, or adding if its not there:
Enabling `WP_DEBUG` involves editing your `wp-config.php` file and changing, or adding if its not there:

`define( 'WP_DEBUG', true );`
```php
define( 'WP_DEBUG', true );
```

When this is done, a more useful error message should be shown. Most of the time this contains the name of the plugin and the line number causing the issue allowing you to act.

### Debugging JavaScript

Debugging Javascript is also possible. If you want to read the console logs with the browsers developer tools you will need to enable `SCRIPT_DEBUG`.
Debugging the Javascript for Auto Load Next Post is available with console logs. If you want to read the console logs with the browsers developer tools you will need to enable `SCRIPT_DEBUG` and `ALNP_DEV_DEBUG` to `true`.

By default your `wp-config.php` file will not have this set so you will need to add:
By default your `wp-config.php` file will not have `SCRIPT_DEBUG` set for you so you will need to add it.

`define( 'SCRIPT_DEBUG', true );`
```php
// Enables none minified assets to load.
define( 'SCRIPT_DEBUG', true );
```

Once you have this added, Auto Load Next Post will load the unminified version of the Javascript on the front end.

To view the developers version, also add `ALNP_DEV_DEBUG` to your `wp-config.php` file but only if you are a developer yourself and looking to make a change, addition or improvement to the script.

```php
// Enables the development version of the JavaScript to load.
define( 'ALNP_DEV_DEBUG', false );
```

---

If you have followed the instructions above to enable `WP_DEBUG`. Auto Load Next Post also allows you to...

## Debugging Functionality Issues

0 comments on commit a949a75

Please sign in to comment.
You can’t perform that action at this time.