Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue: Ultimate Dashboard PRO (infinite loop issue) #133

Open
HighLiuk opened this issue Jun 20, 2024 · 13 comments
Open

Compatibility issue: Ultimate Dashboard PRO (infinite loop issue) #133

HighLiuk opened this issue Jun 20, 2024 · 13 comments
Assignees
Milestone

Comments

@HighLiuk
Copy link

Describe the bug

The plugin is not compatible with Ultimate Dashboard PRO.
Under some circumstances, it goes to an infinite loop.

error.log
[20-Jun-2024 14:50:46 UTC] PHP Fatal error:  Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php:38
Stack trace:
#0 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(279): VAA_Util::get_array_data(Array, 'author')
#1 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(299): VAA_View_Admin_As_Store->get_data('roles', 'author')
#2 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(323): VAA_View_Admin_As_Store->get_roles('author')
#3 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(108): VAA_View_Admin_As_Roles->get_data('author')
#4 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#5 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#8 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#9 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#10 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(2)
#11 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(585): do_action('switch_blog', 2, 1, 'switch')
#14 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(511): switch_to_blog(2)
#15 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#16 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#17 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#18 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#19 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#20 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#21 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#22 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#23 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#24 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#25 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#26 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#27 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#28 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#29 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#30 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#31 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#32 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#33 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#34 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#35 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#36 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#37 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#38 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#39 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#40 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#41 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#42 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#43 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#44 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#45 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#46 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#47 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#48 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#49 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#50 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#51 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#52 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#53 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#54 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#55 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#56 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#57 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#58 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#59 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#60 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#61 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#62 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#63 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#64 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#65 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#66 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#67 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#68 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#69 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#70 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#71 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#72 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#73 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#74 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#75 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#76 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#77 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#78 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#79 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#80 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#81 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#82 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#83 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#84 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#85 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#86 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#87 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#88 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#89 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#90 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#91 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#92 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#93 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#94 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#95 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#96 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#97 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#98 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#99 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#100 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#101 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#102 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#103 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#104 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#105 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#106 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#107 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#108 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#109 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#110 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#111 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#112 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#113 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#114 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#115 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#116 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#117 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#118 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#119 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#120 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#121 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#122 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#123 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#124 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#125 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#126 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#127 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#128 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#129 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#130 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#131 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#132 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#133 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#134 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#135 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#136 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#137 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#138 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#139 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#140 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#141 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#142 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#143 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#144 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#145 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#146 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#147 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#148 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#149 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#150 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#151 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#152 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#153 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#154 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#155 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#156 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#157 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#158 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#159 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#160 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#161 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#162 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#163 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#164 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#165 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#166 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#167 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#168 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#169 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#170 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#171 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#172 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#173 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#174 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#175 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#176 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#177 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#178 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#179 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#180 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#181 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#182 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#183 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#184 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#185 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#186 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#187 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#188 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#189 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#190 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#191 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#192 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#193 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#194 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#195 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#196 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#197 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#198 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#199 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#200 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#201 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#202 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#203 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#204 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#205 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#206 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#207 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#208 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#209 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#210 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#211 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#212 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#213 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#214 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#215 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#216 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#217 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#218 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#219 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#220 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#221 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#222 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#223 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#224 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#225 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#226 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#227 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#228 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#229 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(679): do_action('switch_blog', 1, 2, 'restore')
#230 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-user.php(530): restore_current_blog()
#231 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/modules/class-roles.php(112): WP_User->get_role_caps()
#232 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): VAA_View_Admin_As_Roles->modify_user(Object(WP_User))
#233 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#234 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#235 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-hooks.php(75): do_action('vaa_view_admin_...', Object(WP_User))
#236 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-base.php(172): VAA_View_Admin_As_Hooks->do_action('vaa_view_admin_...', Object(WP_User))
#237 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-view.php(236): VAA_View_Admin_As_Base->do_action('vaa_view_admin_...', Object(WP_User))
#238 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(326): VAA_View_Admin_As_View->modify_user(1)
#239 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#240 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#241 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(585): do_action('switch_blog', 1, 2, 'switch')
#242 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/ms-blogs.php(367): switch_to_blog(1)
#243 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/ultimate-dashboard-pro/class-setup.php(325): get_blog_option(1, 'udb_modules', Array)
#244 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): UdbPro\Setup->saved_modules(Array)
#245 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#246 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/ultimate-dashboard/class-setup.php(74): apply_filters('udb_saved_modul...', Array)
#247 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/ultimate-dashboard/class-setup.php(204): Udb\Setup->saved_modules()
#248 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(324): Udb\Setup->load_modules('')
#249 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#250 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#251 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-settings.php(550): do_action('plugins_loaded')
#252 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-config.php(117): require_once('/Users/luca/cod...')
#253 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-load.php(50): require_once('/Users/luca/cod...')
#254 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-admin/admin.php(34): require_once('/Users/luca/cod...')
#255 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-admin/index.php(10): require_once('/Users/luca/cod...')
#256 {main}
  thrown in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php on line 38
