Questions tagged [deprecation-warning]

A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred.

A deprecation warning indicates that a method, property or other software feature is obsolete. Using a newer feature (which has been provided in the meanwhile) is preferred.

407 questions
228
votes
4 answers

Method setDrawerListener is deprecated

While I'm doing something on my app, I see that the navigation drawer on my app reduced its size. But I'm not doing anything on that. Then, after checking the code, I saw that setDrawerListener is deprecated. Does anyone has a solution to this?…
david glorioso
  • 2,547
  • 2
  • 7
  • 13
149
votes
4 answers

Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?

Is "shouldOverrideUrlLoading" really deprecated? If so, what can I use instead? It seems like shouldOverrideUrlLoading is deprecated targeting Android N and I need to make an app work since API 19 until the latest right now which is Android N…
Minion
  • 2,287
  • 3
  • 23
  • 28
130
votes
9 answers

Turn off deprecated errors in PHP 5.3

My server is running PHP 5.3 and my WordPress install is spitting these errors out on me, causing my session_start() to break. Deprecated: Assigning the return value of new by reference is deprecated in /home//public_html/hub/wp-settings.php on…
atwellpub
  • 4,732
  • 10
  • 35
  • 52
95
votes
4 answers

material-ui Drawer - findDOMNode is deprecated in StrictMode

I have a simple ReactJS app based on hooks (no classes) using StrictMode. I am using React version 16.13.1 and Material-UI version 4.9.10. In the Appbar I am using Drawer.
89
votes
11 answers

setBackgroundDrawable() deprecated

So my sdk goes from 15 to 21 and when I call setBackgroundDrawable(), Android Studio tells me that it's deprecated. I thought of going around it using: int sdk = android.os.Build.VERSION.SDK_INT; if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN)…
Makoto
  • 1,221
  • 3
  • 12
  • 16
89
votes
6 answers

Convention for HTTP response header to notify clients of deprecated API

I'm upgrading our REST API endpoints and I want to notify clients when they are calling the to-be-deprecated endpoint. What header should I use in the response with a message along the lines of "This API version is being deprecated, please consult…
BlazingFrog
  • 2,006
  • 2
  • 18
  • 29
70
votes
1 answer

React 16.7 - React.SFC is now deprecated

I use to declare stateless components like this: const example: React.SFC = ({propsType}) => (); However the SFC is now deprecated, maybe this twitter post from Dan Abramov explains why. What should we use now that SFC is deprecated?
Jonas Praem
  • 1,902
  • 1
  • 18
  • 45
66
votes
3 answers

How should I mark a method as "obsolete" in JS?

I am refactoring a rather large JS file that contains many unrelated methods into something that will regroup the methods together according to their usage, and renaming some of them as needed (to prevent misleading names). However, most of the web…
JBG
  • 814
  • 1
  • 6
  • 7
64
votes
11 answers

getCurrentPosition() and watchPosition() are deprecated on insecure origins

I am getting this error on my website which requests Geolocation data from the user: getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your…
Jason Axelrod
  • 5,655
  • 9
  • 41
  • 70
60
votes
12 answers

Django 1.9 deprecation warnings app_label

I've just updated to Django v1.8, and testing my local setup before updating my project and I've had a deprecation warning that I've never seen before, nor does it make any sense to me. I may be just overlooking something or misunderstanding the…
Llanilek
  • 3,062
  • 5
  • 34
  • 62
59
votes
7 answers

How to warn about class (name) deprecation

I have renamed a python class that is part of a library. I am willing to leave a possibility to use its previous name for some time but would like to warn user that it's deprecated and will be removed in the future. I think that to provide backward…
57
votes
5 answers

DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version

I am using mongoose and mocha for MongoDB schema design and API development I am getting this warning... what does this mean, how it will affect me and what is the fix?? Below the actual warning text: (node:9872) DeprecationWarning: Listening to…
Kritagya Khandelwal
  • 605
  • 1
  • 3
  • 10
45
votes
6 answers

Preprocessing in scikit learn - single sample - Depreciation warning

On a fresh installation of Anaconda under Ubuntu... I am preprocessing my data in various ways prior to a classification task using Scikit-Learn. from sklearn import preprocessing scaler = preprocessing.MinMaxScaler().fit(train) train =…
Chris Arthur
  • 969
  • 2
  • 8
  • 11
37
votes
4 answers

Gradle warning: variant.getOutputFile() and variant.setOutputFile() are deprecated

I am using the following simplified configuration in an Android application project. android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { minSdkVersion 8 targetSdkVersion 20 versionCode 1 …
JJD
  • 44,755
  • 49
  • 183
  • 309
34
votes
4 answers

Swift 3 warning for dispatch async

I have this code: DispatchQueue.global(priority: DispatchQueue.GlobalQueuePriority.default).async { let url = URL(string: itemImageURL ) let data = try? Data(contentsOf: url!) if data != nil { …
asheyla
  • 2,597
  • 4
  • 14
  • 30
1
2 3
27 28