PHP Fatal Error (4.0.7) | WordPress.org

[ad_1]

Hi,

Version 4.0.7 causes various Woocommerce/Wordpress issues and this is the error message that appears in the debug.log:

[10-Aug-2022 20:15:07 UTC] PHP Fatal error: Uncaught TypeError: preg_match() expects parameter 2 to be string, int given in /var/www/my-site/wp-content/plugins/custom-login/functions.php:116

Here’s the stack trace:

Stack trace:
#0 /var/www/my-site/wp-content/plugins/custom-login/functions.php(116): preg_match()
#1 /var/www/my-site/wp-content/plugins/custom-login/functions.php(44): TheFrosty\CustomLogin\_getEditableRoles()
#2 /var/www/my-site/wp-includes/class-wp-hook.php(307): TheFrosty\CustomLogin\{closure}()
#3 /var/www/my-site/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 /var/www/my-site/wp-includes/plugin.php(476): WP_Hook->do_action()
#5 /var/www/my-site/wp-includes/load.php(1102): do_action()
#6 [internal function]: shutdown_action_hook()
#7 {main}

Had to revert back to 3.2.15

I’m using PHP 7.4, Woocommerce 6.80 and WordPress 6.0.1

  • This topic was modified 5 hours, 14 minutes ago by ttoaster.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer