Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks 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.php from

    if (!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.php from

    'post_type' => 'post',
    'taxoncmy' => 'category',
    'postTitleLength' => '');

    to

    'post_type' => 'post',
    'taxonomy' => 'category',
    'postTitleLength' => '');
    • This reply was modified 3 years, 4 months ago by whusnoopy.

    I’ve tried to find any array using {} in wp-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:307

    seems like it crashed because WordPress changed the way to call plugin? This plugin register in an incorrect way?

    I’m looking for the fix but not know PHP too much, is it ok to share the changes with gist or somewhere like it?

Viewing 3 replies - 1 through 3 (of 3 total)