WPIntell

Source evidence

php 8 error

Shortcode in Menus · support · 2023-01-11T07:55:00+00:00

mixedsentiment
highseverity
0.83relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Dieter Schummer resolved
Hi, is it possible that the plugin doesn’t work with php 8 ? With php 7.4 it works perfect. On disable your plugin under php 8 the sites plugins/theme works without any errors. On enabled your plugin with php 8 we have the following error: [Wed Jan 11 05:59:47.756725 2023] [proxy_fcgi:error] [pid 50530:tid ] [] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Non-static method Login_Logout_Menu::login_logout_menu_profile_link() cannot be called statically in /var/www/html/wp-content/plugins/login-logout-menu/classes/shortcodes.php:215\nStack trace:\n#0 /var/www/html/wp-includes/shortcodes.php(355): Login_Logout_Menu_Shortcode->login_logout_menu__username_link_callback()\n#1 [internal function]: do_shortcode_tag()\n#2 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback()\n#3 /var/www/html/wp-content/plugins/shortcode-in-menus/includes/class-shortcode-in-menus.php(143): do_shortcode()\n#4 /var/www/html/wp-includes/class-wp-hook.php(310): Shortcode_In_Menus->start_el()\n#5 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#6 /var/www/html/wp-content/plugins/astra-addon/addons/nav-menu/classes/class-astra-custom-nav-walker.php(471): apply_filters()\n#7 /var/> Thanks & Regards @ds888 Apologies for the delayed reply. I tested and the plugin works perfectly fine with PHP 8. Apparently, the shortcode added, is calling a function incorrectly and error is originating from login-logout-menu plugin.

Comments

1 shown
Gagan Deep Singh 2023-05-27T08:13:00+00:00

@ds888 Apologies for the delayed reply. I tested and the plugin works perfectly fine with PHP 8. Apparently, the shortcode added, is calling a function incorrectly and error is originating from login-logout-menu plugin.