• Resolved genpanda

    (@genpanda)


    I’ve noticed this error for quite some time. It triggers when I first go into my admin dashboard and will fire off when I try bulk optimizing images.

    [08-Jul-2020 14:13:03 UTC] PHP Notice: unserialize(): Error at offset 987 of 2311 bytes in /plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 100
    [08-Jul-2020 14:13:03 UTC] PHP Notice: unserialize(): Error at offset 680 of 2324 bytes in /plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 100
    [08-Jul-2020 14:13:03 UTC] PHP Notice: unserialize(): Error at offset 686 of 2343 bytes in /plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 100
    [08-Jul-2020 14:13:03 UTC] PHP Notice: unserialize(): Error at offset 482 of 1056 bytes in /plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 100
    [08-Jul-2020 14:13:03 UTC] PHP Notice: unserialize(): Error at offset 949 of 2268 bytes in /plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 100

    could someone help figure out how this can be fixed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tinify

    (@tinify)

    Hi there,

    Unfortunately you are the first person to report this issue so we can’t give you a straight solution. That said we did a bit of research and we think it might be related to other plugins. Could you please disable all other non-essential plugin and try to run the bulk compression again and see if you still get the error?

    Does the error prevent the bulk compressions entirely?

    If you are still running into the issue please contact [email protected] and a developer will assist you further.

    Thanks!

    Thread Starter genpanda

    (@genpanda)

    Hi,
    thanks for the response. I did try disabling all the plugins and even switching my theme to see if it would remove the error but it seems to persist.
    This error doesn’t seem to affect the bulk optimization, so besides filling my error logs, there isn’t really any other issue from what I’m noticing. I’ve been reading up on the general error and I dunno if it has to do with my php version being 7.3 and some data conflicting in that sense.
    is there a way to at least stop tinify from loading on the main dashboard page? At the very least that will reduce the amount of times the error gets triggered. Disabling the widget through Screen Options doesn’t stop tinify from loading.

    Plugin Author TinyPNG

    (@tinypng)

    Hi, thank you for the info.

    I found the bug in PHP 7.3 that is likely causing the warnings:

    https://bugs.php.net/bug.php?id=77302

    Since the error is a PHP Notice, I wouldn’t expect it to appear unless your WP_DEBUG flag is set to true. Is that the case?

    Hope to hear from you soon,

    Thread Starter genpanda

    (@genpanda)

    Hi there,
    yes debug is on for the purpose of making sure there were no errors on the current site I was testing which is where the notices appeared.

    Plugin Author TinyPNG

    (@tinypng)

    Hi,

    Ok that explains it then. Despite the notices the performance and functionality of the plugin shouldn’t be affected.

    We’ll take a look to see if we can mitigate the PHP bug and prevent the notices from appearing with WP_DEBUG mode on in the next plugin update.

    Thank you for making us aware of this!

    Thread Starter genpanda

    (@genpanda)

    Thank you, that would be much appreciated! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Notice: unserialize’ is closed to new replies.