Chapter 10. Troubleshooting

Abstract

Start from what you see going wrong, find the likely cause, and fix it.

Problems and Solutions

1. Images

A slide's status is Pending or Failed.

Pending almost always means no Download ID was entered when the slide was saved. Enter it as described in the section called “Entering Your Download ID”, then save the slide again.

Failed means the image was sent for optimization but the attempt didn't succeed. The message shown when you saved the slide says why. Common causes:

  • The Download ID is wrong or no longer valid. Check it in your account on the JCH Optimize website and enter it again.

  • Your server can't connect to the optimization service, for example because of a firewall that blocks outgoing connections. Ask your host to allow HTTPS connections to api3.jch-optimize.net.

  • A very large image took longer than a minute to optimize. Resize it to around 2000 to 3000 pixels wide before choosing it.

In both cases the slide still works. A slide that was optimized before keeps its previous optimized images; a new image is shown unoptimized. Save the slide again once you've fixed the cause. If it still fails, check the log described in the section called “Reading the Log”.

Saving a slide shows Unable to synchronize slide media.

SwiftSlider couldn't read the image you chose. It may have been deleted or renamed in the Media Manager, or its file permissions may stop the website from reading it. Choose the image again, or upload it again, and save.

I changed the image options or the slider's shape, but the images haven't changed.

Images are only regenerated when a slide is saved. Open each slide and click Save Slide. See the section called “Your Original Image Is Always Kept”.

Phones show the wrong part of the image.

Check the slide's Resize Strategy (Mobile View). With Viewport crop, move the crop box over the part phones should show and save the slide. If the caption under the crop box says the image is too small for a crop, phones receive the whole image instead; choose a larger image. If you changed the slider's mobile shape, save each slide so its crop is regenerated in the new shape.

Images look soft or blurry on large or high-resolution screens.

Check that the source image is large enough: at least 1200 pixels wide, and around 2000 for full-width sliders. If it is, try a higher Quality, or set the slider's Image Delivery to Mobile optimized for speed, Desktop for quality, which sends large screens the full-size image. See the section called “Choose an Image Delivery Strategy”.

2. How it looks

The slider doesn't appear on my site.

Check, in order:

  1. The module is published, and its Menu Assignment includes the page you are looking at.

  2. The module's Position exists in your template. Template positions are listed when you click in the Position field.

  3. The module's Slider is set, that slider is published, and it has at least one slide. An unpublished or empty slider shows nothing.

  4. Your site's cache isn't showing an old copy of the page. Clear it in System → Maintenance → Clear Cache and in any caching extension or service you use.

An image has empty bands at its sides, or looks stretched.

The image is a different shape from the slider, and its Fit Mode decides what happens. Contain and Scale-Down leave empty bands; Fill stretches. Choose Cover to fill the slider and crop the edges instead, or give the slider a shape that matches your images with a custom aspect ratio.

The page jumps while the slider loads.

SwiftSlider reserves the slider's space before anything loads, so a jump usually comes from something around it. Check whether your template or another extension sets a height on the module's container, or adds content above the slider after the page loads. Testing the page in PageSpeed Insights and opening Layout shift culprits shows which element moved.

The slide text is hard to read.

Choose a Content Style that puts a background behind the text, or change the Text Color. With Light Box, choose a dark text colour, because the default is white. See the section called “Keep Text Readable Over Images”. On phones, if the text covers too much of the image, switch on Hide Text on Mobile.

The slide's button doesn't appear.

A button needs a Button URL. A label on its own isn't shown.

3. How it behaves

The effect I want isn't in the Effects list.

Each effect works with only some transitions, and the list shows only those that work with the chosen Transition. Change the transition first. See Appendix C, Transitions and Effects.

Autoplay doesn't move to the next slide.

Autoplay pauses while the pointer is over the slider, after the slider is touched, and while keyboard focus is inside it. Move the pointer away, or touch or click elsewhere on the page. It also stays off on devices set to reduce motion, and doesn't start on a below-the-fold slider until it nears the screen. See Autoplay.

Swiping doesn't work.

Swiping works on touchscreens only, and needs a mostly sideways movement of a few centimetres. On a desktop computer, use the previous and next buttons, the dots or the arrow keys.

Slides change instantly, without any transition.

Your device is set to reduce motion, and SwiftSlider respects it. Visitors without that setting see the transition. See the section called “Motion and Accessibility”.

4. Page speed

PageSpeed Insights says the Largest Contentful Paint image was lazily loaded.

The slider is set to Below the fold but is visible when the page opens. Set its Slider Position to Above the fold.

The first slide is the LCP element, but LCP is still slow.

Check that:

  • The first slide's status is Optimized. An unoptimized slide sends your original image.

  • The slider is set to Above the fold.

  • Image Delivery is Optimized for speed, and Generate AVIF and Generate WebP are on.

  • Nothing else on the page delays it. Large style sheets, fonts or scripts that load before the slider slow down everything after them, and server response time adds to every page. These are outside SwiftSlider; a page optimization extension such as JCH Optimize can help with them.

PageSpeed Insights says to properly size images in the slider.

The images sent are larger than the space they fill, which usually means the slider is much narrower than your largest breakpoint. Add a breakpoint close to the slider's actual width, as described in the section called “Change the Responsive Breakpoints”, and save the slides again.