• I’m trying to change the default theme on my localhost, but even when I try to activate one of the themes installed by default, such as twentyseventeen, I get the following error:

    Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in C:\xampp\htdocs\wp\wp-includes\widgets.php:1265 Stack trace: #0 C:\xampp\htdocs\wp\wp-includes\widgets.php(1265): array_merge(wp_inactive_widgets: Array, blog-widget-area: Array, post-widget-area: Array, page-widget-area: Array, shop-widget-area: Array, side-widget-area: Array, basket-widget-area: Array, footer-widget-area: Array) #1 C:\xampp\htdocs\wp\wp-includes\class-wp-customize-widgets.php(279): retrieve_widgets(‘customize’) #2 C:\xampp\htdocs\wp\wp-includes\class-wp-hook.php(287): WP_Customize_Widgets->override_sidebars_widgets_for_theme_switch(”) #3 C:\xampp\htdocs\wp\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #4 C:\xampp\htdocs\wp\wp-includes\plugin.php(478): WP_Hook->do_action(Array) #5 C:\xampp\htdocs\wp\wp-settings.php(568): do_action(‘wp_loaded’) #6 C:\xampp\htdocs\wp\wp-config.php(90): require_once(‘C:\\xampp\\htdocs…’) #7 C:\xampp\htdocs\wp\wp-load.php(37): require_once(‘C:\\xampp\\htdocs…’) #8 C:\xampp\htdocs\wp\wp-admin\admin.php(34): require_once(‘C:\\xampp\\htdocs…’) #9 C:\xampp\htdocs\wp\wp-admin\customize.php(13): require_once(‘C:\\xampp\\htdocs…’) #10 {main} thrown in C:\xampp\htdocs\wp\wp-includes\widgets.php on line 1265

    My xampp version is the latest one with PHP 8, and MariaDB.
    Also, the WordPress I have is the latest version. I just downloaded it yesterday.

    Edit:
    I found out that there are several other errors on my site. For example, even after setting the home page from the dashboard, I still see Page Not Found. This also applies to another page I manually created.
    On that very page I also see:
    Warning: get_comment(): Argument #1 ($comment) must be passed by reference, value given in C:\xampp\htdocs\wp\wp-includes\class-wp-comment-query.php on line 484

    • This topic was modified 3 years, 11 months ago by ca0c.
    • This topic was modified 3 years, 11 months ago by ca0c.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter ca0c

    (@ca0c)

    I used the same installation on a webserver, and it works!
    What is the problem I’m having on my localhost?
    BTW, even when I used AppServ localhost (with PHP ~7.3.2) , WordPress showed errors.

    Hello,
    I have same problem on my localhost.
    Please any help.

    Even I am facing the same problem, I have tried with multiple themes & even with WordPress default theme, this problem still occurs.

    Thread Starter ca0c

    (@ca0c)

    Could it be that WordPress is not compatible yet with PHP 8?

    It can be, but need solution, so that person can use it, now I am not able to use any theme

    Thread Starter ca0c

    (@ca0c)

    It turns out that is the problem– PHP 8 compatibility (#Ref). Let’s wait and see.

    Install an older version of XAMPP with PHP 7.4.13 for now.

    Thread Starter ca0c

    (@ca0c)

    Thanks for the suggestion, but I’m not willing to use a PHP version which has a lot of vulnerabilities.

    Warning: get_comment(): Argument #1 ($comment) must be passed by reference, value given in C:\xampp\htdocs\wordpress\wp-includes\class-wp-comment-query.php on line 484
    Can anyone help me with this problem?

    Hi, I’m having the same issue as vanshuk with a fresh install of Windows Server 2019, IIS 10, WordPress 5.5.3, PHP 8.0.0, phpMyAdmin 5.0.4, MySQL 8.0.22.0 .

    After getting all the permission issues and timeout errors taken care of, WordPress installed but after login I get this message:

    PHP Warning: get_comment(): Argument #1 ($comment) must be passed by reference, value given in “hard drive physical location”\wp-includes\class-wp-comment-query.php on line 484

    Found an answer to my issue. You MUST use WordPress 5.6 – RC5 or 5.6 stable when it comes out for PHP 8 to play nice. Sorry for posting before finding and confirming this compatibility issue with Word Press 5.5.3. Word Press 5.6 RC5 seems to be working fine now on this new install.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error on setting up any theme’ is closed to new replies.