admin-page-framework icon indicating copy to clipboard operation
admin-page-framework copied to clipboard

Deprecation notices for php 8.1 and 8.2.

Open OllieJones opened this issue 1 year ago • 0 comments

Description

I'm a user of APF (to drive an admin page). When I test my plugin on php8.1 and php8.2, I get quite a few deprecation warnings.

Deprecated: Creation of dynamic property Imfs_AdminPageFramework_Form_admin_page::$aSections is deprecated in /var/www/html/wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php on line 85

Deprecated: Creation of dynamic property Imfs_AdminPageFramework_TabNavigationBar::$aActiveSlugs is deprecated in /var/www/html/wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/_abstract/_view/AdminPageFramework_TabNavigationBar.php on line 16

Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php on line 33

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/utility/base_utility/AdminPageFramework_Utility.php on line 570

Steps to reproduce

  1. Install index_wp_mysql_for_speed on a website running with php 8.1 or php 8.2.
  2. Enable WP_DEBUG and WP_DEBUG_LOG.
  3. Visit Tools -> Index MySQL

Observe deprecation notices.

I'm sending a PR soon. Some of this may duplicate #298.

Screenshots, screen recording clips, or code snippets

No response

Environment

Ubuntu 20, php 8.1 or 8.2

Please confirm that you have searched existing issues in this repository.

Yes

Please confirm that the problem occurs with the default theme and all the plugins deactivated except "Admin Page Framework - Loader".

Yes

OllieJones avatar Jun 20 '23 13:06 OllieJones