PHP warning

Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP)

/srv/psa05/rensverbakel.nl/httpdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php(524)

512   </form>
513 </div><?php
514   uga_debug('End uga_options');
515 }
516 
517 // returns true if current user has to be tracked by UGA
518 // return false if user does not have to be tracked. This is the case when
519 // the 'ignore_users' option is enabled and the current userlevel is
520 // equal or higher than the set limit.
521 function uga_track_user() {
522   global $user_level;
523   uga_debug('Start uga_track_user');
524   if (!user_level) {
525     // user nog logged on -> track
526     uga_debug('User not logged on');
527     $result = true;
528   } else {
529     // user logged on
530     if (uga_get_option('ignore_users') && 
531         $user_level>=uga_get_option('max_user_level')) {
532       // ignore user because of userlevel
533       uga_debug("Not tracking user with level $user_level");
534       $result = false;
535     } else {
536       uga_debug("Tracking user with level $user_level");

Stack Trace

#0
+
 /srv/psa05/rensverbakel.nl/httpdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php(818): uga_track_user()
813 // return snippet of HTML to insert in the page to activate Google Analytics
814 function uga_get_tracker() {
815   uga_debug('Start uga_get_tracker');
816   $result='';
817   if (!uga_in_feed()) {
818     if (uga_track_user()) {
819       // add tracker JavaScript to the page
820       $result='
821 <!-- tracker added by Ultimate Google Analytics plugin v'.uga_version.': http://www.oratransplant.nl/uga -->
822 <script type="text/javascript">
823 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
#1
+
 /srv/psa05/rensverbakel.nl/httpdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php(847): uga_get_tracker()
842 }
843 
844 // Hook function for wp_head action to (possibly) include the GA tracker
845 function uga_wp_head_track($dummy) {
846   uga_debug("Start uga_wp_head_track: $dummy");
847   uga_insert_html_once('head', uga_get_tracker());
848   uga_debug("Ending uga_wp_head_track: $dummy");
849   return $dummy;
850 }
851 
852 // Hook function for wp_footer action to (possibly) include the GA tracker
#2
+
 /srv/psa05/rensverbakel.nl/httpdocs/wp-includes/class-wp-hook.php(286): uga_wp_head_track("")
281 
282                 // Avoid the array_slice if possible.
283                 if ( $the_['accepted_args'] == 0 ) {
284                     $value = call_user_func_array( $the_['function'], array() );
285                 } elseif ( $the_['accepted_args'] >= $num_args ) {
286                     $value = call_user_func_array( $the_['function'], $args );
287                 } else {
288                     $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
289                 }
290             }
291         } while ( false !== next( $this->iterations[ $nesting_level ] ) );
2019-02-21 16:29:24 Apache Yii Framework/1.1.13
Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /srv/psa05/rensverbakel.nl/httpdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524