( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09974101464require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10074130456include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10074130456get_header( $name = ???, $args = ??? ).../single.php:10
60.10074130672locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10074130768load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10074131312require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10084138720wp_head( ).../header.php:18
100.10084138720do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10084138936WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10084138936WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10104142352wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10104142352do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10104142568WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10104142568WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10114144456twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10124145976wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10124145976WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10124145976WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10124145976_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.10124151928wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.10134271464trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09974101464require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10074130456include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10074130456get_header( $name = ???, $args = ??? ).../single.php:10
60.10074130672locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10074130768load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10074131312require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10084138720wp_head( ).../header.php:18
100.10084138720do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10084138936WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10084138936WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10104142352wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10104142352do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10104142568WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10104142568WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10114144456twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.12634272568wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.12634272568WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.12634272568WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.12634272568_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.12634272888wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.12634273112trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

Docker Timezone Settings

【Notes】Docker Timezone Settings

If we want to Dockerset hostthe same time zone internally, how should we set it?

Quick Start

Many people on the Internet said that containeryou can add the following command at startup:

  • Method 1:

    -v /etc/localtime:/etc/localtime:ro

  • Method 2:

    -and “TZ=Asia/Taipei”

But sometimes it works, and sometimes it doesn’t work. Why? It depends on what you usedocker image

Use alpinethe version

dockerfile

 dockerfile 364 B 
12345678910111213
FROM openjdk:12-alpine
VOLUME /tmp

RUN apk update && \
    apk add -U tzdata

ADD build/libs/sb-crawler-0.0.1-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'

EXPOSE 6565
ENV JAVA_OPTS=""
ENV SPRING_PROFILES_ACTIVE=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/urandom -Dspring.profiles.active=$SPRING_PROFILES_ACTIVE -jar /app.jar" ]
  • We dockerfileadded the installation tzdatainstructions in
RUN apk update && \
    apk add -U tzdata

Start command

  • Add to-v /etc/localtime:/etc/localtime:ro
docker run --name sb-crawler -d -h sb-crawler -p 8081:8081 -e SPRING_PROFILES_ACTIVE=prod -v /home/ec2-user/log/sb-crawler:/log -v /etc/localtime:/etc/localtime:ro registry.gitlab.com/sportsbook1/sb-crawler:$CI_COMMIT_SHORT_SHA

Use alpinea non-

The disadvantage is that it is alpinemuch larger than the previous version and takes more time (push image)

dockerfile

  • Used imageforopenjdk:12

Start command

  • Add to-e "TZ=Asia/Taipei"

That’s it for today’s notes. If you have any questions, let me know!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.