[wp-trac] [WordPress Trac] #54355: Serialization of 'Closure' is not allowed
WordPress Trac
noreply at wordpress.org
Mon Nov 8 08:46:13 UTC 2021
#54355: Serialization of 'Closure' is not allowed
---------------------------+------------------------------
Reporter: cambridgeandy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.8.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by praem90):
PHP can't serialize closure directly. We can use
[https://github.com/opis/closure] package for this support.
So, it recommended to use something like below may help to fix your
problem.
{{{#!php
<?php
register_activation_hook(WPMP_BASE_FILE_NAME, array($initialize_service,
'activate'))
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54355#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list