Support » Fixing WordPress » Fatal error: Uncaught TypeError

  • Deprecated: Required parameter $args follows optional parameter $depth in C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-initialize.php on line 195
      
    Deprecated: Required parameter $output follows optional parameter $depth in C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-initialize.php on line 195
    
    Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-options.php:58 Stack trace: #0 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-options.php(761): GOVPH->__construct() #1 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-includes\class-wp-hook.php(303): govph_options_init('') #2 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-admin\admin.php(175): do_action('admin_init') #5 C:\xampp\htdocs\www.ambaguio.gov.ph\wp-admin\customize.php(13): require_once('C:\\xampp\\htdocs...') #6 {main} thrown in C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-options.php on line 58
    • This topic was modified 3 weeks, 2 days ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

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

Viewing 1 replies (of 1 total)
  • Hi @ambaguioturismo

    You are developing in localhost, so I can’t access to the website. If you take a look at the error message, you can see you are passing incorrect values to some functions like

    sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in C:\xampp\htdocs\www.ambaguio.gov.ph\wp-content\themes\gwt-wordpress-25.3.3\inc\function-options.php:58

    Please, review the error output to resolve the problems in your theme.

    Have a nice day

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.