• Resolved Brandon Kramer

    (@brandonkramer)


    Hi there,

    We recently used Shortpixel (5.0.3) on a new site and it’s getting stuck during the first step of the bulk process after it found a specific amount of items.

    See screenshot:
    https://monosnap.com/file/xkHujW7MKhYl9Zfj9FoUraMzGoBcrY

    It stops at “3.772” items every time the bulk process is initiated.

    The logs is showing me a 500 Fatal error:

    [22-Jun-2022 07:37:01 UTC] PHP Fatal error:  Uncaught Error: Call to a member function getTimestamp() on bool in /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Model/Image/MediaLibraryModel.php:1917
    Stack trace:
    #0 /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Model/Image/MediaLibraryModel.php(587): ShortPixel\Model\Image\MediaLibraryModel->checkLegacy()
    #1 /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Model/Image/MediaLibraryModel.php(51): ShortPixel\Model\Image\MediaLibraryModel->loadMeta()
    #2 /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Controller/FileSystemController.php(49): ShortPixel\Model\Image\MediaLibraryModel->__construct()
    #3 /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Controller/FileSystemController.php(80): ShortPixel\Controller\FileSystemCont in /**/public_html/wp-content/plugins/shortpixel-image-optimiser/class/Model/Image/MediaLibraryModel.php on line 1917

    Apparently (by looking at the source code from “class/Model/Image/MediaLibraryModel.php” on line 1917), something goes wrong with the date from the metadata of one of our images? Perhaps there is a problem with this particular image’s metadata. But Shortpixel can’t handle this problem which results in a 500 error.

    The following function
    $newdate = \DateTime::createFromFormat('Y-m-d H:i:s', $data['date']);
    is returning a “false” bool with this image so when the following function is triggered:
    $newdate->getTimestamp();
    It results in an error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not sure if my problem is the same, but I’m also having errors during bulk processing. It seems to run into permission errors for creating the backup directories, but only on some monthly folders, others work fine. (This was for 2020 images, so not newly processed images). If I create the folder manually and rerun the bulk tool for that image, it says “Not Processable: Fatal error preventing processing”. Those are the messages I’m seeing directly in the media library for the images that failed to process.

    This has happened on two sites now, both on Siteground and using SG optimizer (with the image settings all left off so ShortPixel can work properly). I believe this is a new issue since the update, because I’ve gone through this process plenty of times before now with exactly the same config and never had errors.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @brandonkramer,

    Could you please update to version 5.0.4 and try again? I believe the issue is fixed there.

    Thank you,

    @brandonkramer, please open a new thread with your issue, www.remarpro.com rules ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘500 Error during bulk process’ is closed to new replies.