• 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

Viewing 1 replies (of 1 total)
  • Plugin Author Gagan Deep Singh

    (@gagan0123)

    @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.

Viewing 1 replies (of 1 total)
  • The topic ‘php 8 error’ is closed to new replies.