• Resolved samco327

    (@samco327)


    I’ve got a website using the Avada theme, which has a builder tool and lots of stuff in it. When I use the Content Progress plugin, it breaks a page in the Avada Library. Instead of showing me a block type in the table, I get an error that says “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    This is the error I get in the email:

    Error Details
    =============
    An error of type E_ERROR was caused in line 143 of the file /nas/content/live/mywebsite/wp-content/plugins/content-progress/content-progress.php. Error message: Uncaught ArgumentCountError: Too few arguments to function cp_return_value(), 2 passed in /nas/content/live/mywebsite/wp-includes/class-wp-hook.php on line 292 and exactly 3 expected in /nas/content/live/mywebsite/wp-content/plugins/content-progress/content-progress.php:143
    Stack trace:
    #0 /nas/content/live/mywebsite/wp-includes/class-wp-hook.php(292): cp_return_value(‘type’, Array)
    #1 /nas/content/live/mywebsite/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array)
    #2 /nas/content/live/mywebsite/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /nas/content/live/mywebsite/wp-content/plugins/fusion-builder/inc/class-fusion-builder-library-table.php(257): do_action(‘manage_fusion_e…’, ‘type’, Array)
    #4 /nas/content/live/mywebsite/wp-admin/includes/class-wp-list-table.php(1447): Fusion_Builder_Library_Table->column_default(Array, ‘type’)
    #5 /nas/content/live/mywebsite/wp-admin/includes/class-wp-list-table.php(1387): WP_List_Table->single_row_columns(Array)
    #6 /nas/content/live/mywebsit

    (and, yes, it cuts off here in the log, so it’s nice and incomplete)

    Long story short, if i whip up an instance with just plain avada (7.3.1) and this plugin, I get the same error. So, it’s likely an incompatibility, and I’m sharing it with both, in hopes that the error message means something to you and it can be fixed.

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter samco327

    (@samco327)

    the hook in content-progress.php, at line 164 – add_action('admin_init', 'cp_add'); – is the offender.

    commented it out. and that’s good enough of a fix for my purposes.

    hopefully save someone else a little time when hunting around.

    • This reply was modified 4 years, 9 months ago by samco327. Reason: typo
Viewing 1 replies (of 1 total)

The topic ‘Buggy with Avada’ is closed to new replies.