cconstantine
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Database Cleaner] How to schedule optimizing of database tables?Thanks!
@vupdraft were you also talking to me with that reply?
Because… uh, no. WP-Optimize is passing a Null to a PHP function. That’s a PHP API violation. Other plugins misbehaving should never cause one’s code to do that.
Unfortunately, I don’t have time to wade around in this.
Do you have plans to fix the bug (write edge-case handling to avert calling with invalid argument)? I understand if you don’t plan to change it; it’s easy enough for me to work around by simply uninstalling WP-Optimize.
- This reply was modified 7 months ago by cconstantine.
Yes, the pages (on both sites) load fine when I disable minification and enable the ActivityPub plugin.
I’ve also started a discussion in the ActivityPub plugin support, https://github.com/Automattic/wordpress-activitypub/discussions/869
I am running v3.5.0 of the plugin and I’m seeing the same error as the OP…
[20-Aug-2024 11:39:30 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #1 ($array) must be of type array, string given in /home/open7/public_html/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php:1383
Stack trace:
#0 /home/open7/public_html/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php(1383): implode('', NULL)
#1 /home/open7/public_html/wp-includes/class-wp-hook.php(324): WP_Optimize_Minify_Front_End->process_header_scripts('')
#2 /home/open7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/open7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/open7/public_html/wp-includes/script-loader.php(2215): do_action('wp_print_script...')
#5 /home/open7/public_html/wp-includes/class-wp-hook.php(324): wp_print_head_scripts('')
#6 /home/open7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Array, Array)
#7 /home/open7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/open7/public_html/wp-includes/general-template.php(3065): do_action('wp_head')
#9 /home/open7/public_html/wp-includes/template-canvas.php(17): wp_head()
#10 /home/open7/public_html/wp-includes/template-loader.php(106): include('/home/open7/pub...')
#11 /home/open7/public_html/wp-blog-header.php(19): require_once('/home/open7/pub...')
#12 /home/open7/public_html/index.php(17): require('/home/open7/pub...')
#13 {main}
thrown in /home/open7/public_html/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-front-end.php on line 1383I 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.
So it appears something ActivityPub is doing, pokes some un-handled edge case in WP-Optimize??
#winning
Thanks for the breadcrumbs! That makes me think…
Is there a hook in the plugin, that is just before the plugin decides if a post can be displayed?
I could hook in my code there. To change a post to protected, just before it’s checked for display.
I’m going to send emails “new post, you have X days to read it” to non-members. Then flip to blocked (either doing it by hand, or with hooked in code) that post after the number of days. So freebie subscribers can read if they’re quick. Members can of course read anything any time.
- This reply was modified 9 months, 4 weeks ago by cconstantine.
…is that “status” change, the wp-members status?
I want to automatically make posts members-only (WP-Membership plugin managed members) after a certain time, without having to go in by hand and change them. So I can write a post, schedule it for posting having it be public, then automatically have it be members-only at a later date…
?? that was the _first_ thing I tried… when i drag it toward the right, the column of post blocks scrolls very far to the right, even as the drag-n-drop pointer is hovering over the right-side drawer…
this feels like a gutenberg, WP or Safari bug then. ˉ\_(ツ)_/ˉ
yes
I have tried deactivating all plugins, and switched back to the 2023 theme. …organize series’s meta box is still below my post’s body blocks. ??
Yes, that’s what I’m referring to. It’s below the post’s blocks for me…
Thanks ??
Not having the navigation appear multiple times in the post display. (Not having OrgSeries templatize posts included via display-posts shortcode.)
! It’s caching related.
I purged the cache for the page containing the shortcode, and the problem is resolved. The newest post appears when I’m not logged in. In hindsight, this makes perfect sense.