Fatal interaction with WP-Optimize? #869
-
It appears something ActivityPub is doing, pokes some un-handled edge case in WP-Optimize. I've also posted in WP-Optimize's support area: https://wordpress.org/support/topic/fatal-error-4728/ Encountering an error in WP-Optimize code, but toggling the ActivityPub plugin off fixes the problem. WP v6.6.1, latest WP-Optimize, ActivityPub v3.1.0
I have two separate Wordpress installations (not multi-site, fully separate) exhibiting the same error. Both sites have the ActivityPub plugin installed. The error occurs only on the page (on each site) where I Have an ActivityPub shortcode. Disabling the ActivityPub plugin enables the page to load without this error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I have checked the minify frontend class and it seems that there is a dependency mechanism that is triggering the error, but I can't see any relations to the ActivityPub plugin. Btw. it is currently not possible to use the caching mechanism of WP-Optimize together with the ActivityPub plugin. Here is why: https://wordpress.org/support/topic/caching-conflict-between-wordpress-post-and-other-output/ |
Beta Was this translation helpful? Give feedback.
@pfefferle Update: WP-Optimize v4.0.0 now uses
preg_match('/(application\/(ld\+json|activity\+json|json))/i', ...)
. Ref: https://plugins.trac.wordpress.org/browser/wp-optimize/tags/4.0.0/cache/file-based-page-cache-functions.php#L634