• Resolved Gogster

    (@gogster)


    Plugin version 3.2.3.1

    PHP message: PHP Fatal error: Uncaught TypeError: SimplyBook\Controllers\TrialExpirationController::getTrialInfo(): Return value must be of type ?array, string returned in wp-content/plugins/simplybook-error/app/Controllers/TrialExpirationController.php:142

    Updated WP and plugin to latest versions and it causes a fatal error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @gogster,

    Sorry to hear about the issue. Does this concern a Multisite WordPress installation or a ‘regular’ single-site install?

    At first glance, it seems that such an issue can occur in combination with object caching. Do you to happen to use any caching solutions like Redis/Memcached on this environment, or similar? If so, could you try purging any such caches on your environment, to see if that might already correct the behavior?

    We’ll also have a look at the cache validation in the plugin in an upcoming release to catch/handle such situations, but the above is what I’d recommend trying for now.

    Kind regards, Jarno

    Thread Starter Gogster

    (@gogster)

    Hi, it’s a regular single-site install. I can confirm that it is in relation to the redis object cache plugin https://en-gb.ww.wp.xz.cn/plugins/redis-cache/. If I delete object-cache.php I can access the admin again but if I re-enable object caching I’m back to square one.

    I tried disabling SB and enabling redis cache, flush the cache then re-enabling SB but the issue came back so I cannot have object caching without breaking the site now.

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @gogster,

    Thanks for confirming this. Our suspicion is that Object Cache serializes an array to a string, and the plugin doesn’t accept a string here. This likely causes the issue to recur as soon as the cache is rebuilt.

    We’ve prepared a fix for the above issue, please find that version of plugin attached below. If this is indeed what’s happening here: it should solve the error.

    Download: https://handover.blue/get/8efafab6-ac45-4c2d-a7bb-d8ba00980bec
    Install: Plugins -> Add New -> Upload Plugin -> “Replace”

    Let me know about your findings!

    Kind regards, Jarno

    Thread Starter Gogster

    (@gogster)

    Yes, that plugin works. Thank you for your prompt attention.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP error after upgrading to WP 6.9’ is closed to new replies.