Skip to content

Commit 022bbcf

Browse files
committed
Merge branch 'release/2.0.0'
2 parents 362056e + dbfbe64 commit 022bbcf

File tree

114 files changed

+13476
-1167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+13476
-1167
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# v2.0.0
2+
## 09/30/2018
3+
4+
1. [](#new)
5+
* Completely rewritten to be much more flexible
6+
* New _class_ based problems architecture for unified problem definition and reporting
7+
* New `onProblemsInitialized()` plugin event for 3rd party plugins to add their own problem checks
8+
* New more intuitive theme based on Spectre.css to display problems
9+
* Storage of problem state to allow for displaying in admin plugin
10+
* Now with 3 states `critical`, `warning`, and `notice`. Only critical will stop the site working.
11+
* Added some new PHP module checks
12+
* Added a new `umask` permission check
13+
1. [](#improved)
14+
* Implemented extra image checks [#17](https://github.com/getgrav/grav-plugin-problems/pull/17)
15+
116
# v1.4.7
217
## 05/16/2017
318

README.md

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Grav Problems Plugin
22

3-
![Problems](assets/readme_1.png)
3+
![Problems](assets/readme_1.jpg)
44

55
`Problems` is a [Grav](http://github.com/getgrav/grav) Plugin and allows to detect issues.
66

@@ -26,36 +26,43 @@ You should now have all the plugin files under
2626

2727
/your/site/grav/user/plugins/problems
2828

29-
>> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
29+
> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav), the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins, and a theme to be installed in order to operate.
3030
3131
# Usage
3232

3333
`Problems` runs in the background and most of the time you will not know it is there. Although as soon as an issue is caught, the plugin will let you know.
3434

3535
`Problems` checks for the following common issues:
3636

37-
| Check | Description |
38-
| :---------------------------------- | :-------------------------------------------------------------------------------------------------------- |
39-
| Apache `mod_rewrite` | Checks to ensure `mod_rewrite` is enabled if you are running an Apache server. |
40-
| PHP Version | Checks to make sure the PHP version being run by the server meets or exceeds Grav's minimum requirements. |
41-
| PHP GD (Image Manipulation Library) | Checks to make sure that PHP GD is installed. |
42-
| PHP Curl (Data Transfer Library) | Checks to make sure that PHP Curl is installed. |
43-
| PHP OpenSSL (Secure Sockets Library) | Checks to make sure that PHP OpenSSL is installed. |
44-
| PHP Mbstring (Multibyte String Library) | Checks to make sure that PHP Mbstring is installed. |
45-
| .htaccess | Checks to make sure that there is an `.htaccess` file in Grav's root directory. |
46-
| `bin/*` executable | Checks that all the files in the `bin/` folder are exectuable. |
47-
| Cache | Checks the `/cache` folder's existence and verifies that it is writeable. |
48-
| Logs | Checks the `/logs` folder's existence and verifies that it is writeable. |
49-
| Images | Checks the `/images` folder's existence and verifies that it is writeable. |
50-
| Assets | Checks the `/assets` folder's existence and verifies that it is writeable. |
51-
| System | Checks the `/system` folder's existence. |
52-
| Data | Checks the `/user/data` folder's existence and verifies that it is writeable. |
53-
| Pages | Checks the `/user/images` folder's existence. |
54-
| Config | Checks the `/user/config` folder's existence. |
55-
| Error | Checks to make sure the **Error** plugin is installed in `/user/plugins/error`. |
56-
| Plugins | Checks the `/user/plugins` folder's existence. |
57-
| Themes | Checks the `/user/themes` folder's existence. |
58-
| Vendor | Checks the `/vendor` folder's existence. |
37+
| Check | Description |
38+
| :-------------- | :-------------------------------------------------------------------------------- |
39+
| Apache | `mod_rewrite` is enabled if you are running an Apache server. |
40+
| PHP Version | PHP version being run by the server meets or exceeds Grav's minimum requirements. |
41+
| PHP Modules | PHP GD library is installed. |
42+
| | PHP Curl library is installed. |
43+
| | PHP Ctype library is installed |
44+
| | PHP Dom is library installed |
45+
| | PHP OpenSSL library is installed |
46+
| | PHP XML library is installed |
47+
| | PHP Zip library is installed |
48+
| | PHP Exif library is installed if Exif support is enabled |
49+
| | PHP OpenSSL library is installed. |
50+
| | PHP Mbstring library is installed. |
51+
| Essential Files | `.htaccess` file in Grav's root directory. |
52+
| | Checks that all the files in the `bin/` folder are exectuable. |
53+
| | `/cache` folder's existence and verifies that it is writeable. |
54+
| | `/logs` folder's existence and verifies that it is writeable. |
55+
| | `/images` folder's existence and verifies that it is writeable. |
56+
| | `/assets` folder's existence and verifies that it is writeable. |
57+
| | `/system` folder's existence. |
58+
| | `/tmp` folder's existence. |
59+
| | `/user/data` folder's existence and verifies that it is writeable. |
60+
| | `/user/images` folder's existence. |
61+
| | `/user/config` folder's existence. |
62+
| | **Error** plugin is installed in `/user/plugins/error`. |
63+
| | `/user/plugins` folder's existence. |
64+
| | `/user/themes` folder's existence. |
65+
| | `/vendor` folder's existence. |
5966

6067
If an issue is discovered, you will be greeted with a page that lists these checks and whether or not your install passed or failed them. Green checks mean it passed, and a red x indicates that the there is something amiss with the item.
6168

@@ -65,25 +72,19 @@ If a change is caught and the cache is refreshed, the plugin will loop through i
6572

6673
`Problems` gets also triggered if any fatal exception is caught.
6774

68-
# Updating
75+
# CLI Command
6976

70-
As development for the Problems plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Problems is easy, and can be done through Grav's GPM system, as well as manually.
77+
Problems 2.0 comes with a handy CLI command so you can run the checks at any time
7178

72-
## GPM Update (Preferred)
79+
```bash
80+
bin/plugin problems check
81+
```
7382

74-
The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
83+
You should see some output like this:
7584

76-
bin/gpm update problems
7785

78-
This command will check your Grav install to see if your Problems plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.
86+
![](assets/cli.png)
7987

80-
## Manual Update
88+
# Extending Plugins
8189

82-
Manually updating Problems is pretty simple. Here is what you will need to do to get this done:
83-
84-
* Delete the `your/site/user/plugins/problems` directory.
85-
* Download the new version of the Problems plugin from either [GitHub](https://github.com/getgrav/grav-plugin-problems) or [GetGrav.org](http://getgrav.org/downloads/plugins#extras).
86-
* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `problems`.
87-
* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
88-
89-
> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
90+
You can also extend the problems plugin via the `onProblemsInitialized()` event. The event includes an array of Problems. Simply create your own Problems class that extends the `Grav\Plugin\Problems\Base\Problem` class and add it to the array.

assets/cli.png

392 KB
Loading

assets/code-3.svg

Lines changed: 11 additions & 0 deletions
Loading

assets/grav-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/heart.svg

Lines changed: 5 additions & 0 deletions
Loading

assets/readme_1.jpg

360 KB
Loading

assets/readme_1.png

-71.2 KB
Binary file not shown.

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Problems
2-
version: 1.4.7
2+
version: 2.0.0
33
description: Detects and reports problems found in the site.
44
icon: exclamation-circle
55
author:

0 commit comments

Comments
 (0)