If you need to revert to a working state ASAP, rename the plugin's folder via FTP, which is at /wp-content/plugins/justified-image-grid/ but make sure you continue reading for the solution.
When your site crashes, it's usually due to a PHP fatal error. Often, the error message is hidden (blank screen). First, we need to see what kind of error it is:
- With an FTP client, navigate to the WordPress installation folder and edit the wp-config.php file.
- Look for the WordPress debugging mode and set WP_DEBUG to true (from false), so it'll look like this:12345678/*** For developers: WordPress debugging mode.** Change this to true to enable the display of notices during development.* It is strongly recommended that plugin and theme developers use WP_DEBUG* in their development environments.*/define('WP_DEBUG', true);
- Save, then reload the page where the crash occurred.
Most likely it'll say Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes) or it could just remain blank (still, likely a memory problem). The rest of this fix will focus on fixing the memory error. For everything else, contact JIG support. If you see any harmless PHP notices, they can be hidden by disabling the debugging mode.
X should be one of these:
- 8388608 bytes = 8M
- 16777216 bytes = 16M
- 33554432 bytes = 32M
- 67108864 bytes = 64M
- 134217728 bytes = 128M
- 268435456 bytes = 256M
- 536870912 bytes = 512M
- 1073741824 bytes = 1G
If the limit (X) is anything smaller than 128M, you'll need to increase it. Multiple plugins installed will quickly consume all of this limited memory. In that case, JIG is the last straw and it's not the plugin's fault.
If disabling unnecessary plugins doesn't help... Set a limit that it at least 128M and is one level higher than your current limit X (refer to the list above). Not all of the following methods will work or be available on all hosts. Try them until you get it working. If the error message still appears but the X changed in it, then just set it to a higher level.
Once it works, make sure that your debug mode is turned off in the wp-config.php file:
1 | define('WP_DEBUG', false); |
The wp-config method
- Navigate to the WordPress installation folder and edit the wp-config.php file.
- Find this line if it exists and change its value, otherwise add:1define('WP_MEMORY_LIMIT', '128M');
The .htaccess method
- Navigate to the WordPress installation folder and edit the .htaccess file.
- Add this line somewhere:1php_value memory_limit 128M
The php.ini method
- Locate and edit your php.ini file if you have access to it on your hosting.
- Find the line that begins with memory_limit and change it to:1memory_limit = 128M