notices and calls to deprecated functions
-
Hi,
Nice effort. You may however want to correct the many notices and deprecated function calls that this plugin causes. The usual is to make error_reporting = E_ALL and use the xdebug PHP extension so that you see the full call stack for errors. Below is what I get (many show in both wp-admin and the website) — please don’t use @ to suppress them, even though it’s tempting (@ also causes some perf penalty by the way)
Beneath each post in Posts in wp-admin:
Notice: Undefined index: path in /WWWROOT/wp-content/plugins/enhanced-custom-permalinks/enh-custom-permalinks.php on line 326
For all wp-admin pages:
Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /WWWROOT/wp-includes/functions.php on line 3006 Call Stack # Time Memory Function Location 1 0.0008 344912 {main}( ) ../edit.php:0 2 0.0016 403352 require_once( '/WWWROOT/wp-admin/admin.php' ) ../edit.php:10 3 0.4487 34541560 require( '/WWWROOT/wp-admin/menu.php' ) ../admin.php:120 4 0.4518 34661272 require_once( '/WWWROOT/wp-admin/includes/menu.php' ) ../menu.php:248 5 0.4542 34665160 do_action( ) ../menu.php:97 6 0.4571 34691464 call_user_func_array ( ) ../plugin.php:429 7 0.4571 34691536 custom_permalinks_setup_admin( ) ../plugin.php:429 8 0.4571 34691976 add_management_page( ) ../enh-custom-permalinks.php:858 9 0.4571 34692024 add_submenu_page( ) ../plugin.php:1148 10 0.4571 34692192 current_user_can( ) ../plugin.php:1097 11 0.4571 34693032 call_user_func_array ( ) ../capabilities.php:1350 12 0.4571 34693368 WP_User->has_cap( ) ../capabilities.php:1350 13 0.4572 34693656 _deprecated_argument( ) ../capabilities.php:950 14 0.4572 34694144 trigger_error ( ) ../functions.php:3006
Notice: Undefined index: fp in /WWWROOT/wp-content/plugins/enhanced-custom-permalinks/enh-custom-permalinks.php on line 208
Notice: Undefined index: preview_id in /WWWROOT/wp-content/plugins/enhanced-custom-permalinks/enh-custom-permalinks.php on line 214
Notice: Undefined index: fp in /WWWROOT/wp-content/plugins/enhanced-custom-permalinks/enh-custom-permalinks.php on line 138
Notice: Undefined index: preview_id in /WWWROOT/wp-content/plugins/enhanced-custom-permalinks/enh-custom-permalinks.php on line 144
https://www.ads-software.com/plugins/enhanced-custom-permalinks/
- The topic ‘notices and calls to deprecated functions’ is closed to new replies.