• Resolved kellywilliamsphotographer

    (@kellywilliamsphotographer)


    Hi. I just installed Smush (free version) and am in the process of optimizing all of my images. Unfortunately, the plugin seems to be getting stuck after 100 images are bulk compressed. After hitting the ‘resume’ button for two bulk smush sessions, the plugin seems to stall at 101 images to compress. I tried to then compress my images individually in my media gallery, and keep getting conflicting numbers of images still needing to be compressed. The number of images left to be compressed keeps going up even though I have individually compressed images.

    https://blog.kellywilliamsphotographer.com/

    Thank you in advance for your time.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kellywilliamsphotographer

    Sorry to hear you are having this issue.

    Could you please enable the debug mode following this guide:
    https://premium.wpmudev.org/blog/debugging-wordpress-how-to-use-wp_debug/

    Once done, run the bulk Smush again, the same problem probably happen, but this time check on the wp-content folder for a debug.log file, download it, upload to Google Drive and share the link.

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Hi Patrick,

    Thank you for your kind response. I entered debug mode and restarted the bulk smush process. This time the system stalled at 111 images and the following error codes were at the top of the page:

    Notice: Constant WP_CONTENT_URL already defined in /home/blogke5/public_html/wp-config.php on line 80

    Notice: Constant COOKIE_DOMAIN already defined in /home/blogke5/public_html/wp-config.php on line 81

    Warning: Cannot modify header information – headers already sent by (output started at /home/blogke5/public_html/wp-config.php:80) in /home/blogke5/public_html/wp-includes/functions.php on line 6360

    Warning: Cannot modify header information – headers already sent by (output started at /home/blogke5/public_html/wp-config.php:80) in /home/blogke5/public_html/wp-admin/includes/misc.php on line 1310

    Warning: Cannot modify header information – headers already sent by (output started at /home/blogke5/public_html/wp-config.php:80) in /home/blogke5/public_html/wp-admin/admin-header.php on line 9

    Unfortunately, I could not find a debug.log file. I am not that computer savvy, though I did look in the wp-content folder.

    Let me know the next step.

    Cheers,

    Kelly

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @kellywilliamsphotographer

    Thanks for response!

    Unfortunately, these messages don’t help much and don’t seem related to the case. However, I’m a bit confused – are you sure you are using free version of the plugin?

    Free version shouldn’t even let you smush 100 images in one go but rather should stop after 50 images. Only Pro version would let you smush all images in one run. Please note that even if you install the free version but the site is connected to your WPMU DEV Account using WPMU DEV Dashboard plugin – then Smush unlocks its Pro features and works like a Pro version. But in this case you should also create support ticket for Pro plugin at our support here:

    https://premium.wpmudev.org

    Or do you mean that even though you hit “resume twice” – after each 50 images – it still gets stuck after 100 images smushed?

    If so, that would mean that most likely at that point either server resources get overloaded or, more likely, there’s something wrong with some specific image(s). That might be significantly corrupted file or issue with information about the image in the database.

    Can you tell me, please, if you are or were using any other image optimization plugins on these images before? How many images in total are there listed in media library (go to “Media” page and select “Images” from the drop-down list at the top instead of “All media items” to see the number)?

    Also if you go to Smush bulk-smushing page and switch “Image Sizes” option from “All” to “Custom” – how many included image sizes does it show there?

    Let me know, please.

    Kind regards,
    Adam

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Hi Adam,

    Apologies for the confusion — I mean that I hit Smush twice. I have used ShortPixel and Smush in the past but there are no other compression plugins working at this time. Smush lists 9497 images to be smushed, but my media library lists 13,451 images in total.

    I will take these error messages to my hosting company (InMotion) to see if they can solve the mystery. In the meantime, is there a way to see what specific image might be causing the stall, or to see what images are being compressed? There are 13 images sizes listed for the custom feature.

    Thank you,

    Kelly

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    I just got off the line with InMotion Hosting, and they could not find the debug file as well.

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    I just tried to run Smush with all other plugins disabled, and the same issue happens: I push Smush twice (once after 50 image compressions, and again after 100), and the plugin gets stuck at 102 images compressed.

    Hi @kellywilliamsphotographer,

    When the optimization gets stuck how long do you wait before you stop the process or leave the page? If there are some broken images on your installation it could take couple of minutes while Smush is trying to fetch the image before it gives up and moves to the next one.

    Do you see any messages shown below the progress bar few minutes after the process stops?

    Could you share a screenshot of how the Smush page looks when it gets stuck?

    Do you have any images in your media library that don’t show thumbnails?

    I’m asking all of this because what you’re explaining suggests that there’s one or more broken image which causes Smush to stall the process.

    Cheers,
    Predrag

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Hi Predrag,

    I generally wait at least 15 minutes, but as an experiment, I waited a full 30 minutes before moving to my media gallery to Smush images individually. I did not receive any error messages, and I will send you a screenshot of the main Smush dashboard. I am going through my media gallery now, but as of yet, have not found any images not showing thumbnails. The missing thumbnails was an issue when I used Smush previously, but it doesn’t seem to be the case this time.

    Kelly

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kellywilliamsphotographer

    Can you please wait until it stuck again, but this time click on the right button of the mouse > inspect, it will open the browser console, click on the “console” tab and send a screenshot from the browser console?

    https://monosnap.com/file/GMAsv1RaXX8BsTf6sVal6QfLY7GEBs

    To find more about browser console:
    https://developer.mozilla.org/en-US/docs/Tools/Browser_Console

    Best Regards
    Patrick Freitas

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @kellywilliamsphotographer thank you for providing the screenshot.

    It looks like the issue is being caused by some images loading over HTTP instead of HTTPS.

    In this case, let’s try the following:
    1. Go to the site files
    2. In the code editor, open the file wp-config.php
    3. Add the following lines

     define( 'WP_HOME', 'https://blog.kellywilliamsphotographer.com/' );
     define( 'WP_SITEURL', 'https://blog.kellywilliamsphotographer.com/' );

    It should look like this https://monosnap.com/file/91evHvn2bQkMTeuYXYrCTfVpHQHquT
    4. Click save

    Once you do this, try to run the bulk smush again and if it gets stuck, please share the console screenshot again to see if there are new errors present.

    Regards,

    Jorge

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Thank you so much! I will be adding this now.

    Thread Starter kellywilliamsphotographer

    (@kellywilliamsphotographer)

    Unfortunately, the same situation seems to be happening. I inserted the code as requested (see photos). Console screenshot here:

    https://www.pinterest.com/kwilliamsphotog/smush-tech/

    Hi @kellywilliamsphotographer,

    Could you please get in touch with your hosting provider and check if there’s anything in their logs or in WAF that is blocking this IP: 159.89.254.12

    This is the IP used by Smush service and I’m wondering if after specific number of requests it got blocked somewhere on their end which could explain the issue.
    If that is indeed the case, ask them to put the IP on their allow list and hopefully that will address the issue.

    Let us know how it goes.

    Cheers,
    Predrag

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Smush getting stuck’ is closed to new replies.