E_NOTICE Constants already defined
-
I always have WP_DEBUG on and i am receiving a lot of E_NOTICE messages from your plugin from the following lines in code:
508: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
516: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
524: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
532: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
540: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
548: define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );you should add corresponding if( !defined() ) to avoid this messages.
if ( !defined( ‘EWWW_IMAGE_OPTIMIZER_’ . $key ) ) define( ‘EWWW_IMAGE_OPTIMIZER_’ . $key, $req );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘E_NOTICE Constants already defined’ is closed to new replies.