Admin Menu Editor (PHP Upgrade Issue)

jigarashar

Active member
Jan 7, 2019
121
33
28
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: Wilmer Child (version 1.0.1)
Current plugin: Admin Menu Editor Pro (version 2.18.1)
PHP version 8.0.26



Error Details
=============
An error of type E_ERROR was caused in line 546 of the file /home/public_html/wp-content/plugins/admin-menu-editor-pro/license-manager/BasicPluginLicensingUi.php. Error message: Uncaught Error: Undefined constant "trrue" in /home/public_html/wp-content/plugins/admin-menu-editor-pro/license-manager/BasicPluginLicensingUi.php:546
Stack trace:
#0 /home/public_html/wp-includes/class-wp-hook.php(306): Wslm_BasicPluginLicensingUI->printPluginRowNotice()
#1 /home/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#2 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/public_html/wp-admin/includes/class-wp-plugins-list-table.php(1357): do_action('after_plugin_ro...', 'admin-menu-edit...', Array, 'all')
#4 /home/public_html/wp-admin/includes/class-wp-plugins-list-table.php(695): WP_Plugins_List_Table->single_row(Array)
#5 /home/public_html/wp-admin/includes/class-wp-list-table.php(1444): WP_Plugins_List_Table->display_rows()
#6 /home/public_html/wp-admin/includes/class-wp-list-table.php(1371): WP_List_Table->display_rows_or_placeholder()
#7 /home/public_html/wp-admin/plugins.php(773): WP_List_Table->display()
#8 {main}
thrown

I am getting this error on many websites after upgrading from PHP 5.6 to 8.0/8.1, can anyone help?
 

guguk

Well-known member
Jul 19, 2019
1,150
828
113
Ottoman Empire
You can downgrade php 7.4 which is more stable rather than 8.0 (Because most author of plugin/themes not implemented to php 8 yet)
 

alexmisaila

Legend member
Trusted Uploader
May 9, 2020
1,140
922
133
⭐⭐⭐⭐⭐
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: Wilmer Child (version 1.0.1)
Current plugin: Admin Menu Editor Pro (version 2.18.1)
PHP version 8.0.26



Error Details
=============
An error of type E_ERROR was caused in line 546 of the file /home/public_html/wp-content/plugins/admin-menu-editor-pro/license-manager/BasicPluginLicensingUi.php. Error message: Uncaught Error: Undefined constant "trrue" in /home/public_html/wp-content/plugins/admin-menu-editor-pro/license-manager/BasicPluginLicensingUi.php:546
Stack trace:
#0 /home/public_html/wp-includes/class-wp-hook.php(306): Wslm_BasicPluginLicensingUI->printPluginRowNotice()
#1 /home/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#2 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/public_html/wp-admin/includes/class-wp-plugins-list-table.php(1357): do_action('after_plugin_ro...', 'admin-menu-edit...', Array, 'all')
#4 /home/public_html/wp-admin/includes/class-wp-plugins-list-table.php(695): WP_Plugins_List_Table->single_row(Array)
#5 /home/public_html/wp-admin/includes/class-wp-list-table.php(1444): WP_Plugins_List_Table->display_rows()
#6 /home/public_html/wp-admin/includes/class-wp-list-table.php(1371): WP_List_Table->display_rows_or_placeholder()
#7 /home/public_html/wp-admin/plugins.php(773): WP_List_Table->display()
#8 {main}
thrown

I am getting this error on many websites after upgrading from PHP 5.6 to 8.0/8.1, can anyone help?
It looks like there is a typo in the plugin file that you are using. The error message mentions an undefined constant "trrue" in line 546 of the file /home/public_html/wp-content/plugins/admin-menu-editor-pro/license-manager/BasicPluginLicensingUi.php.

This error is caused by a typo in the code. It seems that the word "true" has been misspelled as "trrue". This is causing a PHP error because "trrue" is not defined as a constant.

To fix this issue, you will need to edit the plugin file and correct the typo. You will need to change "trrue" to "true" wherever it appears in the file. After making the necessary changes, you should save the file and refresh the page to see if the error has been resolved.
 
  • Love
  • Like
Reactions: aCiDeViL and guguk

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu