Hi,
we are trying to change our wordpress site to use PHP 8.1, however this plugin is giving us the below errors:
Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /srv/htdocs/wp-content/themes/woffice/framework-customizations/theme/options/system.php:12
Hi, we are trying to change our wordpress site to use PHP 8.1, however this plugin is giving us the below errors:
Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /srv/htdocs/wp-content/themes/woffice/framework-customizations/theme/options/system.php:12
Stack trace:
0 /srv/htdocs/wp-content/themes/woffice/framework-customizations/theme/options/system.php(12): round('512M', 1)
1 /srv/htdocs/wp-content/plugins/unyson/framework/helpers/general.php(770): require('/srv/htdocs/wp-...')
2 /srv/htdocs/wp-content/plugins/unyson/framework/core/components/theme.php(78): fw_get_variables_from_file('/srv/htdocs/wp-...', Array, NULL)
3 /srv/htdocs/wp-content/themes/woffice/framework-customizations/theme/options/settings.php(26): _FW_Component_Theme->get_options('system')
4 /srv/htdocs/wp-content/plugins/unyson/framework/helpers/general.php(770): require('/srv/htdocs/wp-...')
5 /srv/htdocs/wp-content/plugins/unyson/framework/core/components/theme.php(78): fw_get_variables_from_file('/srv/htdocs/wp-...', Array, NULL)
6 /srv/htdocs/wp-content/plugins/unyson/framework/core/components/theme.php(89): _FW_Component_Theme->get_options('settings')
7 /srv/htdocs/wp-content/plugins/unyson/framework/helpers/database.php(12): _FW_Component_Theme->get_settings_options()
8 /srv/htdocs/wp-content/plugins/unyson/framework/helpers/class-fw-db-options-model.php(176): FW_Db_Options_Model_Settings->get_options(NULL, Array)
9 /srv/htdocs/wp-content/plugins/unyson/framework/helpers/database.php(65): FW_Db_Options_Model->get(NULL, 'login_custom', NULL)
10 /srv/htdocs/wp-content/themes/woffice/inc/helpers.php(20): fw_get_db_settings_option('login_custom')
11 /srv/htdocs/wp-content/themes/woffice/inc/helpers.php(1408): woffice_get_settings_option('login_custom')
12 /srv/htdocs/wp-content/themes/woffice/inc/classes/Woffice_Security.php(44): woffice_is_custom_login_page_enabled()
13 /wordpress/core/6.5.4/wp-includes/class-wp-hook.php(324): Woffice_Security->init_custom_login_actions('')
14 /wordpress/core/6.5.4/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
15 /wordpress/core/6.5.4/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
16 /wordpress/core/6.5.4/wp-settings.php(695): do_action('init')
17 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1374): require('/wordpress/core...')
18 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
19 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
20 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
21 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
22 phar:///usr/local/bin/wp-cli/php/boot-phar.php(20): include('phar:///usr/loc...')
23 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')
24 {main}
thrown in /srv/htdocs/wp-content/themes/woffice/framework-customizations/theme/options/system.php on line 12
how can i resolve this please?
Thanks