Wordpress first steps.

I finally managed to get Wordpress installed following this video and the first thing I do is attempt to install Hello Elementor which immediately crashes with stuff which I don't know how to diagnose namely:-

Fatal error: Uncaught Error: Call to undefined function HelloTheme\Modules\AdminHome\Components\filter_input() in /usr/local/www/apache24/data/wordpress/wp-content/themes/hello-elementor/modules/admin-home/components/admin-menu-controller.php:66 Stack trace: #0 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-hook.php(341): HelloTheme\Modules\AdminHome\Components\Admin_Menu_Controller->redirect_menus('') #1 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /usr/local/www/apache24/data/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /usr/local/www/apache24/data/wordpress/wp-admin/admin.php(180): do_action('admin_init') #4 /usr/local/www/apache24/data/wordpress/wp-admin/themes.php(10): require_once('/usr/local/www/...') #5 {main} thrown in /usr/local/www/apache24/data/wordpress/wp-content/themes/hello-elementor/modules/admin-home/components/admin-menu-controller.php on line 66

Fatal error
: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\filter_var() in /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php:4494 Stack trace: #0 /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php(4460): PHPMailer\PHPMailer\PHPMailer::isValidHost('192.168.1.24') #1 /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php(2905): PHPMailer\PHPMailer\PHPMailer->serverHostname() #2 /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php(1787): PHPMailer\PHPMailer\PHPMailer->createHeader() #3 /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php(1664): PHPMailer\PHPMailer\PHPMailer->preSend() #4 /usr/local/www/apache24/data/wordpress/wp-includes/pluggable.php(628): PHPMailer\PHPMailer\PHPMailer->send() #5 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-recovery-mode-email-service.php(225): wp_mail(Array, '[MyWebsite] You...', 'Hii!\n\nWordPress...', Array, Array) #6 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-recovery-mode-email-service.php(62): WP_Recovery_Mode_Email_Service->send_recovery_mode_email(86400, Array, Array) #7 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-recovery-mode.php(185): WP_Recovery_Mode_Email_Service->maybe_send_recovery_mode_email(86400, Array, Array) #8 /usr/local/www/apache24/data/wordpress/wp-includes/class-wp-fatal-error-handler.php(55): WP_Recovery_Mode->handle_error(Array) #9 [internal function]: WP_Fatal_Error_Handler->handle() #10 {main} thrown in /usr/local/www/apache24/data/wordpress/wp-includes/PHPMailer/PHPMailer.php on line 4494


PHPMailer.php
looks prominent but I have no idea where to look.

Is the error due to the theme I have installed?

It tooks like I have two seperate errors, maybe they are related to each other.
 
According to AI:

Diagnosis


Both errors point to the same root cause:


text

Call to undefined function filter_input()
Call to undefined function filter_var()



These are core PHP functions provided by the Filter extension (ext-filter).The extension is either not installed or not enabled on your PHP installation.


The namespace in the error (HelloTheme\... and PHPMailer\...) is just the location of the call — the functions themselves are missing from PHP.
 
Looks like you need to install the filter extension, how you do that depends on your version of PHP.

On one machine I have this:
Code:
php85-filter-8.5.8_1           The filter shared extension for php

To see what extensions (modules) you have installed:
Code:
php -m
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
ftp
...
If you see a module listed in the CLI, but still getting issues under the web environment, you may need to restart your webserver.
 
Back
Top