Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
If you experience issues with Envira Gallery, one of the first steps you can take is debugging the issue. Not only does this help our support team better solve your problems, but it also gives tech-savvy users a chance to resolve their issues on their own.
We’re always working to improve Envira’s compatibility with other products, but there are a lot of plugins and themes out there. So, due to the sheer number of plugins, addons, and themes for WordPress, we cannot guarantee that the Envira Gallery will be compatible with all of them. That’s why we provide this debugging guide to help you identify some of the common issues that arise with our plugin.
Throughout this guide, you will see repeated references to PHP, MySQL, JavaScript, debugging consoles, and so on. While some aspects of this document are geared for technically inclined users, there are several diagnostics and solutions available even for users new to WordPress.
If you attempt to debug any issues with Envira Gallery, it’s best to have your software and platform updated to their latest versions (accurate as of May 2020):
Likewise, you’ll do most of your debugging through your web browser. Ensure that you have all your browser software updated as well:
This documentation shows vital steps and known issues that will get you up and running without ever submitting a support ticket.
Here’s what you need to know about debugging Envira Gallery:
If you experience an issue stemming from Envira Gallery, there are a few quick and easy steps to take before submitting a request for support. We recommend that you follow them in this order to protect your site and your data:
If after completing the above you’re unable to identify or resolve the issue, please proceed to our Getting Support guide.
Before you start debugging any issues with Envira Gallery, you’ll need to set things up to do so effectively. That means enabling debugging in PHP, understanding how to open the debugging console, and ruling out any conflicts between Envira Gallery and other plugins or themes.
First, make sure you have a backup of your site so that you don’t lose important information. Learn how to back up your WordPress site here.
WordPress PHP doesn’t enable debugging by default. You’ll have to enable it manually in your wp-config.php file, usually located in the root folder of your WordPress website.
In wp-config.php, add the following code:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Then, at the bottom of the file, add this, as well:
ini_set('log_errors', 'On'); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); error_reporting(E_ALL);
If you have never manipulated back-end WordPress PHP files, then consult with WordPress’s guide to wp-config for best practices. Their guide will help you better understand where to insert the code. Also note that if you fear there might be errors due to this code, you can open the wp-content/debug.log
file located in the wp-content folder.
Web browsers include tools that help you debug frontend code like JavaScript, a critical part of WordPress and Envira Gallery. We recommend using Google Chrome to debug any frontend issues or issues with your WordPress site.
Any errors on the page will appear in red. You can use this information to solve your issue on your own or include it in a support ticket with Envira Gallery support.
The reality of a project like WordPress is that with so many themes and plugins, it’s inevitable that some of them might conflict with one another. This is just as true for a plugin like Envira Gallery.
Before debugging your problem, double-check to see that there isn’t a conflict with your theme or other installed plugins:
These issues are more technical, in that they typically impact the functioning of the backend of the plugin:
set_time_limit
Most likely this error is due to an unsupported version of PHP.
Check your browser console and look for an error that says:
Uncaught SyntaxError: Unexpected token <
This could be due to the version of PHP on your server, specifically if it is older than version 5.6. Note: WordPress recommends using at least PHP 7+.
Additionally, this could be an issue related to the Gallery Slug. Go to the Miscellaneous Tab and ensure there are no special (non-letter or non-number) characters in the slug field. Spaces in WordPress slugs are represented by hyphens.
Also please be sure that each slug name is unique. You should use the same slug name with anything in WordPress including Envira galleries and albums:
The most likely issue is that you haven’t activated your paid Envira Gallery license. If you are running Envira Gallery Lite, you’ll need to buy a paid license and activate your plugin.
If you’re using the X Theme, you’ll need to follow their documentation for enabling the Settings menu item to be visible before you can verify your Envira Gallery license key and access the Addons menu screen.
Check out the X theme documentation as relates to the Envira Gallery.
Also, add the following line of PHP code to your functions.php
file:
1 | function x_envira_gallery_remove_license_functionality() { return true; } |
Remember, it could also be that you haven’t yet activated the Paid version of Envira. If you’re still running the Lite version, please follow these guidelines for upgrading from Envira Lite to the Paid version of the plugin.
Like the above issue, you most likely haven’t enabled your paid Envira Gallery license.
Purchase your paid version of Envira Gallery and enter your verification key. Clear the Envira Gallery cache and refresh the page. You should now see the Addons tab in the left-hand WordPress menu.
This happens when your WordPress system doesn’t pick up the fact that we have released a new update.
Go to the Plugins page in your WordPress Dashboard and refresh the page. When you refresh this page, it manually forces WordPress to check for updates. Envira will be added into those updates if there is indeed an available update to the plugin (or Addons).
set_time_limit
Envira manually sets server timeout settings to optimize image processing and loading. If the server host restricts this action, you’ll see a set-time-limit error that looks like this:
Warning: set_time_limit(): Cannot set max execution time limit due to system policy...
Resolving this issue requires you to contact your host provider and convince them to give you permissions to modify set_time_limit. Once this is enabled on your server, the error will no longer display.
Problems can occur if your Envira Gallery slug is the same as the slug for a standalone post or page. This prevents your galleries and albums from loading.
We suggest changing the slug for your Envira Gallery. Best practices include meaningful words that refer to the elements in the gallery and are unique to that gallery. In addition to resolving this error, such practices will also increase the SEO for your albums and galleries.
If you are still having the issue, you can flush permalink rewrite rules in the WordPress dashboard. Just go to Settings » Permalinks from your WordPress admin and simply click Save again to flush out the rewrite rules used for finding permalinks in WordPress:
WordPress sometimes loads full-size images even when you’ve cropped the images on the platform using Envira Gallery. This typically happens when you’re using the Jetpack Performance and Speed (formerly Photon) module to load images more efficiently. This module uses a global Content Delivery Network (CDN) to serve images, which may interfere with loading.
Disable the global CDN operation in Jetpack by clicking on JetPack » Settings » Performance & Speed and unselecting the CDN option.
Keep in mind that, when using any CDN to serve your images, Envira does not have the correct permission to create any cropped images for you. This includes the Envira Watermarking Addon.
Images don’t display properly in Lightbox if the image links don’t trigger. This happens when the Link To field for an image is set to something other than None or Attachment Page.
You’ll want to open the image in the Envira Gallery Metadata editor and edit the metadata to properly reflect the Link To data.
Point your browser to the Envira Gallery page on which your image is located. Click on the Blue Pencil icon to edit the image metadata:
Click the Media File button to populate the URL information for the image into the metadata, then click the Save Metadata button:
Update your gallery, then clear browser cache. Try reloading the gallery page to see if your images show up in the Lightbox displays.
Note that if you are using the Salient theme or a child theme of Salient, Animated Page Transitions are automatically enabled, which affect the Lightbox. Disable Animated Page Transitions in the Salient » Page Transitions screen.
See our guide to manipulating metadata or to creating your first Envira Gallery to learn more.
You may find your images opening in multiple Lightboxes if you have multiple plugins using Lightbox functionality.
Disable the Lightbox being loaded by a third-party plugin or active theme on your site so it doesn’t load them for images in your Envira Gallery. Instructions for each plugin will vary, so consult each plugin’s documentation.
In Avada, for instance, you can disable the theme’s lightbox by navigating to Avada Theme Options » Lightbox and turning the lightbox feature off.
If you cannot disable Lightbox functions for a plugin, then disable the third-party plugin to see if it solves the problem. If so, then you’ll have to decide on whether or not you want to attempt to use it in the future.
This happens when you apply Lightbox settings through Envira Gallery and they don’t apply to your live galleries. This could also happen because multiple of your WordPress plugins are using Lightbox.
Disable Lightbox functionality in third-party plugins like described above.
When WordPress serves thumbnails for Lightbox galleries, it gets that information from the server databases. If you aren’t seeing thumbnails, or see black boxes instead of thumbnails, WordPress is most likely experiencing a delay in retrieving information from the server. There are a few additional problems that could cause the issue as well.
When Envira loads images, it does so through a series of scripts. This error means that a script has a bug that prevents it from loading. Solving this issue requires some browser debugging to determine the source of the error.
The Envira script loading the gallery has had an error.
Much like any scripting error with Envira, there are a couple of basic steps to take:
This problem arises when Envira Gallery interacts with the Yoast SEO plugin. If you have the Yoast plugin installed, you’ll need to enter a Meta Description field for Envira galleries to trigger the Pinterest buttons to load.
Edit the Meta Description for your Envira galleries. You can do this by navigating to your Envira Gallery Edit Screen, clicking on Configuration and adding a Gallery Description:
Images resizing can get hung up during page loading for a few reasons, some of which are relatively simple to fix.
If you find that your images aren’t resizing properly, try to clear your browser cache and clear your Envira Gallery cache, as well as clearing CDN cache if you use a CDN plugin.
If that doesn’t resolve the issue, then check the dimensions of the images in question. Some large images cannot be arbitrarily reduced to any size and having too many large images can slow down image processing and have an impact on image resize.
This happens when you link to images outside of your website while trying to use the Enable Lightbox functionality.
If you disable Lightbox for that gallery you may see results. Otherwise, review our tutorial on external links with Envira Gallery.
If you use the Enfold WordPress theme, you may have issues with hover styles that can be rectified with some additional PHP code.
Add the following code to the functions.php
file:
Sometimes, you may see multiple images in your Lightbox that force you to click many times to navigate through your gallery.
This happens when you use a page builder to insert Envira Gallery shortcode into your site. Using a page builder can cause issues with how the gallery is rendered in HTML code. If you are using a page builder, then look for an option to add automatic paragraphs, then deselect it.
If the builder doesn’t have that option, check to see if they have support for shortcode instead of or alongside a plain text editor.
A conflict with Lazy Load between your plugins or server and the <noscript>
HTML tag are typically the source of this issue.
If your service or another plugin runs Lazy Load alongside Envira Gallery, you’ll need to disable lazy loading in the other services to let Envira run properly.
For example, if you use JetPack’s Performance & Speed (formerly called Photon) module with the Lazy Load option enabled, try disabling the JetPack Lazy Load.
To do this, go to JetPack » Settings » Performance & Speed.
Alternatively, you could follow the steps in our tutorial here so that you could use JetPack and Envira Lazy Load together!
This is due likely to a JS error caused by your theme or a third party plugin.
footer.php
file (typically located just before the </body>
tag):wp_footer();
Now that you’ve covered our debugging guide, it’s time to check out our Getting Support guide!