unexpected output on activation solution
-
I have WP_DEBUG enabled and when activating the plugin I get this output:
Undefined index: mode in /wp-content/plugins/hs-custom-admin-themes/hs-custom-admin-themes.php on line 167 Notice: Undefined index: mode in /wp-content/plugins/hs-custom-admin-themes/hs-custom-admin-themes.php on line 173 Notice: Undefined index: mode in /wp-content/plugins/hs-custom-admin-themes/hs-custom-admin-themes.php on line 176
You should wrap those lines of code with a simple conditional statement, something like this:
if ( ! empty( $_GET['mode'] ) ) { // put the offending code here }
Also, in options-page-wrapper.php, line 214. The variable $selecttheme is not defined, causing a notice too.
https://www.ads-software.com/plugins/hs-custom-admin-themes/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘unexpected output on activation solution’ is closed to new replies.