• Resolved carterlando

    (@carterlando)


    Hi! When using your plugin along with the object cache offered by Docket Cache, it stops working. This is the error:

    Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/ajax-get.php:29

    I was able to patch the plugin and make it work along with Docket Cache with the following code replacement (using maybe_unserialize instead of unserialize)

    'data' => maybe_unserialize(isset($meta[META_PREFIX.'data'][0]) ? $meta[META_PREFIX.'data'][0] : serialize($def['data'])),
    'thumbnail' => maybe_unserialize(isset($meta[META_PREFIX.'thumbnail'][0]) ? $meta[META_PREFIX.'thumbnail'][0] : serialize($def['thumbnail'])),
    'props' => maybe_unserialize(isset($meta[META_PREFIX.'props'][0]) ? $meta[META_PREFIX.'props'][0] : serialize($def['props'])),
    'controlProps' => maybe_unserialize(isset($meta[META_PREFIX.'controlProps'][0]) ? $meta[META_PREFIX.'controlProps'][0] : serialize($def['controlProps'])),


    Can you please consider fixing this issue in the next version of the plugin? Thank you!

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

The topic ‘conflict with object cache’ is closed to new replies.