• Risolto Enrico Marchionni

    (@enrymarch10)


    I’m using WordPress 6.8.2. After deleting the default plugins, I selected the Astra theme and installed the Starter Templates plugin. I then chose the options Classic Models > Elementor > Outdoor Adventure.

    However, after completing the installation, I encountered an error in Dashboard > Home:

    Fatal error: Uncaught ArgumentCountError: 4 arguments are required, 1 given in C:\xampp\htdocs\projects\project\wp-content\plugins\astra-sites\inc\classes\class-astra-sites.php:2669 Stack trace: #0 C:\xampp\htdocs\projects\project\wp-content\plugins\astra-sites\inc\classes\class-astra-sites.php(2669): sprintf('<div class="not...') #1 C:\xampp\htdocs\projects\project\wp-includes\class-wp-hook.php(324): Astra_Sites->admin_welcome_notices('') #2 C:\xampp\htdocs\projects\project\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\projects\project\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\projects\project\wp-admin\admin-header.php(313): do_action('admin_notices') #5 C:\xampp\htdocs\projects\project\wp-admin\index.php(137): require_once('C:\\xampp\\htdocs...') #6 {main} thrown in C:\xampp\htdocs\projects\project\wp-content\plugins\astra-sites\inc\classes\class-astra-sites.php on line 2669

    Where the path to my project is:
    C:\xampp\htdocs\projects\project

    In the file:
    C:\xampp\htdocs\projects\project\wp-content\plugins\astra-sites\inc\classes\class-astra-sites.php
    at line 2669, I deleted the sprintf() function but kept the text inside it as plain text. This seems to resolve the issue, but I’m not sure if this is the correct or safe solution.

Stai visualizzando 1 risposte (di 1 totali)
  • Chi ha creato la discussione Enrico Marchionni

    (@enrymarch10)

    After wasting a lot of time installing older plugin versions, thinking they were causing the issue, I eventually realized that the real problem was the folder path. What I called C:\xampp\htdocs\projects\project was actually C:\xampp\htdocs\projects\project 1.0, and probably the space between project and 1 (also the point between 1 and 0 is not something I will ever put again) was the root cause of everything. I’m not entirely sure whether the error was caused by the URL ending with project%201.0 or by something closely related. What I do know is that after renaming the folder to just project, everything started working correctly.

Stai visualizzando 1 risposte (di 1 totali)

Devi essere collegato per rispondere a questo topic.