• I really need help. I’m new-ish at this and don’t know what to do. I’m getting this fatal error on my site.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function add_action(), 1 passed in /home/willowr0/public_html/goodwayauto.com/wp-content/themes/skt-solar-energy/functions.php on line 17 and at least 2 expected in /home/willowr0/public_html/goodwayauto.com/wp-includes/plugin.php:405 Stack trace: #0 /home/willowr0/public_html/goodwayauto.com/wp-content/themes/skt-solar-energy/functions.php(17): add_action(‘after_setup_the…’) #1 /home/willowr0/public_html/goodwayauto.com/wp-settings.php(479): include(‘/home/willowr0/…’) #2 /home/willowr0/public_html/goodwayauto.com/wp-config.php(90): require_once(‘/home/willowr0/…’) #3 /home/willowr0/public_html/goodwayauto.com/wp-load.php(37): require_once(‘/home/willowr0/…’) #4 /home/willowr0/public_html/goodwayauto.com/wp-admin/admin.php(34): require_once(‘/home/willowr0/…’) #5 /home/willowr0/public_html/goodwayauto.com/wp-admin/themes.php(10): require_once(‘/home/willowr0/…’) #6 {main} thrown in /home/willowr0/public_html/goodwayauto.com/wp-includes/plugin.php on line 405

    I have looked at PhpMyAdmin to remove active plugins and there is no section for WordPress plugins. I’m having trouble accessing it with FTP and I can’t get to my wp-admin either. I was using the SKT Solar Energy theme and this all started with this error

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘custom_theme_features’ not found or invalid function name in /home/willowr0/public_html/goodwayauto.com/wp-includes/class-wp-hook.php on line 286

    I installed the String Locator plugin to find the error and it crashed from there.

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Things are difficult if you cannot FTP. Perhaps try your hosting account’s file manager. They have been reliable if limited IME. It looks like your theme is causing multiple issues. To regain access, it must be disabled. To do so, rename its folder in /wp-content/themes/ using FTP or hosting file manager. WP will then use one of the twenty* or an internal backup theme when it cannot find the theme folder because it had been renamed.

    You should be able to access your site normally, though it will appear strange because your theme was changed. Get back with the theme developer to get the PHP errors it is throwing corrected.

Viewing 1 replies (of 1 total)

The topic ‘Help! Fatal error: Uncaught ArgumentCountError’ is closed to new replies.