[20-Jun-2024 14:50:46 UTC] Xdebug: [Step Debug] Could not connect to debugging client. Tried: ::1:9003 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
[20-Jun-2024 14:50:46 UTC] PHP Notice:  Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php on line 6078
[20-Jun-2024 14:50:46 UTC] PHP Stack trace:
[20-Jun-2024 14:50:46 UTC] PHP   1. WP_Fatal_Error_Handler->handle() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:0
[20-Jun-2024 14:50:46 UTC] PHP   2. WP_Fatal_Error_Handler->display_error_template($error = ['type' => 1, 'message' => 'Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'256\' frames in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php:38\nStack trace:\n#0 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(279): VAA_Util::get_array_data(Array, \'author\')\n#1 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/in'..., 'file' => '/Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php', 'line' => 38], $handled = FALSE) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:60
[20-Jun-2024 14:50:46 UTC] PHP   3. WP_Fatal_Error_Handler->display_default_error_template($error = ['type' => 1, 'message' => 'Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'256\' frames in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php:38\nStack trace:\n#0 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(279): VAA_Util::get_array_data(Array, \'author\')\n#1 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/in'..., 'file' => '/Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php', 'line' => 38], $handled = FALSE) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:156
[20-Jun-2024 14:50:46 UTC] PHP   4. wp_die($message = class WP_Error { public $errors = ['internal_server_error' => [...]]; public $error_data = ['internal_server_error' => [...]]; protected $additional_data = [] }, $title = '', $args = ['response' => 500, 'exit' => FALSE]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:241
[20-Jun-2024 14:50:46 UTC] PHP   5. _default_wp_die_handler($message = class WP_Error { public $errors = ['internal_server_error' => [...]]; public $error_data = ['internal_server_error' => [...]]; protected $additional_data = [] }, $title = '', $args = ['response' => 500, 'exit' => FALSE]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:3785
[20-Jun-2024 14:50:46 UTC] PHP   6. wp_robots() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:3863
[20-Jun-2024 14:50:46 UTC] PHP   7. apply_filters($hook_name = 'wp_robots', $value = []) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/robots-template.php:32
[20-Jun-2024 14:50:46 UTC] PHP   8. WP_Hook->apply_filters($value = [], $args = [0 => []]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php:205
[20-Jun-2024 14:50:46 UTC] PHP   9. wp_robots_noindex_embeds($robots = []) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php:324
[20-Jun-2024 14:50:46 UTC] PHP  10. is_embed() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/robots-template.php:93
[20-Jun-2024 14:50:46 UTC] PHP  11. _doing_it_wrong($function_name = 'is_embed', $message = 'Conditional query tags do not work before the query is run. Before then, they always return false.', $version = '3.1.0') /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/query.php:882
[20-Jun-2024 14:50:46 UTC] PHP  12. wp_trigger_error($function_name = '', $message = 'Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)', $error_level = *uninitialized*) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:6022
[20-Jun-2024 14:50:46 UTC] PHP  13. trigger_error($message = 'Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)', $error_level = 1024) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:6078
[20-Jun-2024 14:50:46 UTC] PHP Notice:  Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php on line 6078
[20-Jun-2024 14:50:46 UTC] PHP Stack trace:
[20-Jun-2024 14:50:46 UTC] PHP   1. WP_Fatal_Error_Handler->handle() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:0
[20-Jun-2024 14:50:46 UTC] PHP   2. WP_Fatal_Error_Handler->display_error_template($error = ['type' => 1, 'message' => 'Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'256\' frames in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php:38\nStack trace:\n#0 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(279): VAA_Util::get_array_data(Array, \'author\')\n#1 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/in'..., 'file' => '/Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php', 'line' => 38], $handled = FALSE) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:60
[20-Jun-2024 14:50:46 UTC] PHP   3. WP_Fatal_Error_Handler->display_default_error_template($error = ['type' => 1, 'message' => 'Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'256\' frames in /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php:38\nStack trace:\n#0 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-store.php(279): VAA_Util::get_array_data(Array, \'author\')\n#1 /Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/in'..., 'file' => '/Users/luca/code/idearia/local/view-admin-as/app/public/wp-content/plugins/view-admin-as/includes/class-util.php', 'line' => 38], $handled = FALSE) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:156
[20-Jun-2024 14:50:46 UTC] PHP   4. wp_die($message = class WP_Error { public $errors = ['internal_server_error' => [...]]; public $error_data = ['internal_server_error' => [...]]; protected $additional_data = [] }, $title = '', $args = ['response' => 500, 'exit' => FALSE]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-fatal-error-handler.php:241
[20-Jun-2024 14:50:46 UTC] PHP   5. _default_wp_die_handler($message = class WP_Error { public $errors = ['internal_server_error' => [...]]; public $error_data = ['internal_server_error' => [...]]; protected $additional_data = [] }, $title = '', $args = ['response' => 500, 'exit' => FALSE]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:3785
[20-Jun-2024 14:50:46 UTC] PHP   6. wp_robots() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:3863
[20-Jun-2024 14:50:46 UTC] PHP   7. apply_filters($hook_name = 'wp_robots', $value = []) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/robots-template.php:32
[20-Jun-2024 14:50:46 UTC] PHP   8. WP_Hook->apply_filters($value = [], $args = [0 => []]) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/plugin.php:205
[20-Jun-2024 14:50:46 UTC] PHP   9. wp_robots_noindex_search($robots = []) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/class-wp-hook.php:324
[20-Jun-2024 14:50:46 UTC] PHP  10. is_search() /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/robots-template.php:119
[20-Jun-2024 14:50:46 UTC] PHP  11. _doing_it_wrong($function_name = 'is_search', $message = 'Conditional query tags do not work before the query is run. Before then, they always return false.', $version = '3.1.0') /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/query.php:700
[20-Jun-2024 14:50:46 UTC] PHP  12. wp_trigger_error($function_name = '', $message = 'Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)', $error_level = *uninitialized*) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:6022
[20-Jun-2024 14:50:46 UTC] PHP  13. trigger_error($message = 'Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)', $error_level = 1024) /Users/luca/code/idearia/local/view-admin-as/app/public/wp-includes/functions.php:6078

Steps to reproduce the behavior:

  1. Make a fresh WordPress multisite installation with subdomains
  2. Add plugins: View Admin As, Ultimate Dashboard, Ultimate Dashboard PRO
  3. Activate all the plugins on the whole network
  4. From the Network Ultimate Dashboard settings, select site number 1 as Blueprint site
  5. Create a new site (say number 2)
  6. Go to site number 1 and view admin as role author
  7. Go to site number 2's dashboard

Expected behavior

I expect not to see fatal errors caused by infinite loops

Screenshots

https://idearia.link/i/AX6yma

Specifications

  • Plugin Version: 1.8.9 (latest)
  • WordPress Version: 6.5.4 (latest)
  • Other plugins installed: Ultimate Dashboard 3.7.5, Ultimate Dashboard PRO 3.7.0.1
  • Theme: Twenty Twenty-Four 1.1
  • Browser: Google Chrome 125.0.6422.176 (latest)

Additional context

To me, it looks like a "switch_to_blog" problem. I guess this is not Ultimate Dashboard PRO's fault since the infinite loop happens within View Admin As functions & hooks.

@JoryHogeveen
Copy link
Owner

Hi @HighLiuk

I'm on holiday untill half july so won't be able to check this.

Keep in mind that even if I fix the error on my end there is a possibility that this won't make the plugin compatible.

In any case, I'm not familiar with the plugin and since its a pro version I have no way to debug this. Are you able to setup a dev environment for me to check once I'm back?

Cheers, Jory

@HighLiuk
Copy link
Author

Hey @JoryHogeveen thank you for the reply.

Keep in mind that even if I fix the error on my end there is a possibility that this won't make the plugin compatible.

Sure, nevertheless let's try.

In any case, I'm not familiar with the plugin and since its a pro version I have no way to debug this. Are you able to setup a dev environment for me to check once I'm back?

I'll do my best. Let me think for a way to reproduce this without the PRO version since I guess there's a way. Let's see.

@HighLiuk
Copy link
Author

Ok @JoryHogeveen I can confirm this issue has nothing to do with UDB PRO but is a pure VAA issue.

Steps to reproduce:

  1. Make a fresh WordPress multisite installation with subdomains
  2. Add & activate network-wide the plugin: View Admin As
  3. Add the mu-plugin below
  4. Create a new site (say number 2)
  5. Go to site number 2's dashboard and view admin as role author
  6. Enjoy the infinite loop!

The mu plugin:

add_action('plugins_loaded', function() {
    get_blog_option( 1, 'test_option', [] );
});

Note: adding the code as a regular plugin which is network active makes no difference - the bug is still present.

UDB PRO triggers the bug since it needs to check some options on a "blueprint" site. But this makes, in general, any plugin that uses get_blog_option on plugins_loaded incompatible with VAA.

How about this @JoryHogeveen? I guess now you have all the data you need to debug this.

Thank you in advance 🙏🏻

@JoryHogeveen
Copy link
Owner

Hi @HighLiuk

Thank you so much for your research! This will definitely help me with creating a patch release.

From first glance it seems that the WP_User::get_role_caps method enforces a switch to the main blog which in turn triggers a rebuild of my plugin logic to set the current view.
This whole loop only occurs if the init data hasn't been fully set yet, which is probably the case at plugins_loaded.

I will dive into this once I'm back from my travels. Do you have a short-term solution in the meantime?

Cheers, Jory

@HighLiuk
Copy link
Author

Hey @JoryHogeveen thank you for your reply!
Nope I have no short-term solutions to this, I'll wait for your travels.
Have a nice day!

@HighLiuk
Copy link
Author

@JoryHogeveen hey there. Any news on this?

@HighLiuk
Copy link
Author

@JoryHogeveen ping

JoryHogeveen added a commit that referenced this issue Oct 18, 2024
@JoryHogeveen
Copy link
Owner

JoryHogeveen commented Oct 18, 2024

Hi @HighLiuk
Thank you for the ping!
And sorry for my absence, I have been swamped with work and lately the whole WP drama so totally forgot this issue.

I re-read the logs and I think I understand what is happening. Because you've set a blueprint site it will keep trying to get the capabilities from the blueprint site by switching to it. In turn this will cause my plugin to reload. This will trigger a loop.

I've mace a prove-of-concept patch for you to test (since I do not have the Pro version).
https://github.com/JoryHogeveen/view-admin-as/tree/hotfix/133
Direct ZIP link: https://github.com/JoryHogeveen/view-admin-as/archive/refs/heads/hotfix/133.zip

Let me know if this patch fixes your issue and if it still functions correct.
In case it does I can find a nicer way to implement this fix.

@HighLiuk
Copy link
Author

God bless you @JoryHogeveen it finally works! 🙏🏻
Thank you so much!!!

@JoryHogeveen
Copy link
Owner

Hi @HighLiuk
Good to hear! Perfect. And the switching functionality form this plugins is also still working well?

@JoryHogeveen JoryHogeveen self-assigned this Oct 18, 2024
@JoryHogeveen JoryHogeveen added this to the 1.8.10 milestone Oct 18, 2024
@HighLiuk
Copy link
Author

HighLiuk commented Oct 18, 2024 via email

@JoryHogeveen
Copy link
Owner

What I mean is that I'd like to verify that switching users or roles is still working after this patch.
My guess is the chance is little that this would break functionality but better safe than sorry :)

@HighLiuk
Copy link
Author

HighLiuk commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants