• I’m getting a fatal error. Whole site is down. I do not know how to proceed. I using most recent wp with genesis framework and dynamic-gen child theme.

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “dynamik_activate” not found or invalid function name in /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php:326 Stack trace: #0 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #1 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #2 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/theme.php(3504): do_action() #3 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php(324): check_theme_switched() #4 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-settings.php(727): do_action() #7 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-config.php(127): require_once(‘…’) #8 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-load.php(50): require_once(‘…’) #9 /usr/home/csforum/public_html/cri/nacr/wordpress/wp-blog-header.php(13): require_once(‘…’) #10 /usr/home/csforum/public_html/cri/nacr/index.php(4): require(‘…’) #11 {main} thrown in /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php on line 326

    I’d be grateful for any advice. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dryanwp

    (@dryanwp)

    here are lines 320-329 from /usr/home/csforum/public_html/cri/nacr/wordpress/wp-includes/class-wp-hook.php

    // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );

    Thanks!

    Your site is down because WordPress is trying to call a function called “dynamik_activate” that doesn’t exist, likely due to a problem with your Dynamic child theme. To fix this immediately, you need to access your site files through FTP or your hosting file manager and rename the folder “dynamic-gen” (located in wp-content/themes/) to “dynamic-gen-old” – this will force WordPress to switch to a default theme and bring your site back online. Once your site is working again, you can reactivate your theme after checking for updates or fixing the missing function.

    Moderator threadi

    (@threadi)

    I can currently access your website, but it doesn’t look very nice because something probably can’t be loaded. Or have you already solved the actual problem?

    The message you mentioned indicates that a function called “dynamik_activate” cannot be loaded. This is not part of WordPress and cannot currently be found in the WordPress repository for plugins or themes. It probably comes from a custom-developed theme or plugin. You therefore have the following options:

    • Contact the developer of the custom components. They should be able to solve the problem for you.
    • Find and deactivate the custom components. You should be able to do this in the backend.

    If you need personal assistance with the solution, you will certainly find it here: https://jobs.wordpress.net

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

The topic ‘fatal error’ is closed to new replies.