whusnoopy
Forum Replies Created
-
Forum: Reviews
In reply to: [Collapsing Archives] Great until PHP 8Thanks to @deborahfitchett , it works after fix the typo
There are two places need to fix
change line 42 on
/wp-content/plugins/collapsing-archives/collapsArch.phpfromif (!is_admin()) { wp_enqueue_script('jquery'); add_action( 'wp_enqueue_scripts', array( 'collapsArch', 'enqueue_scripts' ) ); } else {to
if (!is_admin()) { wp_enqueue_script('jquery'); add_action( 'wp_head', array( 'collapsArch', 'get_head' ) ); } else {and change line 27 on
/wp-content/plugins/collapsing-archives/defaults.phpfrom'post_type' => 'post', 'taxoncmy' => 'category', 'postTitleLength' => '');to
'post_type' => 'post', 'taxonomy' => 'category', 'postTitleLength' => '');- This reply was modified 3 years, 4 months ago by whusnoopy.
Forum: Reviews
In reply to: [Collapsing Archives] Great until PHP 8I’ve tried to find any array using
{}inwp-content/plugins/collapse-archives/None of them use incorrect
{}which should be[]According to the error message, it says
2022/08/31 16:01:50 [error] 1088#1088: *266661 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class collapsArch does not have a method "enqueue_scripts" in /home/foo/www/blog/wp-includes/class-wp-hook.php:307seems like it crashed because WordPress changed the way to call plugin? This plugin register in an incorrect way?
Forum: Reviews
In reply to: [Collapsing Archives] Great until PHP 8I’m looking for the fix but not know PHP too much, is it ok to share the changes with gist or somewhere like it?