Plugin session writes make subrequests fail
-
This plugin opens (but does not close) a PHP session for each request, which makes WordPress “loopback” requests fail because the sloopback request can’t lock the same session ID. This manifests as failures in the health check (“Your Site Could Not Complete a Loopback Request”) and slow requests when using [for example] the AMP plugin.
The technical cause of the problem is that the file at “/cm-list-manager-pro/plugin/notices/AdminNoticeManager.php” uses start_session(), but does not use session_write_close() after each write or read to avoid session deadlocks, as explained in <https://ma.ttias.be/php-session-locking-prevent-sessions-blocking-in-requests/>. Adding session_write_close() would presumably solve it.
Can this be fixed?
- The topic ‘Plugin session writes make subrequests fail’ is closed to new replies.