remyperona / wps-hide-login

WPS Hide Login
41 stars 19 forks source link

Conflict with authenticated calls to wpgraphql #34

Open XVII opened 6 days ago

XVII commented 6 days ago

An authenticated call to @wp-graphql seems to cause some sort of loop which cause a memory limit exception.

Using Basic authentication & application passwords.

Also using LS Cache, but deactivating that plugin doesn't help. Only seems to be with:

I think this PHP error log is cut off due to recursion?

2024-10-26 18:11:38.946663 [NOTICE] [37] [] [STDERR] PHP Fatal error:  Uncaught Error: Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? in /html/wp-content/plugins/litespeed-cache/src/object-cache.cls.php:601
Stack trace:
#0 /html/wp-content/plugins/litespeed-cache/src/object.lib.php(564): LiteSpeed\Object_Cache->is_global('...')
#1 /html/wp-content/plugins/litespeed-cache/src/object.lib.php(800): WP_Object_Cache->_key('...', '...')
#2 /html/wp-content/plugins/litespeed-cache/src/object.lib.php(168): WP_Object_Cache->get('...', '...', false, NULL)
#3 /html/wp-includes/option.php(1998): wp_cache_get('...', '...')
#4 /html/wp-includes/class-wp-application-passwords.php(55): get_network_option(1, '...')
#5 /html/wp-includes/user.php(350): WP_Application_Passwords::is_in_use()
#6 /html/wp-includes/user.php(504): wp_authenticate_application_password(NULL, '...', '...')
#7 /html/wp-includes/class-wp-hook.php(324): wp_validate_application_password(false)
#8 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#9 /html/wp-includes/user.php(3668): apply_filters('...', false)
#10 /html/wp-includes/pluggable.php(70): _wp_get_current_user()
#11 /html/wp-includes/pluggable.php(1163): wp_get_current_user()
#12 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(697): is_user_logged_in()
#13 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(632): WPS\WPS_Hide_Login\Plugin->filter_wp_login_php('...', NULL)
#14 /html/wp-includes/class-wp-hook.php(324): WPS\WPS_Hide_Login\Plugin->site_url('...', '...',
2024-10-26 18:11:38.946817 [NOTICE] [37] [] [STDERR]  NULL, NULL)
#15 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array)
#16 /html/wp-includes/link-template.php(3528): apply_filters('...', '...', '...', NULL, NULL)
#17 /html/wp-includes/link-template.php(3482): get_site_url(NULL, '...', NULL)
#18 /html/wp-content/plugins/wp-graphql/src/Router.php(177): site_url('...')
#19 /html/wp-content/plugins/wp-graphql/access-functions.php(692): WPGraphQL\Router::is_graphql_http_request()
#20 /html/wp-content/plugins/wp-graphql/src/Router.php(111): is_graphql_http_request()
#21 /html/wp-includes/class-wp-hook.php(324): WPGraphQL\Router->is_api_request(false)
#22 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#23 /html/wp-includes/user.php(366): apply_filters('...', false)
#24 /html/wp-includes/user.php(504): wp_authenticate_application_password(NULL, '...', '...')
#25 /html/wp-includes/class-wp-hook.php(324): wp_validate_application_password(false)
#26 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#27 /html/wp-includes/user.php(3668): apply_filters('...', false)
#28 /html/wp-includes/pluggable.php(70): _wp_get_current_user()
#29 /html/wp-includes/pluggable.php(1163): wp_get_current_user()
#30 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(697): is_user_logged_in()
#31 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(632): WPS\WPS_Hide_Login\Plugin->filter_wp_login_php('...', NULL)
#32 /html/wp-includes/class-wp-hook.php(324): WPS\WPS_Hide_Login\Plugin->sit
2024-10-26 18:11:38.946923 [NOTICE] [37] [] [STDERR] e_url('...', '...', NULL, NULL)
#33 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array)
#34 /html/wp-includes/link-template.php(3528): apply_filters('...', '...', '...', NULL, NULL)
#35 /html/wp-includes/link-template.php(3482): get_site_url(NULL, '...', NULL)
#36 /html/wp-content/plugins/wp-graphql/src/Router.php(177): site_url('...')
#37 /html/wp-content/plugins/wp-graphql/access-functions.php(692): WPGraphQL\Router::is_graphql_http_request()
#38 /html/wp-content/plugins/wp-graphql/src/Router.php(111): is_graphql_http_request()
#39 /html/wp-includes/class-wp-hook.php(324): WPGraphQL\Router->is_api_request(false)
#40 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#41 /html/wp-includes/user.php(366): apply_filters('...', false)
#42 /html/wp-includes/user.php(504): wp_authenticate_application_password(NULL, '...', '...')
#43 /html/wp-includes/class-wp-hook.php(324): wp_validate_application_password(false)
#44 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#45 /html/wp-includes/user.php(3668): apply_filters('...', false)
#46 /html/wp-includes/pluggable.php(70): _wp_get_current_user()
#47 /html/wp-includes/pluggable.php(1163): wp_get_current_user()
#48 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(697): is_user_logged_in()
#49 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(632): WPS\WPS_Hide_Login\Plugin->filter_wp_login_php('...', NULL)
#50 /html/wp-includes/class-wp-hook.php(324): WPS\WPS_Hid
2024-10-26 18:11:38.946945 [NOTICE] [37] [] [STDERR] e_Login\Plugin->site_url('...', '...', NULL, NULL)
#51 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array)
#52 /html/wp-includes/link-template.php(3528): apply_filters('...', '...', '...', NULL, NULL)
#53 /html/wp-includes/link-template.php(3482): get_site_url(NULL, '...', NULL)
#54 /html/wp-content/plugins/wp-graphql/src/Router.php(177): site_url('...')
#55 /html/wp-content/plugins/wp-graphql/access-functions.php(692): WPGraphQL\Router::is_graphql_http_request()
#56 /html/wp-content/plugins/wp-graphql/src/Router.php(111): is_graphql_http_request()
#57 /html/wp-includes/class-wp-hook.php(324): WPGraphQL\Router->is_api_request(false)
#58 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#59 /html/wp-includes/user.php(366): apply_filters('...', false)
#60 /html/wp-includes/user.php(504): wp_authenticate_application_password(NULL, '...', '...')
#61 /html/wp-includes/class-wp-hook.php(324): wp_validate_application_password(false)
#62 /html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#63 /html/wp-includes/user.php(3668): apply_filters('...', false)
#64 /html/wp-includes/pluggable.php(70): _wp_get_current_user()
#65 /html/wp-includes/pluggable.php(1163): wp_get_current_user()
#66 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(697): is_user_logged_in()
#67 /html/wp-content/plugins/wps-hide-login/classes/plugin.php(632): WPS\WPS_Hide_Login\Plugin->filter_wp_login_php('...', NULL)
#68 /html/wp-includes/class-wp-h