• Resolved heartitwebdesign

    (@heartitwebdesign)


    following error occurs on plugin update this morning, i have updated to 2.0.3 and cleared any caching, site is otherwise up to date:

    Fatal error: Uncaught Exception: Serialization of ‘Closure’ is not allowed in /home/customer/www/public_html/wp-includes/functions.php:625 Stack trace: #0 /home/customer/www/public_html/wp-includes/functions.php(625): serialize(Array) #1 /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php(125): maybe_serialize(Array) #2 /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php(193): ContentControl\Services\Restrictions->get_cache_key(NULL) #3 /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php(227): ContentControl\Services\Restrictions->get_applicable_restriction(NULL) #4 /home/customer/www/public_html/wp-content/plugins/content-control/inc/functions/developers.php(29): ContentControl\Services\Restrictions->has_applicable_restrictions(NULL) #5 /home/customer/www/captivating.me.uk/ in /home/customer/www/public_html/wp-includes/functions.php on line 625

    There has been a critical error on this website.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @heartitwebdesign – Sorry to hear that. I’m looking into how to prevent such an error, but in the mean time can you possibly test the Health Check plugins Troubleshooting mode on the plugin to see if the issue goes away?

    If it does, can you then reactivate other plugins & themes a few at a time to see which one might be interacting with it?

    I ask because the error indicates that some variable in the $wp_query args for your site has been replaced with a function instead of the value. Either its not intentional and we just happened to have the code that caused it to be a problem, or we need to account for that type of scenario if there is a valid use case.

    Look for a patch shortly to address this.

    Plugin Author Daniel Iser

    (@danieliser)

    @heartitwebdesign Patch available via v2.0.4

    Thread Starter heartitwebdesign

    (@heartitwebdesign)

    Hi Daniel,

    Upgraded, same result but different message:

    Fatal error: Uncaught Error: Call to undefined function ContentControlPro\plugin() in /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php:134 Stack trace: #0 /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php(203): ContentControl\Services\Restrictions->get_cache_key(NULL) #1 /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php(237): ContentControl\Services\Restrictions->get_applicable_restriction(NULL) #2 /home/customer/www/public_html/wp-content/plugins/content-control/inc/functions/developers.php(29): ContentControl\Services\Restrictions->has_applicable_restrictions(NULL) #3 /home/customer/www/public_html/wp-content/plugins/content-control/inc/functions/developers.php(57): ContentControl\content_has_restrictions(NULL) #4 /home/customer/www/public_html/wp-content/plugins/co in /home/customer/www/public_html/wp-content/plugins/content-control/classes/Services/Restrictions.php on line 134

    Plugin Author Daniel Iser

    (@danieliser)

    @heartitwebdesign – Ugg, sorry to hear that.

    For reference can you give me the version of PHP & WP you have currently.

    Rest assured I will be working to smooth out all the kinks today.

    Plugin Author Daniel Iser

    (@danieliser)

    Ok I have this patched, look for v2.0.5 in just a bit (gonna work on other issues before I publish this one).

    Thread Starter heartitwebdesign

    (@heartitwebdesign)

    v2.0.5 fixed my issue, appreciate the speedy work, thanks!

    Plugin Author Daniel Iser

    (@danieliser)

    @heartitwebdesign – Awesome, glad to hear it.

    Please take a moment to rate & review the plugin and or support to spread the word.

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

The topic ‘Fatal PHP Error’ is closed to new replies.