Error sprintf after installing Starter Templates plugin
-
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 2669Where the path to my project is:
C:\xampp\htdocs\projects\projectIn the file:
C:\xampp\htdocs\projects\project\wp-content\plugins\astra-sites\inc\classes\class-astra-sites.php
at line 2669, I deleted thesprintf()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.
Devi essere collegato per rispondere a questo topic.